|
||||||||||
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 Action<A>
An Action is an activity that may be executable by some agent. Every Action must be an instance of some ActionType.
Method Summary | |
---|---|
WorldState<A> |
applyIn(WorldState<A> state)
This function computes a new WorldState that is the result of applying this Action in the given state. |
ActionType<A> |
getActionType()
This function returns the ActionType of this Action. |
boolean |
isApplicableIn(WorldState<A> state)
This function tests whether this Action is applicable in the given state. |
Method Detail |
---|
ActionType<A> getActionType()
This function returns the ActionType of this Action.
boolean isApplicableIn(WorldState<A> state)
This function tests whether this Action is applicable in the given state.
state
- the WorldState in which applicability is to be tested
WorldState<A> applyIn(WorldState<A> state)
This function computes a new WorldState that is the result of applying this Action in the given state. The Action should be applicable or the result of this function may not be as expected.
state
- the WorldState in which this Action to be applied
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |