Shorthand for the meta state machine
Shorthand for the meta state machine
Shorthand for one of the states
Shorthand for one of the states
Implement a method that returns the singleton
Implement a method that returns the singleton
Any transitions that are applied to all states can be listed here
Any transitions that are applied to all states can be listed here
The default initial state
The enumeration of states
This method must be implemented.
This method must be implemented. It defines the states and legal state transitions
The column in the database that stores the current state
The column in the database that stores the current state
the primary key for the database
the primary key for the database
get the primary key field
get the primary key field
Process an event
Process an event
Get the current state
Get the current state
Terminate an instance
This item has reached a terminating state.
This item has reached a terminating state. This method will remove the item from the database. Override this method (please call super at the end of your method) to do any cleanup.
The column in the database that stores the next time an event should go off
The column in the database that stores the next time an event should go off
How long to wait to start looking for timed events.
How long to wait to start looking for timed events. Override this method to specify a time
After the initial test, how long do we wait
This method is called on a transition from one state to another.
This method is called on a transition from one state to another. Override this method to perform an action. Please call super to actually change the state and save the instance
A singleton that implements this trait will manage transitions, etc. for the state machine instance