Package FAtiMA.Core.plans
Class OrderingConstraint
- java.lang.Object
-
- FAtiMA.Core.plans.OrderingConstraint
-
- All Implemented Interfaces:
java.io.Serializable
public class OrderingConstraint extends java.lang.Object implements java.io.SerializableRepresents 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.IntegergetAfter()Gets the Step B in the ordering constraint A > Bjava.lang.IntegergetBefore()Gets the Step A in the ordering constraint A > Bjava.lang.StringtoString()Converts the OrderingConstraint to a String
-
-
-
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 > Bafter- - 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:
toStringin classjava.lang.Object- Returns:
- the converted String
-
-