Package FAtiMA.Core.plans
Class ProtectedCondition
- java.lang.Object
-
- FAtiMA.Core.plans.ProtectedCondition
-
- All Implemented Interfaces:
java.io.Serializable
public class ProtectedCondition extends java.lang.Object implements java.io.SerializableRepresents an InterestGoal's ProtectedCondition that we want to preserve during the planning proccess.- Author:
- Joao Dias
- See Also:
InterestGoal, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtectedCondition(Goal goal, Condition cond)Creates a new ProtectedCondition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditiongetCond()Gets the condition that we want to protectGoalgetGoal()Gets the Goal that wants the condition to be protectedjava.lang.StringtoString()Converts the ProtectedCondition to a String
-
-
-
Method Detail
-
getCond
public Condition getCond()
Gets the condition that we want to protect- Returns:
- - the protected condition
-
getGoal
public Goal getGoal()
Gets the Goal that wants the condition to be protected- Returns:
- the Interest Goal that protects the condition
-
toString
public java.lang.String toString()
Converts the ProtectedCondition to a String- Overrides:
toStringin classjava.lang.Object- Returns:
- the converted String
-
-