Example #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ChannelConfiguration" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 /// <param name="channelConfigurationResponseEventHandler">The channel configuration response event handler.</param>
 /// <param name="getActualNodeId">The get actual node identifier.</param>
 public ChannelConfiguration(ILogger logger, IWriteBasicCan writeBasicCan, IChannelConfigurationResponseEventHandler channelConfigurationResponseEventHandler, IGetActualNodeId getActualNodeId)
 {
     this.Logger        = logger;
     this.WriteBasicCan = writeBasicCan;
     this.ChannelConfigurationResponseEventHandler = channelConfigurationResponseEventHandler;
     this.GetActualNodeId = getActualNodeId;
     this.ChannelConfigurationResponseEventHandler.EventIsReached += this.ChannelConfigurationResponseEventHandler_EventIsReached;
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Text" /> class.
        /// </summary>
        /// <param name="writeBasicCan">The write basic can.</param>
        /// <param name="logger">The logger.</param>
        /// <param name="textResponseEventHandler">The text response event handler.</param>
        /// <param name="getActualNodeId">The get actual node identifier.</param>
        /// <param name="textForDisplayEventHandler">The text for display event handler.</param>
        public Text(IWriteBasicCan writeBasicCan, ILogger logger, ITextResponseEventHandler textResponseEventHandler, IGetActualNodeId getActualNodeId, ITextForDisplayEventHandler textForDisplayEventHandler)
        {
            this.WriteBasicCan              = writeBasicCan;
            this.Logger                     = logger;
            this.TextResponseEventHandler   = textResponseEventHandler;
            this.GetActualNodeId            = getActualNodeId;
            this.TextForDisplayEventHandler = textForDisplayEventHandler;

            this.TextFromCpio = new List <TextStorage>(new TextStorage[8]);

            this.TextResponseEventHandler.EventIsReached += this.TextResponseEventHandler_EventIsReached;
        }
 /// <summary>
 ///     Initializes a new instance of the <see cref="SetActiveSensorToDetect" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 /// <param name="getActualNodeId">The get actual node identifier.</param>
 public SetActiveSensorToDetect(ILogger logger, IWriteBasicCan writeBasicCan, IGetActualNodeId getActualNodeId)
 {
     this.Logger          = logger;
     this.WriteBasicCan   = writeBasicCan;
     this.GetActualNodeId = getActualNodeId;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResetFlipFlop"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 /// <param name="actualNodeId">The actual node identifier.</param>
 public ResetFlipFlop(ILogger logger, IWriteBasicCan writeBasicCan, IGetActualNodeId actualNodeId)
 {
     this.Logger          = logger;
     this.WriteBasicCan   = writeBasicCan;
     this.GetActualNodeId = actualNodeId;
 }
Example #5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="SetCanIdOnDevice" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 public SetCanIdOnDevice(ILogger logger, IWriteBasicCan writeBasicCan)
 {
     this.Logger        = logger;
     this.WriteBasicCan = writeBasicCan;
 }
Example #6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Stimulate" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 public Stimulate(ILogger logger, IWriteBasicCan writeBasicCan)
 {
     this.Logger        = logger;
     this.WriteBasicCan = writeBasicCan;
 }
Example #7
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="ActivateDebugMode" /> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="writeBasicCan">The write basic can.</param>
        public ActivateDebugMode(ILogger logger, IWriteBasicCan writeBasicCan)
        {
            this.Logger = logger;

            this.WriteBasicCan = writeBasicCan;
        }
Example #8
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AnalogCan" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="getActualNodeId">The get actual node identifier.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 public AnalogCan(ILogger logger, IGetActualNodeId getActualNodeId, IWriteBasicCan writeBasicCan)
 {
     this.Logger          = logger;
     this.GetActualNodeId = getActualNodeId;
     this.WriteBasicCan   = writeBasicCan;
 }
Example #9
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ChannelConfiguration" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="writeBasicCan">The write basic can.</param>
 /// <param name="channelConfigurationResponseEventHandler">The channel configuration response event handler.</param>
 /// <param name="getActualNodeId">The get actual node identifier.</param>
 public SimPulseActivate(ILogger logger, IWriteBasicCan writeBasicCan, IChannelConfigurationResponseEventHandler channelConfigurationResponseEventHandler, IGetActualNodeId getActualNodeId)
 {
     this.Logger          = logger;
     this.WriteBasicCan   = writeBasicCan;
     this.GetActualNodeId = getActualNodeId;
 }