Class GoalThreat

  • All Implemented Interfaces:
    java.io.Serializable

    public class GoalThreat
    extends java.lang.Object
    implements java.io.Serializable
    Represents an InterestGoal Threat
    Author:
    Joao Dias
    See Also:
    Serialized Form
    • 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 threatened
        op - - the operator that threatens the protected condition
        eff - - 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