public FissionChamber(IReactorVessel vessel, IPressureController pc) { _pc = pc; _pc.NotifyTimerEvent += IncreasePressure; _pressureIncreaseRate = 0.03; // pressure increase rate = 3%/s (given) timerEventAdded = true; Vessel = vessel; }
public Form1() { InitializeComponent(); reactor = new PressureController(); reactor.NotifyTimerEvent += UpdatePressureIncrease; reactor.NotifyValveAction += UpdateValveActuation; Console.WriteLine("\nPress the \"Start Process\" button to start the application...\n"); }
public Valve(IPressureController pc) { _pc = pc; _pc.NotifyTimerEvent += Activate; }