Interface ConditionAbleIF
- All Known Subinterfaces:
MappingModelGlueIF,ModelEmbeddingIF,PatternIF,SourceMatchClassIF,TargetMatchClassIF
- All Known Implementing Classes:
DeleteMappingModelGlueInnovatorDependency,ElementFromActivePassiveSelection,ElementFromInitialSelection,ElementFromStore,ElementFromStore,MappingModelGlue,MappingModelGlueInnovator,MappingModelGlueInnovatorDependency,MappingModelGlueInnovatorProxyAbstractBase,MappingModelGlueInnovatorProxyExternModel,MappingModelGlueInnovatorProxyInnovator,MappingModelGlueNull,Pattern,PatternEmbeddingDefault,PatternEmbeddingInnovatorDiagram,PatternEmbeddingInnovatorSortOrder,PatternEmbeddingMultiple,PatternEmbeddingNull,PatternEmbeddingPair,PatternEmbeddingQualified,PatternExtendingInnovator,PatternHookBase,PatternHookElementFromActivePassiveSelection,PatternHookElementFromInitialSelection,PatternHookElementFromTransformationStep,PatternHookInnovator,PatternProductionAppend,PatternProductionBaseInnovator,PatternProductionDiagramInnovator,PatternProductionError,PatternProductionPathSequence,PatternProductionSortOrderInnovator,PatternSourceHookElementByElementURI,PatternSourceHookPackageByPath,PatternTargetHookElementByCreateRedirect,PatternTargetHookElementByElementURI,PatternTargetHookElementByMappingConfigurationPackage,PatternTargetHookPackageByPath,PatternTargetMatchAnchor,PatternTargetMatchAssociationEndInnovator,PatternTargetMatchAssociationInnovator,PatternTargetMatchBase,PatternTargetMatchBaseInnovator,PatternTargetMatchCommentAssignInnovator,PatternTargetMatchDiagramInnovator,PatternTargetMatchInnovator,PatternTargetMatchInnovatorLost,PatternTargetMatchOwning,PatternTargetMatchPathSequence,PatternTargetMatchSource,PatternTargetMatchSourceTargetInnovator
public interface ConditionAbleIF
This interface indicates that the result of the execution of an instance is filtered by conditions.
It has conditions.
- Version:
- 11.1.0
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateConditions(MappingElementIF sourceElement, MappingElementIF targetElement) Evaluate the conditions for a pair of source and target elements or for a single source element.evaluateScore(MappingElementIF sourceElement, MappingElementIF targetElement) Evaluate the score of the target element in context of source element.filterElements(MappingElementIF sourceElement, MappingElementList targetElements) Filter the list target elements according to conditions and current source element.
-
Method Details
-
evaluateConditions
boolean evaluateConditions(MappingElementIF sourceElement, MappingElementIF targetElement) throws M2MException, RemoteException Evaluate the conditions for a pair of source and target elements or for a single source element.- Parameters:
sourceElement- source element for the evaluationtargetElement- target element for the evaluation- Returns:
- true, if all conditions are true
- Throws:
RemoteException- error in communicationM2MException- error in application
-
filterElements
MappingElementList filterElements(MappingElementIF sourceElement, MappingElementList targetElements) throws M2MException, RemoteException Filter the list target elements according to conditions and current source element.- Parameters:
sourceElement- source elementtargetElements- candidate target elements- Returns:
- filtered target elements
- Throws:
M2MException- application errorRemoteException- communication error
-
evaluateScore
ValidatingScore evaluateScore(MappingElementIF sourceElement, MappingElementIF targetElement) throws RemoteException, M2MException Evaluate the score of the target element in context of source element.- Parameters:
sourceElement- source elementtargetElement- target element- Returns:
- a score showing how good the target matches the source via conditions
- Throws:
M2MException- application errorRemoteException- communication error
-