Package com.embabel.plan
Class Plan
-
- All Implemented Interfaces:
-
com.embabel.common.core.types.HasInfoString
public class Plan implements HasInfoStringPlan to achieve a goal. A plan is a chain of actions. The plan should be reassessed after each action each perform.
-
-
Method Summary
Modifier and Type Method Description final List<Action>getActions()final GoalgetGoal()final BooleanisComplete()Has this plan been completed? final Doublecost(WorldState state)The cost of a plan may be greater than 1. final DoubleactionsValue(WorldState state)final DoublenetValue(WorldState state)StringinfoString(Boolean verbose, Integer indent)-
-
Method Detail
-
getActions
final List<Action> getActions()
-
isComplete
final Boolean isComplete()
Has this plan been completed?
-
cost
final Double cost(WorldState state)
The cost of a plan may be greater than 1.0, even though action costs and all values are 0-1
-
actionsValue
final Double actionsValue(WorldState state)
-
netValue
final Double netValue(WorldState state)
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-