#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
{
///
/// Describe the timeout / transition relationship for a state class of the generic TimeoutState.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class TimeoutDescription : EventDescriptionAttribute
{
#region Construction
///
/// Describe the timeout-event / transition relationship for a state class.
///
/// A descriptive text for the condition.
/// Transition that is performed.
public TimeoutDescription(string conditionText, object transitionType)
: base(GenericEventType.Timeout, conditionText, transitionType)
{
}
///
/// Describe a conditionless timeout-event / transition relationship for a state class.
///
/// Transition that is performed.
public TimeoutDescription( object transitionType)
: this("", transitionType)
{
}
#endregion
}
}