Package haizea :: Package core :: Module leases :: Class LeaseStateMachine
[hide private]
[frames] | no frames]

Class LeaseStateMachine

source code


A lease state machine

A child of StateMachine, this class simply specifies the valid states and transitions for a lease (the actual state machine code is in StateMachine).

See the Haizea documentation for a description of states and valid transitions.

Instance Methods [hide private]
 
__init__(self, initial_state)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from common.utils.StateMachine: change_state, get_state, get_state_str

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  transitions = {0: [(1, '')], 1: [(3, ''), (4, ''), (5, ''), (2...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, initial_state)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

transitions

Value:
{0: [(1, '')],
 1: [(3, ''), (4, ''), (5, ''), (2, '')],
 2: [],
 3: [(6, ''), (4, ''), (1, ''), (7, ''), (5, ''), (17, '')],
 4: [(3, ''), (5, '')],
 5: [],
 6: [(7, ''), (1, ''), (5, ''), (17, '')],
 7: [(8, ''), (4, ''), (1, ''), (5, ''), (17, '')],
...