lnsc.page
Interface ActionGenerator

All Known Implementing Classes:
AbstractActionGenerator

public interface ActionGenerator

Generates list of possible actions.


Method Summary
 boolean areActionsFixed()
          Indicates whether the list of actions is fixed (always the same) or not.
 int getActionCount()
          Indicates how many actions it generates.
 Action[] getActions(State s)
          Returns the list of available action from the current state.
 java.util.Enumeration getActionsEnumerator(State s)
          Returns an iterator that list the available actions from the current state.
 

Method Detail

areActionsFixed

public boolean areActionsFixed()
Indicates whether the list of actions is fixed (always the same) or not.

Returns:
true if the list of action is independent of the state, false otherwise

getActionCount

public int getActionCount()
Indicates how many actions it generates. For fixed it should return the number of actions, for unfixed, it should return -1.

Returns:
Number of actions.

getActions

public Action[] getActions(State s)
Returns the list of available action from the current state.

Returns:
The list of available action.

getActionsEnumerator

public java.util.Enumeration getActionsEnumerator(State s)
Returns an iterator that list the available actions from the current state.

Returns:
The actions enumerator.