Documentation ¶
Overview ¶
Package transitioner defines the Transitioner interface, as well as its implementations in order to translate between internal O² state machine states and events, and the states and events of some other process state machine (such as the FairMQ Device state machine).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Direct ¶
type Direct struct {
DoTransition DoTransitionFunc
}
func NewDirectTransitioner ¶
func NewDirectTransitioner(transitionFunc DoTransitionFunc) *Direct
func (*Direct) FromDeviceState ¶
type DoTransitionFunc ¶
type FairMQ ¶
type FairMQ struct { DoTransition DoTransitionFunc // contains filtered or unexported fields }
func NewFairMQTransitioner ¶
func NewFairMQTransitioner(transitionFunc DoTransitionFunc) *FairMQ
func (*FairMQ) FromDeviceState ¶
type Transitioner ¶
type Transitioner interface { Commit(evt string, src string, dst string, args map[string]string) (finalState string, err error) FromDeviceState(state string) string }
func NewTransitioner ¶
func NewTransitioner(cm controlmode.ControlMode, transitionFunc DoTransitionFunc) Transitioner
Click to show internal directories.
Click to hide internal directories.