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 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 betaProcessor(betaProcessor key) { this.field = key.field; }