/// <summary>Constructor</summary> /// <param name="parent">The parent state</param> /// <param name="msgFactory">Message Factory</param> /// <param name="idConverter">The integer id to string converter</param> /// <param name="id">Unique state id converter</param> /// <param name="wrappedObject">The generic object that the states represent</param> public SpStateBase(ISpState parent, ISpMsgFactory msgFactory, ISpIdConverter idConverter, ISpToInt id, T wrappedObject) { WrapErr.ChkParam(msgFactory, "msgFactory", 9999); WrapErr.ChkParam(wrappedObject, "wrappedObject", 50200); this.msgFactory = msgFactory; this.idConverter = idConverter; this.InitStateIds(parent, id.ToInt()); this.wrappedObject = wrappedObject; }
/// <summary>Constructor for first level state</summary> /// <param name="msgFactory">Message Factory</param> /// <param name="idConverter">The integer id to string converter</param> /// <param name="id">Unique state id</param> /// <param name="wrappedObject">The generic object that the states represent</param> public SpStateBase(ISpMsgFactory msgFactory, ISpIdConverter idConverter, ISpToInt id, T wrappedObject) : this(null, msgFactory, idConverter, id, wrappedObject) { }
/// <summary> /// Constructor for first level state /// </summary> /// <param name="msgFactory">Message Factory</param> /// <param name="id">Unique state id</param> /// <param name="wrappedObject">The generic object that the states represent</param> public SpState(ISpMsgFactory msgFactory, TState id, TMachine wrappedObject) : base(msgFactory, id, wrappedObject) { }
/// <summary> /// Constructor /// </summary> /// <param name="parent">The parent state</param> /// <param name="msgFactory">Message Factory</param> /// <param name="id">Unique state id</param> /// <param name="wrappedObject">The generic object that the states represent</param> public SpState(ISpState <TMsgId> parent, ISpMsgFactory msgFactory, TState id, TMachine wrappedObject) : base(parent, msgFactory, id, wrappedObject) { }
/// <summary> /// Constructor /// </summary> /// <param name="parent">The parent state</param> /// <param name="msgFactory">Message Factory</param> /// <param name="idConverter">The integer id to string converter</param> /// <param name="id">Unique state id</param> /// <param name="wrappedObject">The generic object that the states represent</param> public SpSuperState(ISpState parent, ISpMsgFactory msgFactory, ISpIdConverter idConverter, ISpToInt id, T wrappedObject) : base(parent, msgFactory, idConverter, id, wrappedObject) { }