Class OpenPrecondition

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenPrecondition
    extends java.lang.Object
    implements java.io.Serializable
    Represents a plan's Open Precondition. An Open Precondition corresponds to a condition that its not achieved by any effect in the plan and must be satisfied in order to complete the plan
    Author:
    Joao Dias
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenPrecondition​(java.lang.Integer step, java.lang.Integer cond)
      Creates a new OpenPrecondition
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getCondition()
      Gets the precondition that needs to be satisfied
      java.lang.Integer getStep()
      Gets the step that needs the precondition satisfied
      void setCondition​(java.lang.Integer condition)
      Sets the condition that needs to be satisfied
      void setStep​(java.lang.Integer step)
      Sets the Step that needs to have the precondition satisfied
      java.lang.String toString()
      Converts the OpenPrecondition to a String
      • Methods inherited from class java.lang.Object

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

      • OpenPrecondition

        public OpenPrecondition​(java.lang.Integer step,
                                java.lang.Integer cond)
        Creates a new OpenPrecondition
        Parameters:
        step - - the ID of the step that needs the precondition to be satisfied
        cond - - the ID of the precondition (in the step) that needs to be satified
    • Method Detail

      • getCondition

        public java.lang.Integer getCondition()
        Gets the precondition that needs to be satisfied
        Returns:
        the ID of the precondition in the step
      • getStep

        public java.lang.Integer getStep()
        Gets the step that needs the precondition satisfied
        Returns:
        the ID of the Step that needs the precondition satisfied
      • setCondition

        public void setCondition​(java.lang.Integer condition)
        Sets the condition that needs to be satisfied
        Parameters:
        condition - - the new ID of the precondition in the step
      • setStep

        public void setStep​(java.lang.Integer step)
        Sets the Step that needs to have the precondition satisfied
        Parameters:
        step - - the new ID of the Step that needs the precondition satisfied
      • toString

        public java.lang.String toString()
        Converts the OpenPrecondition to a String
        Overrides:
        toString in class java.lang.Object
        Returns:
        the converted String