Class IncreaseFeatureCondition
Object
IncreaseFeatureCondition
- All Implemented Interfaces:
AfterCondition
An
AfterCondition
that checks if merging two ObjectMask
s increases a specific
feature value.-
Constructor Summary
ConstructorsConstructorDescriptionIncreaseFeatureCondition
(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator) Creates a newIncreaseFeatureCondition
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(ObjectMask source, ObjectMask destination, ObjectMask merged) Checks if the merged object satisfies the condition.void
initialize
(Logger logger) Initializes the condition with a logger.
-
Constructor Details
-
IncreaseFeatureCondition
Creates a newIncreaseFeatureCondition
instance.- Parameters:
featureEvaluator
- TheFeatureEvaluator
used to calculate the feature value.
-
-
Method Details
-
initialize
Description copied from interface:AfterCondition
Initializes the condition with a logger.- Specified by:
initialize
in interfaceAfterCondition
- Parameters:
logger
- theLogger
to 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:AfterCondition
Checks if the merged object satisfies the condition.- Specified by:
accept
in interfaceAfterCondition
- Parameters:
source
- the sourceObjectMask
that was mergeddestination
- the destinationObjectMask
that was merged intomerged
- the resulting mergedObjectMask
- Returns:
- true if the merged object satisfies the condition, false otherwise
- Throws:
OperationFailedException
- if the condition check fails
-