state

package
v0.0.0-...-b57eb89 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Initial State Identifier
	INITIAL = "INITIAL"
	// Final State Identifier
	FINAL = "FINAL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State interface {
	GetIdentifier() interface{}
	IsInitial() bool
	IsFinal() bool
	Equal(s State) bool
}

State interface

func NewFinalState

func NewFinalState() State

NewFinalState() Create a new State with FINAL Identifier

func NewInitialState

func NewInitialState() State

NewInitialState() Create a new State with INITIAL Identifier

func NewState

func NewState(v interface{}) State

NewState() Create a new State with initial identifier

Jump to

Keyboard shortcuts

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