Class OrderingConstraint

java.lang.Object
FAtiMA.Core.plans.OrderingConstraint
All Implemented Interfaces:
Serializable

public class OrderingConstraint extends Object implements Serializable
Represents a plan's ordering constraint of the type A < B (Step A must be executed before B)
Author:
Joao Dias
See Also:
  • Constructor Details

    • OrderingConstraint

      public OrderingConstraint(Integer before, Integer after)
      Creates a new OrderingContraints between two Steps. (Receives the step's ID's)
      Parameters:
      before - - The Step A (ID) of the ordering constraint A > B
      after - - The Step B (ID) of the ordering constraint A > B
  • Method Details

    • getAfter

      public Integer getAfter()
      Gets the Step B in the ordering constraint A > B
      Returns:
      the step's ID
    • getBefore

      public Integer getBefore()
      Gets the Step A in the ordering constraint A > B
      Returns:
      the step's ID
    • toString

      public String toString()
      Converts the OrderingConstraint to a String
      Overrides:
      toString in class Object
      Returns:
      the converted String