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