12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- /*
- * $Log: /Wrk/WayneLibraries/Wrk/StateEngine/Description/TimeoutDescription.cs $
- *
- * 1 08-02-26 14:12 Mattias.larsson
- * Created.
- */
- #endregion
- using System;
- using Wayne.Lib.StateEngine.Generic;
- namespace Wayne.Lib.StateEngine
- {
- /// <summary>
- /// Describe the timeout / transition relationship for a state class of the generic TimeoutState.
- /// </summary>
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
- public class TimeoutDescription : EventDescriptionAttribute
- {
- #region Construction
- /// <summary>
- /// Describe the timeout-event / transition relationship for a state class.
- /// </summary>
- /// <param name="conditionText">A descriptive text for the condition.</param>
- /// <param name="transitionType">Transition that is performed.</param>
- public TimeoutDescription(string conditionText, object transitionType)
- : base(GenericEventType.Timeout, conditionText, transitionType)
- {
- }
- /// <summary>
- /// Describe a conditionless timeout-event / transition relationship for a state class.
- /// </summary>
- /// <param name="transitionType">Transition that is performed.</param>
- public TimeoutDescription( object transitionType)
- : this("", transitionType)
- {
- }
- #endregion
- }
- }
|