public interface OpMatchingService extends ImageJService
| Modifier and Type | Method and Description |
|---|---|
Module |
assignInputs(Module module,
Object... args)
Assigns arguments into the given module's inputs.
|
List<OpCandidate> |
filterMatches(List<OpCandidate> candidates)
Filters a list of ops to those matching the given arguments.
|
List<OpCandidate> |
findCandidates(OpEnvironment ops,
List<OpRef> refs)
Builds a list of candidate ops which might match one of the given op
references.
|
List<OpCandidate> |
findCandidates(OpEnvironment ops,
OpRef ref)
Builds a list of candidate ops which might match the given op reference.
|
OpCandidate |
findMatch(OpEnvironment ops,
List<OpRef> refs)
Finds and initializes the best module matching any of the given op name
and/or type + arguments.
|
OpCandidate |
findMatch(OpEnvironment ops,
OpRef ref)
Finds and initializes the best module matching the given op name and/or
type + arguments.
|
Module |
match(OpCandidate candidate)
Attempts to match the given arguments to the
Op described by the
specified ModuleInfo. |
Object[] |
padArgs(OpCandidate candidate)
Checks the number of args, padding optional args with null as needed.
|
boolean |
typesMatch(OpCandidate candidate)
Checks that each parameter is type-compatible with its corresponding
argument.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeOpCandidate findMatch(OpEnvironment ops, OpRef ref)
OpCandidate containing the matching module
will be returned.ops - The pool from which candidate ops should be drawn.ref - The op reference describing the op to match.OpCandidate containing the module which wraps the best
Op, with populated inputs, ready to run.IllegalArgumentException - if there is no match, or if there is more
than one match at the same priority.OpCandidate findMatch(OpEnvironment ops, List<OpRef> refs)
OpCandidate containing the matching
module will be returned.ops - The pool from which candidate ops should be drawn.refs - The op references describing the op to match.OpCandidate containing the module which wraps the best
Op, with populated inputs, ready to run.IllegalArgumentException - if there is no match, or if there is more
than one match at the same priority.List<OpCandidate> findCandidates(OpEnvironment ops, OpRef ref)
ops - The pool from which candidate ops should be drawn.ref - The op reference describing the op to match.List<OpCandidate> findCandidates(OpEnvironment ops, List<OpRef> refs)
ops - The pool from which candidate ops should be drawn.refs - The op references describing the op to match.List<OpCandidate> filterMatches(List<OpCandidate> candidates)
candidates - The list of op candidates to scan for matches.Module
instances attached.Module match(OpCandidate candidate)
Op described by the
specified ModuleInfo.boolean typesMatch(OpCandidate candidate)
Object[] padArgs(OpCandidate candidate)
Copyright © 2014–2022 ImageJ. All rights reserved.