public ThermometerModule(
     TemperatureState temperatureState,
     MachineModulesSynchronizers synchronizers,
     IMessageIOProvider message) : base(message)
 {
     this.temperatureState        = temperatureState;
     this.reachMaxTempEvent       = synchronizers.reachMaxTempEvent;
     this.reachMinTempEvent       = synchronizers.reachMinTempEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     thermometerThread            = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
Esempio n. 2
0
 public OvenModule(
     HeatingModule heatingModule,
     ThermometerModule thermometerModule,
     TemperatureState temperatureState,
     IMessageIOProvider message,
     MachineModulesSynchronizers synchronizers) : base(message)
 {
     this.temperatureState        = temperatureState;
     this.heatingModule           = heatingModule;
     this.thermometerModule       = thermometerModule;
     this.ovenIsReadyEvent        = synchronizers.ovenIsReadyEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     ovenThread = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
 public BiscuitCounterModule(MachineModulesSynchronizers synchronizers, BiscuitCounterState biscuitCounterState, IMessageIOProvider message) : base(message)
 {
     this.newBiscuitOnTheLine     = synchronizers.newBiscuitOnTheLineEvent;
     this.noBiscuitsOnTheLine     = synchronizers.noBiscuitsOnTheLineEvent;
     this.rotationsCountdown      = synchronizers.rotationsCountdownEvent;
     this.lineIsEmptyEvent        = synchronizers.lineIsEmptyEvent;
     this.biscuitCounterState     = biscuitCounterState;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     biscuitCounterThread         = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }
Esempio n. 4
0
 public BaseModule(IMessageIOProvider messageProvider)
 {
     this.messageProvider = messageProvider;
 }
Esempio n. 5
0
 public WebsocketHandler(IMessageIOProvider message)
 {
     this.message = message;
 }
Esempio n. 6
0
 public MotorModule(MachineModulesSynchronizers synchronizers, BiscuitCounterState biscuitCounterState, IMessageIOProvider message) : base(message)
 {
     this.ovenIsReadyEvent        = synchronizers.ovenIsReadyEvent;
     this.rotationsCountdown      = synchronizers.rotationsCountdownEvent;
     this.biscuitCounterState     = biscuitCounterState;
     this.cancellationTokenSource = synchronizers.cancellationTokenSource;
     this.motorThread             = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
     this.motorThread = new Thread(ThreadStartDelagate)
     {
         Name = Name
     };
 }