Beispiel #1
0
 /// <summary>Has Add() to support cleaner initialization.</summary>
 /// <param name="stn"></param>
 /// <param name="entry"></param>
 /// <param name="exit"></param>
 /// <param name="transitions"></param>
 public void Add(S stn, SmFunc entry, SmFunc exit, Transitions <S, E> transitions) =>
 Add(new() { StateId = stn, EntryFunc = entry, ExitFunc = exit, Transitions = transitions });
Beispiel #2
0
 /// <summary>Has Add() to support cleaner initialization.</summary>
 /// <param name="evt"></param>
 /// <param name="nextState"></param>
 /// <param name="transFunc"></param>
 public void Add(E evt, S nextState, SmFunc transFunc) =>
 Add(new() { EventId = evt, NextState = nextState, TransitionFunc = transFunc });