Package FAtiMA.Core.plans
Class OpenPrecondition
- java.lang.Object
-
- FAtiMA.Core.plans.OpenPrecondition
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenPrecondition extends java.lang.Object implements java.io.SerializableRepresents a plan's Open Precondition. An Open Precondition corresponds to a condition that its not achieved by any effect in the plan and must be satisfied in order to complete the plan- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenPrecondition(java.lang.Integer step, java.lang.Integer cond)Creates a new OpenPrecondition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetCondition()Gets the precondition that needs to be satisfiedjava.lang.IntegergetStep()Gets the step that needs the precondition satisfiedvoidsetCondition(java.lang.Integer condition)Sets the condition that needs to be satisfiedvoidsetStep(java.lang.Integer step)Sets the Step that needs to have the precondition satisfiedjava.lang.StringtoString()Converts the OpenPrecondition to a String
-
-
-
Method Detail
-
getCondition
public java.lang.Integer getCondition()
Gets the precondition that needs to be satisfied- Returns:
- the ID of the precondition in the step
-
getStep
public java.lang.Integer getStep()
Gets the step that needs the precondition satisfied- Returns:
- the ID of the Step that needs the precondition satisfied
-
setCondition
public void setCondition(java.lang.Integer condition)
Sets the condition that needs to be satisfied- Parameters:
condition- - the new ID of the precondition in the step
-
setStep
public void setStep(java.lang.Integer step)
Sets the Step that needs to have the precondition satisfied- Parameters:
step- - the new ID of the Step that needs the precondition satisfied
-
toString
public java.lang.String toString()
Converts the OpenPrecondition to a String- Overrides:
toStringin classjava.lang.Object- Returns:
- the converted String
-
-