-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
42 lines (28 loc) · 1.12 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package sc
import v1 "github.com/tmc/sc/gen/statecharts/v1"
// StateType describes the type of a state.
type StateType = v1.StateType
// MachineState encodes the high-level state of a statechart.
type MachineState = v1.MachineState
// Statechart defines a Statechart.
type Statechart = v1.Statechart
// State defines a state in a Statechart.
type State = v1.State
// Transition defines a transition in a Statechart.
type Transition = v1.Transition
// Event defines an event in a Statechart.
type Event = v1.Event
// Guard defines a guard in a Statechart.
type Guard = v1.Guard
// Action defines an action in a Statechart.
type Action = v1.Action
// StateRef defines a reference to a state in a Statechart.
type StateRef = v1.StateRef
// Configuration defines a configuration in a Statechart.
type Configuration = v1.Configuration
// Machine describes an instance of a Statechart.
type Machine = v1.Machine
// EventHistoryEntry describes an event that has occurred.
type EventHistoryEntry = v1.EventHistoryEntry
// TransitionHistoryEntry describes a transition that has been taken.
type TransitionHistoryEntry = v1.TransitionHistoryEntry