mealy

package
Version: v0.0.0-...-ec986f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnNextStateEnter

type OnNextStateEnter func(previousState string, currentState string, input string)

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)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL