@ue-too/being / index / MachineGraphEdge
型別別名: MachineGraphEdge
MachineGraphEdge =
object
定義於: introspect.ts:29
A directed edge in an extracted machine graph.
備註
guard is set when the edge comes from an eventGuards mapping; it holds the guard's key in the state's guard registry. Edges with to === from are self-loops (a reaction without a defaultTargetState).
preconditions is set when the source state declares eventPreconditions for the edge's event: the named guards that must all pass before the event is handled. All edges for that event carry the same list, since a failed precondition vetoes the event as a whole. The key is absent for events without declared preconditions.
屬性
event
event:
string
定義於: introspect.ts:32
from
from:
string
定義於: introspect.ts:30
guard?
optionalguard:string
定義於: introspect.ts:33
preconditions?
optionalpreconditions:string[]
定義於: introspect.ts:34
to
to:
string
定義於: introspect.ts:31