GoalBuilder

Builder for Goal instances.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): Goal<State>

Creates an instance of Goal based on the builder's configuration.

Link copied to clipboard

Sets the condition function for the goal.

Link copied to clipboard

Sets the cost function for the goal.

Link copied to clipboard
fun description(description: String?): GoalBuilder<State>

Sets the description of the goal.

Link copied to clipboard

Sets the name of the goal.

Link copied to clipboard
fun value(value: (Double) -> Double): GoalBuilder<State>

Sets the value function for the goal.