Class IncreaseFeatureCondition
Object
IncreaseFeatureCondition
- All Implemented Interfaces:
AfterCondition
An
AfterCondition that checks if merging two ObjectMasks increases a specific
feature value.-
Constructor Summary
ConstructorsConstructorDescriptionIncreaseFeatureCondition(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator) Creates a newIncreaseFeatureConditioninstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ObjectMask source, ObjectMask destination, ObjectMask merged) Checks if the merged object satisfies the condition.voidinitialize(Logger logger) Initializes the condition with a logger.
-
Constructor Details
-
IncreaseFeatureCondition
Creates a newIncreaseFeatureConditioninstance.- Parameters:
featureEvaluator- TheFeatureEvaluatorused to calculate the feature value.
-
-
Method Details
-
initialize
Description copied from interface:AfterConditionInitializes the condition with a logger.- Specified by:
initializein interfaceAfterCondition- Parameters:
logger- theLoggerto be used for logging- Throws:
InitializeException- if initialization fails
-
accept
public boolean accept(ObjectMask source, ObjectMask destination, ObjectMask merged) throws OperationFailedException Description copied from interface:AfterConditionChecks if the merged object satisfies the condition.- Specified by:
acceptin interfaceAfterCondition- Parameters:
source- the sourceObjectMaskthat was mergeddestination- the destinationObjectMaskthat was merged intomerged- the resulting mergedObjectMask- Returns:
- true if the merged object satisfies the condition, false otherwise
- Throws:
OperationFailedException- if the condition check fails
-