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); }
public NormalGen(double m, double d) { this.m = m; this.d = d; this.uGen = new UniformGen(0, 1); }
public ExponentialGen(double m) { this.m = m; this.uGen = new UniformGen(0, 1); }
public RayleighGen(double d) { this.d = d; this.uGen = new UniformGen(0, 1); }
public GammaGen(double k, double d) { this.k = k; this.d = d; this.uGen = new UniformGen(0, 1); }