static void Main(string[] args) { var scenario = new Scenario(); // preparing the scenario var sim = new Simulator(scenario, seed: 0); // construct the simulator sim.Run(10000); // run simulator // sim.Status... // read analytics from status class }
// include other properties here internal Status(Simulator simulation) { _sim = simulation; // do other initialization }
// include dynamic entities, i.e., loads, involving in the event // internal Load_1 load_1 { get; private set; } // internal Load_2 load_1 { get; private set; } // ... internal MyEvent1(Simulator sim) : base(sim) { // also include loads in the constructor }