Class IncreaseFeatureCondition

Object
IncreaseFeatureCondition
All Implemented Interfaces:
AfterCondition

public class IncreaseFeatureCondition extends Object implements AfterCondition
An AfterCondition that checks if merging two ObjectMasks increases a specific feature value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IncreaseFeatureCondition(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator)
    Creates a new IncreaseFeatureCondition instance.
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IncreaseFeatureCondition

      public IncreaseFeatureCondition(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator)
      Creates a new IncreaseFeatureCondition instance.
      Parameters:
      featureEvaluator - The FeatureEvaluator used to calculate the feature value.
  • Method Details

    • initialize

      public void initialize(Logger logger) throws InitializeException
      Description copied from interface: AfterCondition
      Initializes the condition with a logger.
      Specified by:
      initialize in interface AfterCondition
      Parameters:
      logger - the Logger 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 interface AfterCondition
      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