Record Class PlanBudget

java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.planner.PlanBudget
Record Components:
depth - the most steps in a plan
width - the most partial plans kept while searching

public record PlanBudget(int depth, int width) extends Record
How far a planner searches: the longest plan it returns and how many partial plans it keeps (SRAD ยง6.8 decision 5: eight steps by default, a per-goal override).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PlanBudget
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlanBudget(int depth, int width)
    Creates an instance of a PlanBudget record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the depth record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the width record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT

      public static final PlanBudget DEFAULT
  • Constructor Details

    • PlanBudget

      public PlanBudget(int depth, int width)
      Creates an instance of a PlanBudget record class.
      Parameters:
      depth - the value for the depth record component
      width - the value for the width record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • depth

      public int depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component