|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - the class for atomic elements in a statepublic interface Plan<A>
This class represents a Plan which is a collection of Actions that are somehow organised. A Plan is a solution to a planning problem if and only if its execution in the initial state results in a state in which the goal is satisfied.
| Method Summary | |
|---|---|
WorldState<A> |
applyIn(WorldState<A> istate)
This function computes a new WorldState that is the result of applying this Plan in the given state. |
SequentialPlan<A> |
asSequentialPlan()
This function returns a linearised, total-order version of this Plan. |
Domain<A> |
getDomain()
This function retrieves the Domain which contains the definitions of the ActionTypes of which the Actions in this Plan are instances. |
boolean |
solves(Problem<A> p)
This function tests whether this Plan constitutes a solution to the given Problem. |
| Method Detail |
|---|
SequentialPlan<A> asSequentialPlan()
This function returns a linearised, total-order version of this Plan.
Domain<A> getDomain()
This function retrieves the Domain which contains the definitions of the ActionTypes of which the Actions in this Plan are instances.
WorldState<A> applyIn(WorldState<A> istate)
This function computes a new WorldState that is the result of applying this Plan in the given state. If this Plan is not applicable in an intermediate state, the result will be null.
istate - the WorldState in which the SequentialPlan is to be applied
boolean solves(Problem<A> p)
This function tests whether this Plan constitutes a solution to the given Problem. This is true iff this Plan applied to the initial state results in a state that satisfies the goal of the Problem.
p - the Problem to which this Plan be a solution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||