Planner

A planner is a system that can plan from a set of actions to a set of goals. A planner should have a way of determining present state, such as the GOAP WorldStateDeterminer. The representation of state can differ between planners.

Inheritors

Functions

Link copied to clipboard
open fun bestValuePlanToAnyGoal(system: S): P?

Return the best plan to any goal

Link copied to clipboard
open fun plansToGoals(system: S): List<P>

Return the best plan to each goal from the present world state. The plans (one for each goal) are sorted by net value, descending.

Link copied to clipboard
abstract fun planToGoal(actions: Collection<Action>, goal: Goal): P?

Plan from here to the given goal

Link copied to clipboard
abstract fun prune(planningSystem: S): S

Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state.

Link copied to clipboard
abstract fun worldState(): W

Current world state