Package FAtiMA.Core.plans
Class OpenPrecondition
java.lang.Object
FAtiMA.Core.plans.OpenPrecondition
- All Implemented Interfaces:
Serializable
Represents 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the precondition that needs to be satisfiedgetStep()Gets the step that needs the precondition satisfiedvoidsetCondition(Integer condition) Sets the condition that needs to be satisfiedvoidSets the Step that needs to have the precondition satisfiedtoString()Converts the OpenPrecondition to a String
-
Constructor Details
-
OpenPrecondition
Creates a new OpenPrecondition- Parameters:
step- - the ID of the step that needs the precondition to be satisfiedcond- - the ID of the precondition (in the step) that needs to be satified
-
-
Method Details
-
getCondition
Gets the precondition that needs to be satisfied- Returns:
- the ID of the precondition in the step
-
getStep
Gets the step that needs the precondition satisfied- Returns:
- the ID of the Step that needs the precondition satisfied
-
setCondition
Sets the condition that needs to be satisfied- Parameters:
condition- - the new ID of the precondition in the step
-
setStep
Sets the Step that needs to have the precondition satisfied- Parameters:
step- - the new ID of the Step that needs the precondition satisfied
-
toString
Converts the OpenPrecondition to a String
-