Beispiel #1
0
        public SimPanel(Simulator sim)
            : base(Gtk.WindowType.Toplevel)
        {
            this.simulator = sim;
            this.clock = sim.getClock();

            this.Build();
            this.period = 1000;
            this.refresher = new Timer(new TimerCallback(Refresh), null, 0, this.period);
        }
Beispiel #2
0
        public Startup(Simulator sim)
            : base(Gtk.WindowType.Toplevel)
        {
            this.Build ();

            this.reactor = sim.getReactor();
            this.turbine = sim.getTurbine();
            this.rods = sim.getRods();

            this.spinbutton1.Value = this.reactor.Burnup;
            this.spinbutton2.Value = this.reactor.Boron;
            this.spinbutton8.Value = this.reactor.Flux;
            this.spinbutton6.Value = this.turbine.Power;
        }
Beispiel #3
0
 public Simulator NewSimulator(string name, string description)
 {
     Simulator sim = new Simulator(this.servInterface, name, description);
     this.simulators.Add(sim);
     return sim;
 }
Beispiel #4
0
 public SimEntry(Simulator sim)
 {
     this.simId = sim.simId;
     this.name = sim.name;
     this.description = sim.description;
     this.owner = sim.owner;
 }