예제 #1
0
 public void generateRequestsTest()
 {
     Request[] actual;
     UniformGen gen1=new UniformGen(1,10);
     UniformGen gen2=new UniformGen(1,10);
     UniformGen gen3=new UniformGen(1,10);
     ExponentialGen timeGen = new ExponentialGen(30);
     Generator target = new Generator(timeGen, gen1, gen2, gen3);
     DateTime dt = new DateTime(2010,10,13,8,0,0);
     actual = target.generateRequests(dt);
     Assert.IsNotNull(actual);
     //Assert.AreEqual(expected, actual);
 }
예제 #2
0
 public NormalGen(double m, double d)
 {
     this.m = m;
     this.d = d;
     this.uGen = new UniformGen(0, 1);
 }
예제 #3
0
 public ExponentialGen(double m)
 {
     this.m = m;
     this.uGen = new UniformGen(0, 1);
 }
예제 #4
0
 public RayleighGen(double d)
 {
     this.d = d;
     this.uGen = new UniformGen(0, 1);
 }
예제 #5
0
 public GammaGen(double k, double d)
 {
     this.k = k;
     this.d = d;
     this.uGen = new UniformGen(0, 1);
 }