34 #ifndef EMANEMODELSIEEE802ABGNEIGHBORENTRY_HEADER_ 35 #define EMANEMODELSIEEE802ABGNEIGHBORENTRY_HEADER_ 50 namespace IEEE80211ABG
83 float fRxPowerMilliWatts,
84 size_t numPackets = 1);
174 size_t totalNumPackets_;
175 float fTotalRxPowerMilliWatts_;
178 totalUtilizationMicroseconds_{},
180 fTotalRxPowerMilliWatts_{}
185 totalUtilizationMicroseconds_ = Microseconds::zero();
186 totalNumPackets_ = 0;
187 fTotalRxPowerMilliWatts_ = 0;
190 void update(
size_t numPackets,
const Microseconds & utilizationMicroseconds,
float fRxPowerMilliWatts)
192 totalNumPackets_ += numPackets;
194 totalUtilizationMicroseconds_ += utilizationMicroseconds;
196 fTotalRxPowerMilliWatts_ += fRxPowerMilliWatts;
200 using UtilizationTypeMap = std::map<std::uint8_t, Utilization>;
202 UtilizationTypeMap prevUtilizationTypeMap_;
204 UtilizationTypeMap currUtilizationTypeMap_;
214 float fEstimatedNumCommonNeighbors_;
216 float fHiddenChannelActivity_;
218 float fAverageHiddenRxPowerMilliWatts_;
220 float fAverageCommonRxPowerMilliWatts_;
225 #endif //EMANEMODELSIEEE802ABGNEIGHBORENTRY_HEADER_ void setAverageCommonRxPowerMilliWatts(float dAverageCommonRxPowerMilliWatts)
size_t getNumberOfPackets(std::uint8_t msgTypeMask) const
bool isOneHopNbr(EMANE::NEMId id) const
bool isCommonNbr(EMANE::NEMId id) const
void setEstimatedNumCommonNeighbors(float num)
EMANE::TimePoint getLastActivityTime() const
float getAverageHiddenRxPowerMilliWatts() const
const NbrSet & getHiddenNeighbors() const
Defines a 1 hop nbr and its bandwidth utilization.
void setAverageHiddenRxPowerMilliWatts(float dAverageHiddenRxPowerMilliWatts)
void setHiddenChannelActivity(float fActivity)
const NbrSet & getCommonNeighbors() const
Microseconds getUtilizationMicroseconds(std::uint8_t msgTypeMask) const
void setOneHopNeighbors(const NbrSet &nbrs)
float getRxPowerMilliWatts(std::uint8_t msgTypeMask) const
void updateChannelActivity(const Microseconds &utilizationMicroseconds, std::uint8_t type, const TimePoint &activityTime, float fRxPowerMilliWatts, size_t numPackets=1)
std::chrono::microseconds Microseconds
float getHiddenChannelActivity() const
float getAverageCommonRxPowerMilliWatts() const
void setHiddenNeighbors(const NbrSet &nbrs)
void setCommonNeighbors(const NbrSet &nbrs)
std::set< EMANE::NEMId > NbrSet
bool isHiddenNbr(EMANE::NEMId id) const
Clock::time_point TimePoint
const NbrSet & getOneHopNeighbors() const
float getEstimatedNumCommonNeighbors() const