33 lines
886 B
C#
33 lines
886 B
C#
|
|
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
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Constructor using a next state reference
|
|||
|
|
/// </summary>
|
|||
|
|
public Transition(Event evnt, State nextState)
|
|||
|
|
{
|
|||
|
|
this.Evnt = evnt;
|
|||
|
|
this.NextState = nextState;
|
|||
|
|
this.NextStateLabel = null;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Constructor using a next state label
|
|||
|
|
/// </summary>
|
|||
|
|
public Transition(Event evnt, string nextStateLabel)
|
|||
|
|
{
|
|||
|
|
this.Evnt = evnt;
|
|||
|
|
this.NextState = null;
|
|||
|
|
this.NextStateLabel = nextStateLabel;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|