Interface AfterCondition
- All Known Implementing Classes:
IncreaseFeatureCondition
public interface AfterCondition
A condition to be checked after merging two
ObjectMask
s.-
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.
-
Method Details
-
initialize
Initializes the condition with a logger.- Parameters:
logger
- theLogger
to 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 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
-