Package Peach :: Package Engine :: Module state :: Class StateEngine
[hide private]

Class StateEngine

source code

Runs a StateMachine instance.

Instance Methods [hide private]
 
__init__(self, engine, stateMachine, publisher)
engine - Engine stateMachien - StateMachine to use publisher - Publisher to use
source code
 
run(self, mutator)
Perform a single run of a StateMachine using the provided mutator.
source code
 
_getStateByName(self, stateName)
Locate a State object by name in the StateMachine.
source code
 
_runState(self, state, mutator)
Runs a specific State from a StateMachine.
source code
 
_runAction(self, action, mutator) source code
 
_resetXmlNodes(self, node)
Reset XML node tree starting at 'node'.
source code
Method Details [hide private]

_resetXmlNodes(self, node)

source code 

Reset XML node tree starting at 'node'.  We will remove
any attribute calleed:

  value
  currentValue
  defaultValue
  value-Encoded
  currentValue-Encoded
  defaultValue-Encoded