Documentation ¶
Index ¶
- type OnNextStateEnter
- type StateTable
- func (self *StateTable) AddRule(currentState string, input string, nextState string, callback OnNextStateEnter)
- func (self *StateTable) GetCurrentState() string
- func (self *StateTable) GetNextState(input string) string
- func (self *StateTable) SetInitialState(state string)
- func (self *StateTable) SetState(state string, input string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnNextStateEnter ¶
type StateTable ¶
type StateTable struct {
// contains filtered or unexported fields
}
func CreateStateTransitionTable ¶
func CreateStateTransitionTable() *StateTable
func (*StateTable) AddRule ¶
func (self *StateTable) AddRule(currentState string, input string, nextState string, callback OnNextStateEnter)
func (*StateTable) GetCurrentState ¶
func (self *StateTable) GetCurrentState() string
func (*StateTable) GetNextState ¶
func (self *StateTable) GetNextState(input string) string
func (*StateTable) SetInitialState ¶
func (self *StateTable) SetInitialState(state string)
func (*StateTable) SetState ¶
func (self *StateTable) SetState(state string, input string)
Click to show internal directories.
Click to hide internal directories.