Beispiel #1
0
        /// <summary>
        /// Конструктор объекта
        /// </summary>
        /// <param name="typ">Тип канала</param>
        /// <param name="name">Имя канала</param>
        protected LinkBase(ModuleTyp typ, String name) : base(typ, name)
        {
            _server = false;
            _state  = LinkState.Closed;

            Opened       = null;
            Closed       = null;
            Error        = null;
            DataReceived = null;
        }
Beispiel #2
0
        /// <summary>
        /// Конструктор объекта
        /// </summary>
        /// <param name="typ">Тип канала</param>
        /// <param name="name">Имя канала</param>
        protected LinkBase(ModuleTyp typ, String name)
            : base(typ, name)
        {
            _server = false;
            _state  = LinkState.Closed;

            Opened  = null;
            Closed  = null;
            Error   = null;
            DataReceived = null;
        }
Beispiel #3
0
        public ProtoBase(ModuleTyp typ, String title, int index) : base(typ, title, index)
        {
            _state        = EProtoState.Closed;
            _task         = EProtoTask.None;
            _result       = EProtoResult.Unknow;
            _executeState = CoreExecuteState.Active;

            OnOpen   = null;
            OnClose  = null;
            OnBreak  = null;
            OnError  = null;
            OnListen = null;

            ModIndex = ++_sharedId;
        }
Beispiel #4
0
        private EProtoTask _task; // Текущая задача протокола

        #endregion Fields

        #region Constructors

        public ProtoBase(ModuleTyp typ, String title, int index)
            : base(typ, title, index)
        {
            _state        = EProtoState.Closed;
            _task         = EProtoTask.None;
            _result       = EProtoResult.Unknow;
            _executeState = CoreExecuteState.Active;

            OnOpen   = null;
            OnClose  = null;
            OnBreak  = null;
            OnError  = null;
            OnListen = null;

            ModIndex = ++_sharedId;
        }