Interface AfterCondition
- All Known Implementing Classes:
IncreaseFeatureCondition
public interface AfterCondition
A condition to be checked after merging two
ObjectMasks.-
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.
-
Method Details
-
initialize
Initializes the condition with a logger.- Parameters:
logger- theLoggerto be used for logging- Throws:
InitializeException- if initialization fails
-
accept
boolean accept(ObjectMask source, ObjectMask destination, ObjectMask merged) throws OperationFailedException Checks if the merged object satisfies the condition.- 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
-