Package svs_simulation :: Package agents :: Module basic_agents :: Class AgentStateManager
[show private | hide private]
[frames | no frames]

Class AgentStateManager

StateManager --+
               |
              AgentStateManager


StateManager providing standard states for agent.
Method Summary
  __init__(self, agent)
Initialises state manager.
    Inherited from StateManager
  clearPropertiesForState(self, stateName)
Removes all properties for specified state.
  getCurrentStates(self)
Returns a dictionary representing the current state in each of the state layers.
  getNameForState(self, layerName)
Return the name of the current state for specified layer.
  getState(self, layerName)
Return the current state for specified layer.
  getStateProperty(self, stateName, propertyName)
Returns a property value for a state.
  gotoState(self, newStateName, layerName)
Set specified layer to new state.
  setInitialState(self, stateName, layerName)
Sets initial state for agent.
  setInput(self, input, layerName)
Sends an input event.
  setStateProperty(self, stateName, propertyName, propertyValue)
Stores a property value for a state.

Instance Variable Summary
    Inherited from StateManager
object agent: agent object to whom state manager applies.
dict currentStates: list of current states.

Class Variable Summary
    Inherited from StateManager
dict layers: list of layers for parallel state machine.

Method Details

__init__(self, agent)
(Constructor)

Initialises state manager.
Parameters:
agent - agent object to whom state manager applies.
           (type=object)
Overrides:
svs_simulation.ai_lib.statemachine.StateManager.__init__ (inherited documentation)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 http://epydoc.sf.net