Interface Condition

All Known Implementing Classes:
CheckActivitiesCondition, CheckConnectionCondition, CheckFileCondition, CheckHistoryCondition, CheckProcessCondition, CurrentQueueCondition, CurrentTimeCondition, ReturnCodeCondition, StatusCondition, TimeSinceActivationCondition, UserDefinedCondition

public interface Condition
Condition of a JobPlan task (PreCondition or PostCondition).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.
    void
    Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.
    The returned iterator can be used to get the actions/conditions which are executed when this condition is false.
    int
    Returns the number of action/conditions which should be executed when this condition is false.
     
    boolean
     
    boolean
     
    The returned iterator can be used to get the actions/conditions which are executed when this condition is true.
    int
    Returns the number of action/conditions which should be executed when this condition is true.
  • Method Details

    • isBeforeCondition

      boolean isBeforeCondition()
      Returns:
      true if this condition can be used as Pre-Condition
    • isAfterCondition

      boolean isAfterCondition()
      Returns:
      true if this condition can be used as Post-Condition
    • addWhen

      void addWhen(ConditionOrAction item)
      Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.
      Parameters:
      item - Condition or Action
    • addElse

      void addElse(ConditionOrAction item)
      Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.
      Parameters:
      item - Condition or Action
    • whenSize

      int whenSize()
      Returns the number of action/conditions which should be executed when this condition is true.
      Returns:
      Number of conditions/actions
    • elseSize

      int elseSize()
      Returns the number of action/conditions which should be executed when this condition is false.
      Returns:
      Number of conditions/actions
    • whenIterator

      Iterator<ConditionOrAction> whenIterator()
      The returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of the java.util.Iterator can be used to remove conditions or actions.
      Returns:
      Iterator
    • elseIterator

      Iterator<ConditionOrAction> elseIterator()
      The returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of the java.util.Iterator can be used to remove conditions or actions.
      Returns:
      Iterator
    • getId

      String getId()
      Returns:
      Unique ID of this condition