Class OrderingConstraint

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      OrderingConstraint​(java.lang.Integer before, java.lang.Integer after)
      Creates a new OrderingContraints between two Steps.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getAfter()
      Gets the Step B in the ordering constraint A > B
      java.lang.Integer getBefore()
      Gets the Step A in the ordering constraint A > B
      java.lang.String toString()
      Converts the OrderingConstraint to a String
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OrderingConstraint

        public OrderingConstraint​(java.lang.Integer before,
                                  java.lang.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 Detail

      • getAfter

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

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

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