Package FAtiMA.Core.plans
Class GoalThreat
- java.lang.Object
-
- FAtiMA.Core.plans.GoalThreat
-
- All Implemented Interfaces:
java.io.Serializable
public class GoalThreat extends java.lang.Object implements java.io.SerializableRepresents an InterestGoal Threat- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GoalThreat(ProtectedCondition precond, IPlanningOperator op, Effect eff)Creates a new GoalThreat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedConditiongetCond()Gets the Goal's protected condition being threatenedEffectgetEffect()Gets the Effect that threatens the protected conditionIPlanningOperatorgetOperator()Gets the operator that threatens the protected condition
-
-
-
Constructor Detail
-
GoalThreat
public GoalThreat(ProtectedCondition precond, IPlanningOperator op, Effect eff)
Creates a new GoalThreat- Parameters:
precond- - the Goal's condition that we want to protect and that is being threatenedop- - the operator that threatens the protected conditioneff- - the effect that threatens the protected condition
-
-
Method Detail
-
getCond
public ProtectedCondition getCond()
Gets the Goal's protected condition being threatened- Returns:
- the Goal's ProtectedCondition
-
getEffect
public Effect getEffect()
Gets the Effect that threatens the protected condition- Returns:
- the threatening effect
-
getOperator
public IPlanningOperator getOperator()
Gets the operator that threatens the protected condition- Returns:
- the threatening PlanningOperator
-
-