mainAxle

package
v0.0.0-...-478090f Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAxleOkState

func NewAxleOkState() *axleOkState

func NewAxleStopState

func NewAxleStopState() *axleStopState

Types

type FSMState

type FSMState struct {
	// contains filtered or unexported fields
}

State父struct

func (*FSMState) CheckTransition

func (f *FSMState) CheckTransition()

状态转移检测

func (*FSMState) Enter

func (f *FSMState) Enter(endTime time.Time)

进入状态

func (*FSMState) Exit

func (f *FSMState) Exit()

退出状态

type IFSMState

type IFSMState interface {
	Enter(endTime time.Time)
	Exit()
	CheckTransition() bool
	V() int
}

接口

Jump to

Keyboard shortcuts

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