#region --------------- Copyright Dresser Wayne Pignone ------------- /* * $Log: /Wrk/WayneLibraries/Wrk/StateEngine/TransitionInfo.cs $ * * 2 08-03-10 16:16 Mattias.larsson * Fixed summaries. * * 1 08-03-10 15:00 Mattias.larsson * Created. */ #endregion namespace Wayne.Lib.StateEngine { /// /// A class wrapping information about a transition. /// public class TransitionInfo { #region Fields private string fromStateFactoryName; private string transitionName; private string toStateFactoryName; private HistoryType historyType; #endregion #region Construction /// /// Constructor. /// /// /// /// /// public TransitionInfo(string fromStateFactoryName, string transitionName, string toStateFactoryName, HistoryType historyType) { this.fromStateFactoryName = fromStateFactoryName; this.transitionName = transitionName; this.toStateFactoryName = toStateFactoryName; this.historyType = historyType; } #endregion #region Properties /// /// The factory name of the "From" state. /// public string FromStateFactoryName { get { return fromStateFactoryName; } } /// /// The name of the transition. /// public string TransitionName { get { return transitionName; } } /// /// The factory name of the "To" state. /// public string ToStateFactoryName { get { return toStateFactoryName; } } /// /// The History Type. /// public HistoryType HistoryType { get { return historyType; } } #endregion #region Methods /// /// To string. /// /// public override string ToString() { return string.Format("{0} >>{1}>> {2}", fromStateFactoryName, transitionName, toStateFactoryName); } #endregion } }