Пример #1
0
        /// <summary>
        /// Builds up the set of commands that are supported by this device
        /// </summary>
        protected override void InitCommandProcessors()
        {
            var pingDeviceProcessor   = new PingDeviceProcessor(this);
            var startCommandProcessor = new StartCommandProcessor(this);
            var stopCommandProcessor  = new StopCommandProcessor(this);
            var diagnosticTelemetryCommandProcessor = new DiagnosticTelemetryCommandProcessor(this);
            var changeSetPointTempCommandProcessor  = new ChangeSetPointTempCommandProcessor(this);
            var changeDeviceStateCommmandProcessor  = new ChangeDeviceStateCommandProcessor(this);
            var sendWaypointsCommandProcessor       = new SendWaypointsCommandProcessor(this);
            var emergencyStopCommandProcessor       = new EmergencyStopProcessor(this);
            var setLightsCommandProcessor           = new SetLightsProcessor(this);
            var setCameraCommandProcessor           = new SetCameraProcessor(this);
            var sendBuzzerCommandProcessor          = new SendBuzzerProcessor(this);
            var demoRunCommandProcessor             = new DemoRunProcessor(this);

            pingDeviceProcessor.NextCommandProcessor   = startCommandProcessor;
            startCommandProcessor.NextCommandProcessor = stopCommandProcessor;
            stopCommandProcessor.NextCommandProcessor  = diagnosticTelemetryCommandProcessor;
            diagnosticTelemetryCommandProcessor.NextCommandProcessor = changeSetPointTempCommandProcessor;
            changeSetPointTempCommandProcessor.NextCommandProcessor  = sendWaypointsCommandProcessor;
            sendWaypointsCommandProcessor.NextCommandProcessor       = emergencyStopCommandProcessor;
            emergencyStopCommandProcessor.NextCommandProcessor       = setLightsCommandProcessor;
            setLightsCommandProcessor.NextCommandProcessor           = sendBuzzerCommandProcessor;
            sendBuzzerCommandProcessor.NextCommandProcessor          = demoRunCommandProcessor;
            demoRunCommandProcessor.NextCommandProcessor             = changeDeviceStateCommmandProcessor;
            changeDeviceStateCommmandProcessor.NextCommandProcessor  = setCameraCommandProcessor;
            RootCommandProcessor = pingDeviceProcessor;
        }
Пример #2
0
        /// <summary>
        /// Builds up the set of commands that are supported by this device
        /// </summary>
        protected override void InitCommandProcessors()
        {
            var pingDeviceProcessor   = new PingDeviceProcessor(this);
            var startCommandProcessor = new StartCommandProcessor(this);
            var stopCommandProcessor  = new StopCommandProcessor(this);

            pingDeviceProcessor.NextCommandProcessor   = startCommandProcessor;
            startCommandProcessor.NextCommandProcessor = stopCommandProcessor;

            RootCommandProcessor = pingDeviceProcessor;
        }
        /// <summary>
        /// Builds up the set of commands that are supported by this device
        /// </summary>
        protected override void InitCommandProcessors()
        {
            var pingDeviceProcessor = new PingDeviceProcessor(this);
            var startCommandProcessor = new StartCommandProcessor(this);
            var stopCommandProcessor = new StopCommandProcessor(this);

            pingDeviceProcessor.NextCommandProcessor = startCommandProcessor;
            startCommandProcessor.NextCommandProcessor = stopCommandProcessor;

            RootCommandProcessor = pingDeviceProcessor;
        }
        /// <summary>
        /// Builds up the set of commands that are supported by this device
        /// </summary>
        protected override void InitCommandProcessors()
        {
            var pingDeviceProcessor   = new PingDeviceProcessor(this);
            var startCommandProcessor = new CGMStartCommandProcessor(this);
            var stopCommandProcessor  = new CGMStopCommandProcessor(this);
            var diagnosticTelemetryCommandProcessor = new CGMDiagnosticTelemetryCommandProcessor(this);
            var changeSetPointTempCommandProcessor  = new CGMChangeSetPointTempCommandProcessor(this);
            var changeDeviceStateCommmandProcessor  = new CGMChangeDeviceStateCommandProcessor(this);

            pingDeviceProcessor.NextCommandProcessor   = startCommandProcessor;
            startCommandProcessor.NextCommandProcessor = stopCommandProcessor;
            stopCommandProcessor.NextCommandProcessor  = diagnosticTelemetryCommandProcessor;
            diagnosticTelemetryCommandProcessor.NextCommandProcessor = changeSetPointTempCommandProcessor;
            changeSetPointTempCommandProcessor.NextCommandProcessor  = changeDeviceStateCommmandProcessor;

            RootCommandProcessor = pingDeviceProcessor;
        }
        /// <summary>
        /// Builds up a set of commands supported by this device
        /// </summary>
        protected virtual void InitCommandProcessors()
        {
            var pingDeviceProcessor = new PingDeviceProcessor(this);

            RootCommandProcessor = pingDeviceProcessor;
        }
        /// <summary>
        /// Builds up a set of commands supported by this device
        /// </summary>
        protected virtual void InitCommandProcessors()
        {
            var pingDeviceProcessor = new PingDeviceProcessor(this);

            RootCommandProcessor = pingDeviceProcessor;
        }
Пример #7
0
 public PingDeviceProcessorTests()
 {
     _deviceBase          = new Mock <IDevice>();
     _pingDeviceProcessor = new PingDeviceProcessor(_deviceBase.Object);
 }