- java.lang.Object
-
- org.scijava.ops.engine.matcher.OpCandidate
-
public class OpCandidate extends Object
- Author:
- Curtis Rueden, Gabriel Selzer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpCandidate.StatusCode
-
Constructor Summary
Constructors Constructor Description OpCandidate(OpEnvironment env, OpRequest request, OpInfo info)OpCandidate(OpEnvironment env, OpRequest request, OpInfo info, Map<TypeVariable<?>,Type> typeVarAssigns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateOp(List<?> dependencies)StructInstance<?>createOpInstance(List<?> dependencies)OpEnvironmentenv()Gets the op execution environment of the desired match.static TypegetReifiedType(OpRequest request, OpInfo info, Map<TypeVariable<?>,Type> typeVarAssigns)OpRequestgetRequest()Gets the op request describing the desired match.StringgetStatus()Gets a descriptive status message in human readable form.OpCandidate.StatusCodegetStatusCode()Gets the matching status code.Member<?>getStatusItem()Gets the status item related to the matching status, if any.TypegetType()Gets the reifiedTypeof the Op described by this candidate.OpInfoopInfo()Gets theOpInfometadata describing the op to match against.Type[]paddedArgs()doublepriority()Gets the priority of this resultvoidsetStatus(OpCandidate.StatusCode code)Sets the status of the matching attempt.voidsetStatus(OpCandidate.StatusCode code, String message)Sets the status of the matching attempt.voidsetStatus(OpCandidate.StatusCode code, String message, Member<?> item)Sets the status of the matching.Structstruct()Gets theStructmetadata describing the op to match against.StringtoString()Map<TypeVariable<?>,Type>typeVarAssigns()
-
-
-
Constructor Detail
-
OpCandidate
public OpCandidate(OpEnvironment env, OpRequest request, OpInfo info, Map<TypeVariable<?>,Type> typeVarAssigns)
-
OpCandidate
public OpCandidate(OpEnvironment env, OpRequest request, OpInfo info)
-
-
Method Detail
-
getReifiedType
public static Type getReifiedType(OpRequest request, OpInfo info, Map<TypeVariable<?>,Type> typeVarAssigns)
-
env
public OpEnvironment env()
Gets the op execution environment of the desired match.
-
getRequest
public OpRequest getRequest()
Gets the op request describing the desired match.
-
priority
public double priority()
Gets the priority of this result
-
typeVarAssigns
public Map<TypeVariable<?>,Type> typeVarAssigns()
-
paddedArgs
public Type[] paddedArgs()
-
struct
public Struct struct()
Gets theStructmetadata describing the op to match against.- See Also:
OpInfo.struct()
-
setStatus
public void setStatus(OpCandidate.StatusCode code)
Sets the status of the matching attempt.
-
setStatus
public void setStatus(OpCandidate.StatusCode code, String message)
Sets the status of the matching attempt.
-
setStatus
public void setStatus(OpCandidate.StatusCode code, String message, Member<?> item)
Sets the status of the matching.
-
getStatusCode
public OpCandidate.StatusCode getStatusCode()
Gets the matching status code.
-
getStatusItem
public Member<?> getStatusItem()
Gets the status item related to the matching status, if any. Typically, if set, this is the parameter for which matching failed.
-
getStatus
public String getStatus()
Gets a descriptive status message in human readable form.
-
createOpInstance
public StructInstance<?> createOpInstance(List<?> dependencies)
-
-