Beispiel #1
0
 protected virtual void InitializeSystem(IInputAirport entrada)
 {
     ProcessTime         = new double[CountTracks];
     TimeDepartuteTime   = new double[CountTracks];
     FixedTime           = new double[CountTracks];
     DepartureTime       = new double[CountTracks];
     TimeEmptyTrack      = new double[CountTracks];
     Airplanes           = new List <IAirplaneLoad>();
     Tracks              = new IAirplaneLoad[CountTracks];
     QueueArrival        = new Queue <IAirplaneLoad>();
     aleatory            = new Random();
     exponentialVariable = new ExponentialVariable();
     poissonVariable     = new PoissonVariable();
     normalVariable      = new NormalVariable();
     SystemTime          = 0;
     InitializeArray(ProcessTime, infinity);
     InitializeArray(FixedTime, infinity);
     InitializeArray(DepartureTime, infinity);
     InitializeArray(TimeEmptyTrack, 0);
     InitializeArray(TimeDepartuteTime, 0);
     StopTime           = entrada.Minutes;
     QuantityPassengers = 0;
     CountLoads         = 0;
     ArrivalTime        = GenerateTime();
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            var aleatory = new ExponentialVariable()
            {
                L = 0.5
            };

            while (true)
            {
                Console.WriteLine(aleatory.GenerateValue());
                System.Threading.Thread.Sleep(1000);
            }
        }