Class DispatchInformation
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.DispatchInformation
-
class DispatchInformation extends java.lang.ObjectStores dispatch information for dynamically dispatching a custom operation.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IDatatype[]argTypesprivate intbestDiffprivate CustomOperationbestMatchprivate java.util.Set<java.lang.String>candidatesprivate java.util.Set<Project>doneProjectsprivate CustomOperationoperationprivate java.lang.StringopNameprivate intopParamCountprivate IDatatypereturnType
-
Constructor Summary
Constructors Constructor Description DispatchInformation(CustomOperation operation, EvaluationAccessor[] args)Creates a dispatch information object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcheckForDispatch(Project scope)Checks the given scope for dispatch candidates.(package private) CustomOperationgetBestMatch()Returns the best matching operation.
-
-
-
Field Detail
-
operation
private CustomOperation operation
-
argTypes
private IDatatype[] argTypes
-
bestDiff
private int bestDiff
-
bestMatch
private CustomOperation bestMatch
-
candidates
private java.util.Set<java.lang.String> candidates
-
doneProjects
private java.util.Set<Project> doneProjects
-
opName
private java.lang.String opName
-
opParamCount
private int opParamCount
-
returnType
private IDatatype returnType
-
-
Constructor Detail
-
DispatchInformation
DispatchInformation(CustomOperation operation, EvaluationAccessor[] args)
Creates a dispatch information object.- Parameters:
operation- the operation to dispatchargs- the operation arguments
-
-
Method Detail
-
getBestMatch
CustomOperation getBestMatch()
Returns the best matching operation.- Returns:
- the best matching operation
-
checkForDispatch
void checkForDispatch(Project scope)
Checks the given scope for dispatch candidates.- Parameters:
scope- the scope to check for
-
-