Exemplo n.º 1
0
 public InternalRegistrationInfo(TemperatureThresholdRegistrationInfo temperatureThresholdRegistrationInfo)
 {
     Threshold       = temperatureThresholdRegistrationInfo.Threshold;
     WaiverMargin    = temperatureThresholdRegistrationInfo.WaiverMargin;
     ChangeDirection = temperatureThresholdRegistrationInfo.ChangeDirection;
     IsFluctuatingAroundThreshold        = false;
     TemperatureThresholedReachedHandler = temperatureThresholdRegistrationInfo.TemperatureThresholedReachedHandler;
 }
Exemplo n.º 2
0
        public void RegisrterForTemperatureChange(OvenRegistrationInfo ovenRegistrationInfo)
        {
            TemperatureThresholdRegistrationInfo temperatureThresholdRegistrationInfo = new TemperatureThresholdRegistrationInfo();

            temperatureThresholdRegistrationInfo.Threshold       = ovenRegistrationInfo.Threshold;
            temperatureThresholdRegistrationInfo.WaiverMargin    = ovenRegistrationInfo.WaiverMargin;
            temperatureThresholdRegistrationInfo.ChangeDirection = ovenRegistrationInfo.ChangeDirection;
            temperatureThresholdRegistrationInfo.TemperatureThresholedReachedHandler = Handler;
            _thermoMeter.RequestRegistration(temperatureThresholdRegistrationInfo);
        }
Exemplo n.º 3
0
        public void RequestRegistration(TemperatureThresholdRegistrationInfo temperatureTresholdRegistrationInfo)
        {
            InternalRegistrationInfo registrationInfo = new InternalRegistrationInfo(temperatureTresholdRegistrationInfo);

            _registerationRequests.Add(registrationInfo);
        }