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

« back to all changes in this revision

Viewing changes to configJEN.py

  • Committer: Sebastian Max
  • Date: 2009-11-06 10:53:25 UTC
  • Revision ID: smx@comnets.rwth-aachen.de-20091106105325-l948o4hqzsomphfa
Changes due to backoff bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
import wifimac.support
39
39
import wifimac.evaluation.default
40
40
import wifimac.evaluation.ip
41
 
import wifimac.convergence.PhyMode  # jen: added
 
41
import wifimac.convergence.PhyMode
42
42
from wifimac.lowerMAC.RateAdaptation import Opportunistic, Constant
43
43
 
44
44
import rise.Scenario
200
200
apIDs.append(ap.id)
201
201
apAdrs.extend(ap.dll.addresses)
202
202
rang.dll.addAP(ap)
203
 
print "Created AP at (", radius, ", ", radius, ", 0) with id ", ap.id, " and addresses ", ap.dll.addresses
 
203
print "Created AP at (0,0,0) with id ", ap.id, " and addresses ", ap.dll.addresses
204
204
 
205
205
# All STAs have to have the same position to avoid successful reception on collisions
206
206
for s in xrange(numSTAs):
224
224
    # Add STA
225
225
    WNS.simulationModel.nodes.append(sta)
226
226
    staIDs.append(sta.id)
227
 
    print "Created STA at (", x, ", ", y, ", 0) with id ", sta.id
 
227
    print "Created STA at (", distance, ", 0, 0) with id ", sta.id
228
228
# End create nodes
229
229
##################
230
230