Class ProtectedCondition

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProtectedCondition
    extends java.lang.Object
    implements java.io.Serializable
    Represents an InterestGoal's ProtectedCondition that we want to preserve during the planning proccess.
    Author:
    Joao Dias
    See Also:
    InterestGoal, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Condition getCond()
      Gets the condition that we want to protect
      Goal getGoal()
      Gets the Goal that wants the condition to be protected
      java.lang.String toString()
      Converts the ProtectedCondition to a String
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 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:
        toString in class java.lang.Object
        Returns:
        the converted String