Class ProtectedCondition

java.lang.Object
FAtiMA.Core.plans.ProtectedCondition
All Implemented Interfaces:
Serializable

public class ProtectedCondition extends Object implements Serializable
Represents an InterestGoal's ProtectedCondition that we want to preserve during the planning proccess.
Author:
Joao Dias
See Also:
  • Constructor Details

    • ProtectedCondition

      public ProtectedCondition(Goal goal, Condition cond)
      Creates a new ProtectedCondition
      Parameters:
      goal - - the InterestGoal that this ProtectedCondition references
      cond - - the condition that we want to protect
  • Method Details

    • 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 String toString()
      Converts the ProtectedCondition to a String
      Overrides:
      toString in class Object
      Returns:
      the converted String