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

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

        internal Status(Simulator simulation)
        {
            _sim = simulation;

            // do other initialization
        }
예제 #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
        }
예제 #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
        }