Validates state-machine diagrams: initial/final states, reachability, and guards/triggers on transitions (read from ConnectionLine.GuardCondition/TriggerEvent, falling back to Label1/Label2 for older diagrams).

Members

MemberKindDescription
List<StateMachineIssue> IssuesPropertyGets or sets the issues.
bool Validate(IReadOnlyList<SkiaComponent> components, IReadOnlyList<IConnectionLine> lines)MethodRuns all checks. Returns true when no errors were found (warnings are allowed).
static string? GetGuard(IConnectionLine line)MethodGets the guard condition for a transition, falling back to Label1 for legacy diagrams.
static string? GetTrigger(IConnectionLine line)MethodGets the trigger event for a transition, falling back to Label2 for legacy diagrams.
static bool SetTransition(IConnectionLine line, string trigger, string guard, string action)MethodSets guard/action/trigger fields on a concrete connection line.

Related