39 static simsignal_t receivedPacketFromLowerLayerSignal_;
40 static simsignal_t sentPacketToLowerLayerSignal_;
44 cGate *macInGate_ =
nullptr;
45 cGate *macOutGate_ =
nullptr;
47 std::map<DrbKey, int> rxGateIndices_;
48 std::map<DrbKey, int> txGateIndices_;
50 typedef std::map<MacNodeId, Throughput> ULThroughputPerUE;
51 ULThroughputPerUE ulThroughput_;
54 virtual void registerRxEntity(
DrbKey id,
int gateIndex);
55 virtual void unregisterRxEntity(
DrbKey id);
56 virtual void registerTxEntity(
DrbKey id,
int gateIndex);
57 virtual void unregisterTxEntity(
DrbKey id);
58 virtual void activeUeUL(std::set<MacNodeId> *ueSet);
60 virtual void addUeThroughput(MacNodeId nodeId, Throughput throughput);
61 virtual double getUeThroughput(MacNodeId nodeId);
62 virtual void resetThroughputStats(MacNodeId nodeId);
65 void initialize(
int stage)
override;
66 int numInitStages()
const override {
return inet::NUM_INIT_STAGES; }
67 void handleMessage(cMessage *msg)
override;
69 virtual void fromMacLayer(cPacket *pkt);