123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- #endregion
- using System;
- namespace Wayne.Lib.StateEngine
- {
-
-
-
- public class TransitionInfo
- {
- #region Fields
- private string fromStateFactoryName;
- private string transitionName;
- private string toStateFactoryName;
- private HistoryType historyType;
- #endregion
- #region Construction
-
-
-
-
-
-
-
- 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
-
-
-
- public string FromStateFactoryName
- {
- get { return fromStateFactoryName; }
- }
-
-
-
- public string TransitionName
- {
- get { return transitionName; }
- }
-
-
-
- public string ToStateFactoryName
- {
- get { return toStateFactoryName; }
- }
-
-
-
- public HistoryType HistoryType
- {
- get { return historyType; }
- }
- #endregion
- #region Methods
-
-
-
-
- public override string ToString()
- {
- return string.Format("{0} >>{1}>> {2}", fromStateFactoryName, transitionName, toStateFactoryName);
- }
- #endregion
- }
- }
|