Beispiel #1
0
 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
 }
Beispiel #2
0
        // include other properties here     

        internal Status(Simulator simulation)
        {
            _sim = simulation;
           
            // do other initialization
        }
Beispiel #3
0
        // include other properties here

        internal Status(Simulator simulation)
        {
            _sim = simulation;

            // do other initialization
        }
Beispiel #4
0
        // 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
        }
Beispiel #5
0
        // 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
        }