~comnets/openwns-scenarios/main

« back to all changes in this revision

Viewing changes to PyConfig/scenarios/ituM2135/channelmodelcreator.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:
30
30
 
31
31
class IndoorHotspotChannelModelCreator(scenarios.channelmodel.SingleChannelModelCreator):
32
32
    
33
 
    def __init__(self):
 
33
    def __init__(self, transceiverTypes):
34
34
        import rise.scenario.Pathloss
35
35
        from rise.scenario import Shadowing
36
36
        from rise.scenario import FastFading
37
 
        transceiverPairs = scenarios.channelmodel.defaultPairs
 
37
        transceiverPairs = transceiverTypes
38
38
        scenarios.channelmodel.SingleChannelModelCreator.__init__(
39
39
            self, transceiverPairs, rise.scenario.Pathloss.ITUInH(), Shadowing.No(), FastFading.No())
40
40
 
41
41
class UrbanMicroChannelModelCreator(scenarios.channelmodel.SingleChannelModelCreator):
42
42
    
43
 
    def __init__(self):
 
43
    def __init__(self, transceiverTypes):
44
44
        import rise.scenario.Pathloss
45
45
        from rise.scenario import Shadowing
46
46
        from rise.scenario import FastFading
47
 
        transceiverPairs = scenarios.channelmodel.defaultPairs
 
47
        transceiverPairs = transceiverTypes
48
48
        scenarios.channelmodel.SingleChannelModelCreator.__init__(
49
49
            self, transceiverPairs, rise.scenario.Pathloss.ITUUMi(), Shadowing.No(), FastFading.No())
50
50
 
51
51
class UrbanMacroChannelModelCreator(scenarios.channelmodel.SingleChannelModelCreator):
52
52
    
53
 
    def __init__(self):
 
53
    def __init__(self, transceiverTypes):
54
54
        import rise.scenario.Pathloss
55
55
        from rise.scenario import Shadowing
56
56
        from rise.scenario import FastFading
57
 
        transceiverPairs = scenarios.channelmodel.defaultPairs
 
57
        transceiverPairs = transceiverTypes
58
58
        scenarios.channelmodel.SingleChannelModelCreator.__init__(
59
59
                self, transceiverPairs, rise.scenario.Pathloss.ITUUMa(), Shadowing.No(), FastFading.No())
60
60
 
61
61
class RuralMacroChannelModelCreator(scenarios.channelmodel.SingleChannelModelCreator):
62
62
    
63
 
    def __init__(self):
 
63
    def __init__(self, transceiverTypes):
64
64
        import rise.scenario.Pathloss
65
65
        from rise.scenario import Shadowing
66
66
        from rise.scenario import FastFading
67
 
        transceiverPairs = scenarios.channelmodel.defaultPairs
 
67
        transceiverPairs = transceiverTypes
68
68
        scenarios.channelmodel.SingleChannelModelCreator.__init__(
69
69
            self, transceiverPairs, rise.scenario.Pathloss.ITURMa(), Shadowing.No(), FastFading.No())
70
70
 
71
71
class SuburbanMacroChannelModelCreator(scenarios.channelmodel.SingleChannelModelCreator):
72
72
    
73
 
    def __init__(self):
 
73
    def __init__(self, transceiverTypes):
74
74
        import rise.scenario.Pathloss
75
75
        from rise.scenario import Shadowing
76
76
        from rise.scenario import FastFading
77
 
        transceiverPairs = scenarios.channelmodel.defaultPairs
 
77
        transceiverPairs = transceiverTypes
78
78
        scenarios.channelmodel.SingleChannelModelCreator.__init__(
79
79
            self, transceiverPairs, rise.scenario.Pathloss.ITUSMa(), Shadowing.No(), FastFading.No())
80
80