using System; using System.Collections.Generic; namespace TBF.BenchControl { public class Transition { public Event Evnt; public State NextState; /// if not null, nextState reference is used public string NextStateLabel; /// otherwise nextStateLabel is used /// /// Constructor using a next state reference /// public Transition(Event evnt, State nextState) { this.Evnt = evnt; this.NextState = nextState; this.NextStateLabel = null; } /// /// Constructor using a next state label /// public Transition(Event evnt, string nextStateLabel) { this.Evnt = evnt; this.NextState = null; this.NextStateLabel = nextStateLabel; } } }