Ejemplo n.º 1
0
        public void Work(double n)
        {
            nowTime = n;
            buzy    = true;
            DistributionClass ex = new DistributionClass();
            double            t1 = ex.exp(l);
            double            t2 = ex.exp(l);

            if (t1 > t2)
            {
                min = Math.Min(t1, t2);
                max = Math.Max(t1, t2);
            }

            workTime = Math.Round((ex.uniform(min, max)), 1);
            if (workTime < 0.1)
            {
                workTime += 0.2;
            }
            workTime += nowTime;
        }
Ejemplo n.º 2
0
        public void GetTime(int a, int b, double now)
        {
            DistributionClass ex = new DistributionClass();

            timearrive = Math.Round((ex.PPPD(a, b, now) + now), 1);
        }