~comnets/openwns-scenarios/main

« back to all changes in this revision

Viewing changes to PyConfig/scenarios/ituM2135/creatorplacer.py

  • Committer: Maciej Muehleisen
  • Date: 2011-08-23 13:30:58 UTC
  • Revision ID: mue@mue-laptop-20110823133058-d2hu6pm0y3k34zx2
Added parameter to select transceiver types in channel model creator

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import scenarios.builders
29
29
import scenarios.ituM2135
 
30
import scenarios.channelmodel
30
31
 
31
32
class CreatorPlacerBuilderIndoorHotspot(scenarios.builders.CreatorPlacerBuilder):
32
33
 
33
 
    def __init__(self, bsCreator,  utCreator, numberOfNodes = 10):
 
34
    def __init__(self, bsCreator,  utCreator, numberOfNodes = 10, transceiverTypes = scenarios.channelmodel.defaultPairs):
34
35
      super(CreatorPlacerBuilderIndoorHotspot, self).__init__(bsCreator,  
35
36
                                                              scenarios.ituM2135.IndoorHotspotBSPlacer(), 
36
37
                                                              scenarios.ituM2135.IndoorHotspotAntennaCreator(),
37
38
                                                              utCreator,
38
39
                                                              scenarios.ituM2135.IndoorHotspotUEPlacer(numberOfNodes, minDistance=3), 
39
 
                                                              scenarios.ituM2135.IndoorHotspotChannelModelCreator())
 
40
                                                              scenarios.ituM2135.IndoorHotspotChannelModelCreator(transceiverTypes))
40
41
 
41
42
 
42
43
class CreatorPlacerBuilderUrbanMicro(scenarios.builders.CreatorPlacerBuilder):
43
44
 
44
 
    def __init__(self, bsCreator, utCreator,  sectorization, numberOfCircles = 2, numberOfNodes = 30):
 
45
    def __init__(self, bsCreator, utCreator,  sectorization, 
 
46
                    numberOfCircles = 2, numberOfNodes = 30, transceiverTypes = scenarios.channelmodel.defaultPairs):
45
47
      super(CreatorPlacerBuilderUrbanMicro, self).__init__(bsCreator,  
46
48
                                                           scenarios.ituM2135.UrbanMicroBSPlacer(numberOfCircles),
47
49
                                                           scenarios.ituM2135.UrbanMicroAntennaCreator(sectorization),
49
51
                                                           scenarios.ituM2135.UrbanMicroUEPlacer(numberOfNodes,
50
52
                                                                                                 numberOfCircles,
51
53
                                                                                                 minDistance=10),
52
 
                                                           scenarios.ituM2135.UrbanMicroChannelModelCreator())
 
54
                                                           scenarios.ituM2135.UrbanMicroChannelModelCreator(transceiverTypes))
53
55
 
54
56
 
55
57
 
56
58
 
57
59
class CreatorPlacerBuilderUrbanMacro(scenarios.builders.CreatorPlacerBuilder):
58
60
 
59
 
    def __init__(self, bsCreator, utCreator, sectorization, numberOfCircles = 2, numberOfNodes = 30):
 
61
    def __init__(self, bsCreator, utCreator, sectorization, 
 
62
                    numberOfCircles = 2, numberOfNodes = 30, transceiverTypes = scenarios.channelmodel.defaultPairs):
60
63
      super(CreatorPlacerBuilderUrbanMacro, self).__init__(bsCreator,  
61
64
                                                           scenarios.ituM2135.UrbanMacroBSPlacer(numberOfCircles), 
62
65
                                                           scenarios.ituM2135.UrbanMacroAntennaCreator(sectorization),
64
67
                                                           scenarios.ituM2135.UrbanMacroUEPlacer(numberOfNodes,
65
68
                                                                                                 numberOfCircles,
66
69
                                                                                                 minDistance=25),
67
 
                                                           scenarios.ituM2135.UrbanMacroChannelModelCreator())
 
70
                                                           scenarios.ituM2135.UrbanMacroChannelModelCreator(transceiverTypes))
68
71
 
69
72
class CreatorPlacerBuilderRuralMacro(scenarios.builders.CreatorPlacerBuilder):
70
73
 
71
 
    def __init__(self, bsCreator, utCreator,  sectorization, numberOfCircles = 2, numberOfNodes = 30):
 
74
    def __init__(self, bsCreator, utCreator,  sectorization, 
 
75
                    numberOfCircles = 2, numberOfNodes = 30, transceiverTypes = scenarios.channelmodel.defaultPairs):
72
76
      super(CreatorPlacerBuilderRuralMacro, self).__init__(bsCreator,
73
77
                                                           scenarios.ituM2135.RuralMacroBSPlacer(numberOfCircles),
74
78
                                                           scenarios.ituM2135.RuralMacroAntennaCreator(sectorization),
76
80
                                                           scenarios.ituM2135.RuralMacroUEPlacer(numberOfNodes,
77
81
                                                                                                 numberOfCircles,
78
82
                                                                                                 minDistance=35),
79
 
                                                           scenarios.ituM2135.RuralMacroChannelModelCreator())
 
83
                                                           scenarios.ituM2135.RuralMacroChannelModelCreator(transceiverTypes))
80
84
 
81
85
class CreatorPlacerBuilderSuburbanMacro(scenarios.builders.CreatorPlacerBuilder):
82
86
 
83
 
    def __init__(self, bsCreator, utCreator,  sectorization, numberOfCircles = 2, numberOfNodes = 30):
 
87
    def __init__(self, bsCreator, utCreator,  sectorization, 
 
88
                    numberOfCircles = 2, numberOfNodes = 30, transceiverTypes = scenarios.channelmodel.defaultPairs):
84
89
      super(CreatorPlacerBuilderSuburbanMacro, self).__init__(bsCreator,  
85
90
                                                              scenarios.ituM2135.SuburbanMacroBSPlacer(numberOfCircles),
86
91
                                                              scenarios.ituM2135.SuburbanMacroAntennaCreator(sectorization),
88
93
                                                              scenarios.ituM2135.SuburbanMacroUEPlacer(numberOfNodes,
89
94
                                                                                                       numberOfCircles,
90
95
                                                                                                       minDistance=35),
91
 
                                                              scenarios.ituM2135.SuburbanMacroChannelModelCreator())
 
96
                                                              scenarios.ituM2135.SuburbanMacroChannelModelCreator(transceiverTypes))
92
97