Peach :: Mutators :: datatree :: DataTreeSwapNearNodesMutator :: Class DataTreeSwapNearNodesMutator
[hide private]

Class DataTreeSwapNearNodesMutator

source code



Swap two nodes in the data model that
are near each other.

TODO: Actually move the nodes instead of
      just the data.

Instance Methods [hide private]
 
__init__(self, peach) source code
 
isFinite(self)
Some mutators could contine forever, this should indicate.
source code
 
reset(self)
Reset mutator
source code
 
_moveNext(self, currentNode) source code
 
_nextNode(self, action) source code
 
next(self)
Goto next mutation.
source code
 
getState(self)
Return a binary string that contains any information about current state of Mutator.
source code
 
setState(self, state)
Set the state of this object.
source code
 
_countDataNodes(self, node) source code
 
getCount(self) source code
 
calculateCount(self) source code
 
getActionValue(self, action) source code
 
getActionParamValue(self, action) source code
 
getActionChangeStateValue(self, action, value) source code
 
onStateStart(self, state) source code
 
onStateComplete(self, state) source code
 
onActionStart(self, action) source code
 
onActionComplete(self, action) source code
 
onStateMachineStart(self, stateMachine) source code
 
onStateMachineComplete(self, stateMachine) source code
Method Details [hide private]

next(self)

source code 

Goto next mutation. When this is called the state machine is updated as needed.

getState(self)

source code 

Return a binary string that contains any information about current state of Mutator. This state information should be enough to let the same mutator "restart" and continue when setState() is called.

setState(self, state)

source code 

Set the state of this object. Should put us back in the same place as when we said "getState()".