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

« back to all changes in this revision

Viewing changes to PyConfig/wifimac/lowerMAC/RateAdaptation.py

  • Committer: Sebastian Max
  • Date: 2010-09-01 15:45:53 UTC
  • Revision ID: smx@comnets.rwth-aachen.de-20100901154553-vfugnov5jll4q3mf
Opportunistic -> PER

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        else:
43
43
            self.phyMode = phyMode
44
44
 
45
 
class Opportunistic:
46
 
    __plugin__ = 'Opportunistic'
 
45
class PER:
 
46
    __plugin__ = 'PER'
47
47
 
48
48
    perForGoingDown = 0.25
49
49
    """ if the per is above this value, then the next lower phy mode will be used """
81
81
        else:
82
82
            self.initialPhyMode = phyMode
83
83
 
84
 
class OpportunisticwithMIMO(Opportunistic):
85
 
    __plugin__ = 'OpportunisticwithMIMO'
 
84
class PERwithMIMO(PER):
 
85
    __plugin__ = 'PERwithMIMO'
86
86
 
87
87
    phyModeIncreaseOnAntennaDecrease = 3
88
88
    phyModeDecreaseOnAntennaIncrease = 3
93
93
        else:
94
94
            self.initialPhyMode = phyMode
95
95
 
96
 
class SINR(Opportunistic):
 
96
class SINR(PER):
97
97
    __plugin__ = 'SINR'
98
98
 
99
99
    retransmissionLQMReduction = 3.0
100
100
    """ Reduce the expected lqm by this value [in dB] for every retransmission of the packet """
101
101
 
102
 
class SINRwithMIMO(OpportunisticwithMIMO):
 
102
class SINRwithMIMO(PERwithMIMO):
103
103
    __plugin__ = 'SINRwithMIMO'
104
104
 
105
105
    retransmissionLQMReduction = 3.0