MCPcopy Create free account
hub / github.com/Unipisa/Simu5G / getDataVolume

Method getDataVolume

src/simu5g/stack/packetFlowObserver/PacketFlowObserverEnb.cc:830–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830uint64_t PacketFlowObserverEnb::getDataVolume(MacNodeId nodeId, Direction dir)
831{
832 auto node = sduDataVolume_.find(nodeId);
833 if (node == sduDataVolume_.end())
834 return 0;
835 if (dir == DL)
836 return node->second.dlBits;
837 else if (dir == UL)
838 return node->second.ulBits;
839 else
840 throw cRuntimeError("PacketFlowObserverEnb::getDataVolume - Wrong direction");
841}
842
843void PacketFlowObserverEnb::resetDataVolume(MacNodeId nodeId, Direction dir)
844{

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected