Esempio n. 1
0
 def __init__(self, name, parent=None, **kw):
     super(ConvBase, self).__init__()
     self.logger = Logger(moduleName="DLL",
                          name=name + "UpperConv",
                          enabled=True,
                          parent=parent)
     attrsetter(self, kw)
Esempio n. 2
0
    def __init__(self,
                 name,
                 prefix,
                 commandName=None,
                 windowSize=1.0,
                 sampleInterval=None,
                 parentLogger=None,
                 moduleName='WNS',
                 **kw):
        super(Window, self).__init__(name, commandName)
        self.logger = Logger(moduleName, name, True, parentLogger)
        self.windowSize = windowSize
        if sampleInterval == None:
            self.sampleInterval = self.windowSize
        else:
            self.sampleInterval = sampleInterval

        self.prefix = prefix

        assert (self.sampleInterval <= self.windowSize)

        self.incomingBitThroughputProbeName = self.prefix + ".window.incoming.bitThroughput"
        self.incomingCompoundThroughputProbeName = self.prefix + ".window.incoming.compoundThroughput"
        self.outgoingBitThroughputProbeName = self.prefix + ".window.outgoing.bitThroughput"
        self.outgoingCompoundThroughputProbeName = self.prefix + ".window.outgoing.compoundThroughput"
        self.aggregatedBitThroughputProbeName = self.prefix + ".window.aggregated.bitThroughput"
        self.aggregatedCompoundThroughputProbeName = self.prefix + ".window.aggregated.compoundThroughput"
        self.relativeBitsGoodputProbeName = self.prefix + ".window.relative.bitGoodput"
        self.relativeCompoundsGoodputProbeName = self.prefix + ".window.relative.compoundGoodput"

        attrsetter(self, kw)
Esempio n. 3
0
 def __init__(self,
              name,
              prefix,
              errorRateProvider,
              commandName=None,
              parentLogger=None,
              moduleName='WNS',
              **kw):
     super(ErrorRate, self).__init__(functionalUnitName=name,
                                     commandName=commandName)
     self.name = name
     self.probeName = prefix + "ErrorRate"
     self.errorRateProvider = errorRateProvider
     self.logger = Logger(moduleName, name, True, parentLogger)
     attrsetter(self, kw)
Esempio n. 4
0
    def __init__(self,
                 numSenderProcesses,
                 numReceiverProcesses,
                 parentLogger=None):
        self.numSenderProcesses = numSenderProcesses

        self.logger = Logger('WNS', 'HARQ', True, parentLogger)

        self.receiverProcesses = []

        for i in xrange(numReceiverProcesses):
            self.receiverProcesses.append(
                ReceiverProcess(numRVs=3, parentLogger=self.logger))

        self.numRVs = 3
Esempio n. 5
0
    def __init__(self,
                 name,
                 prefix,
                 commandName=None,
                 parentLogger=None,
                 moduleName='WNS',
                 **kw):
        super(Packet, self).__init__(name, commandName)

        self.prefix = prefix
        self.incomingDelayProbeName = self.prefix + ".packet.incoming.delay"
        self.outgoingDelayProbeName = self.prefix + ".packet.outgoing.delay"
        self.incomingThroughputProbeName = self.prefix + ".packet.incoming.bitThroughput"
        self.outgoingSizeProbeName = self.prefix + ".packet.outgoing.size"
        self.incomingSizeProbeName = self.prefix + ".packet.incoming.size"
        self.logger = Logger(moduleName, name, True, parentLogger)
        attrsetter(self, kw)
Esempio n. 6
0
    def __init__(self, initialPER=0.1, rolloffFactor=1, parentLogger=None):
        """ Simple statistical decoder. No SINR values used. The probability
        that after the k-th transmission the PDU cannot be decoded is given by

        PER(k) = initialPER^(k*rollofFactor)

        k=1 Initial transmission
        k=2 First retransmission
        etc..

        UniformRandomDecoder ignores the redundancy version field (RV)
        """

        openwns.StaticFactoryClass.__init__(self, "UniformRandomDecoder")
        self.initialPER = initialPER
        self.rolloffFactor = rolloffFactor
        self.logger = Logger('WNS', 'UniformRandomDecoder', True, parentLogger)
Esempio n. 7
0
 def __init__(self, parentLogger = None):
     self.functionalUnit = []
     self.connects = []
     self.logger = Logger('WNS', 'FUN', True, parentLogger)
     self.commandProxy = CommandProxy(parentLogger)
Esempio n. 8
0
 def __init__(self, parentLogger):
     self.logger = Logger('WNS','CommandProxy',True, parentLogger)
Esempio n. 9
0
 def __init__(self):
     self.nameInFactory = 'projname.SimulationModel'
     self.logger = Logger("PROJNAME", "SimulationModel", True)
Esempio n. 10
0
 def __init__(self, maxSegmentSize, parentLogger = None, **kw):
     self.maxSegmentSize = maxSegmentSize
     self.logger = Logger('WNS','DynamicSAR',True, parentLogger)
Esempio n. 11
0
 def __init__(self, segmentSize, PERProviderName, parentLogger = None, **kw):
     super(Soft, self).__init__(segmentSize, **kw)
     self.PERProvider = PERProviderName
     self.logger = Logger('WNS','SoftSAR',True, parentLogger)
Esempio n. 12
0
 def __init__(self, segmentSize, parentLogger = None, **kw):
     super(Fixed, self).__init__(segmentSize, **kw)
     self.logger = Logger('WNS','FixedSAR',True, parentLogger)
Esempio n. 13
0
 def __init__(self):
     self.nameInFactory = 'scenarios.SimulationModel'
     self.logger = Logger("SCENARIOS", "SimulationModel", True)
Esempio n. 14
0
 def __init__(self, numRVs=3, parentLogger=None):
     self.numRVs = numRVs
     self.decoder = UniformRandomDecoder(parentLogger=parentLogger)
     self.logger = Logger('WNS', 'HARQReceiverProcess', True, parentLogger)
Esempio n. 15
0
 def __init__(self, fuName, keyBuilder, commandName=None, parentLogger = None, **kw):
     super(FlowGate,self).__init__(functionalUnitName = fuName, commandName=commandName)
     self.keyBuilder = keyBuilder
     self.logger = Logger('WNS', 'FlowGate', True, parentLogger)
     attrsetter(self,kw)
Esempio n. 16
0
 def __init__(self, keyBuilder, notFound, logName = 'FlowSeparator', parentLogger = None, **kw):
     super(FlowSeparator,self).__init__()
     self.keyBuilder = keyBuilder
     self.notFound = notFound
     self.logger = Logger('WNS', logName, True, parentLogger)
     attrsetter(self,kw)