~comnets/openwns-systemtest-wimac/systemtest-wimac--main--1.0

« back to all changes in this revision

Viewing changes to PyConfig/experiment2/campaignConfiguration.py

  • Committer: Benedikt Wolz
  • Date: 2010-10-15 10:18:50 UTC
  • Revision ID: bmw@comnets.rwth-aachen.de-20101015101850-zd3k5cfrnb8x0sq4
tutorial: speedup & beautification

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
params = Set()
43
43
#params.setDefault()
44
44
 
45
 
#for params.subStrategy in ["ProportionalFair", "ExhaustiveRoundRobin", "DSADrivenRR", "RoundRobin"]:
46
 
#for params.dsa in ["Fixed", "Random", "LinearFFirst"]:
47
 
 
48
45
# begin example "wimac.tutorial.experiment2.campaignConfiguration.offeredTraffic"
49
46
for params.scheduler in ["RoundRobin", "PropFair", "ExhaustiveRR", "Fixed"]:
50
47
    for rate in xrange(0,9):
51
 
        params.offeredTraffic = (0.1 + rate * 1.25) * 1e6
52
 
        params.write()
 
48
        if rate != 1:
 
49
            params.offeredTraffic = rate * 0.31 * 1e6
 
50
            params.write()
53
51
# end example
 
 
b'\\ No newline at end of file'