Interface AfterCondition

All Known Implementing Classes:
IncreaseFeatureCondition

public interface AfterCondition
A condition to be checked after merging two ObjectMasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

      void initialize(Logger logger) throws InitializeException
      Initializes the condition with a logger.
      Parameters:
      logger - the Logger 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 source ObjectMask that was merged
      destination - the destination ObjectMask that was merged into
      merged - the resulting merged ObjectMask
      Returns:
      true if the merged object satisfies the condition, false otherwise
      Throws:
      OperationFailedException - if the condition check fails