Exemple #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);
        }
Exemple #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;
 }
 public alfaProcessor(alfaProcessor key)
 {
     this.field = key.Field;
 }
 public alfaProcessor(alfaProcessor key)
 {
     this.field = key.Field;
 }