def test3(self):
     #multiple sensors
     numClusters = 20
     maxNodesPerCluster = 25
     numSteps = 5
     numReqRange = range(1,5)
     numValReqRange = range(1,5)
     seed = 5
     testIndex = 3
     minSensorsPerNode = 2
     maxSensorsPerNode = 3
     delays = [random.uniform(0.01, 0.05) for i in range(5)]
     sensor.setDelayRange(delays)
     self.complexTest(testIndex, seed, numClusters, maxNodesPerCluster, 
                 numSteps, numReqRange, numValReqRange, minSensorsPerNode, maxSensorsPerNode)
 def test4(self):
     #multiple sensors
     numClusters = 60
     maxNodesPerCluster = 5
     numSteps = 5
     numReqRange = range(5,10)
     numValReqRange = range(3,5)
     seed = 7
     testIndex = 4
     minSensorsPerNode = 1
     maxSensorsPerNode = 5
     delays = [random.uniform(0.01, 0.05) for i in range(5)]
     sensor.setDelayRange(delays)
     self.complexTest(testIndex, seed, numClusters, maxNodesPerCluster, 
                 numSteps, numReqRange, numValReqRange, minSensorsPerNode, maxSensorsPerNode, 1)
 def test1(self):
     
     numClusters = 10
     maxNodesPerCluster = 10
     numSteps = 3
     numReqRange = range(1,5)
     numValReqRange = range(1,3)
     seed = 1
     testIndex = 1
     dr = random.Random()
     dr.seed(seed)
     delays = [random.uniform(0,0.05) for i in range(100)]
     sensor.setDelayRange(delays)
     self.simpleTest(testIndex, seed, numClusters, maxNodesPerCluster, 
                 numSteps, numReqRange, numValReqRange)