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 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 }; }
public BaseModule(IMessageIOProvider messageProvider) { this.messageProvider = messageProvider; }
public WebsocketHandler(IMessageIOProvider message) { this.message = message; }
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 }; }