예제 #1
0
        public static dynamic getProcessors()
        {
            dynamic val = null;

            switch (rnd.Next(0, nTypesOfProcessors))
            {
            case 0:
                val = new PointF((float)(Math.PI * rnd.NextDouble()), (float)(Math.PI * rnd.NextDouble()));
                break;

            case 1:
                val = new alfaProcessor(rnd.Next());
                break;

            case 2:
                val = new gammaProcessor(new PointF(
                                             (float)(Math.PI * rnd.NextDouble()),
                                             (float)(Math.PI * rnd.NextDouble())
                                             ));
                break;

            case 3:
                val = new betaProcessor(rnd.Next());
                break;

            case 4:
                val = rnd.Next();
                break;
            }
            return(val);
        }
예제 #2
0
 public static dynamic getProcessors()
 {
     dynamic val = null;
     switch(rnd.Next(0, nTypesOfProcessors))
     {
         case 0:
             val = new PointF((float)(Math.PI*rnd.NextDouble()), (float)(Math.PI*rnd.NextDouble()));
             break;
         case 1:
             val = new alfaProcessor(rnd.Next());
             break;
         case 2:
             val = new gammaProcessor(new PointF(
                         (float)(Math.PI * rnd.NextDouble()),
                         (float)(Math.PI * rnd.NextDouble())
                 ));
             break;
         case 3:
             val = new betaProcessor(rnd.Next());
             break;
         case 4:
             val = rnd.Next();
             break;
     }
     return val;
 }
예제 #3
0
 public betaProcessor(betaProcessor key)
 {
     this.field = key.field;
 }
예제 #4
0
 public betaProcessor(betaProcessor key)
 {
     this.field = key.field;
 }