public BiscuitMakerModule(MachineModulesSynchronizers synchronizers, BiscuitCounterState biscuitCounterState, IMessageIOProvider message) : base(message) { this.rotationsCountdown = synchronizers.rotationsCountdownEvent; this.newBiscuitOnTheLine = synchronizers.newBiscuitOnTheLineEvent; this.lineIsEmptyEvent = synchronizers.lineIsEmptyEvent; this.cancellationTokenSource = synchronizers.cancellationTokenSource; biscuitMakerThread = new Thread(ThreadStartDelagate) { Name = Name }; }
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 }; }
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 }; }
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 }; }