angelos.server.state¶
State machine.
-
class
angelos.server.state.State(name=None, blocking=[], depends=[], switches=[])¶ Bases:
object-
blocking= []¶
-
depends= []¶
-
name= None¶
-
property
state¶
-
switch(turn=None)¶ Flip the current state and clear and set the ON/OFF events.
-
switches= []¶
-
wait(turn=None)¶ wait for the opposite event of current state to happen.
-
-
exception
angelos.server.state.StateBlockedError¶
-
exception
angelos.server.state.StateDependencyError¶
-
class
angelos.server.state.StateMachine(states=[])¶ Bases:
object-
off(state)¶
-
on(state)¶
-
position(state)¶
-
property
states¶
-
-
exception
angelos.server.state.StateMachineError¶
-
exception
angelos.server.state.StateMissconfiguredError¶