22#ifndef SATELLITE_STATS_PACKET_ERROR_HELPER_H
23#define SATELLITE_STATS_PACKET_ERROR_HELPER_H
27#include "ns3/address.h"
28#include "ns3/collector-map.h"
30#include "ns3/satellite-enums.h"
31#include "ns3/satellite-phy-rx-carrier.h"
44class DataCollectionObject;
76 void ErrorRxCallback(uint32_t nPackets,
const Address& fromOrTo,
bool isError);
169 std::map<Ptr<Probe>, std::pair<Ptr<Node>, uint32_t>>
m_probes;
ChannelType_t
Types of channel.
Build a satellite network set with needed objects and configuration.
CarrierType
Possible carrier types.
virtual ~SatStatsFeederCrdsaPacketErrorHelper()
/ Destructor.
SatStatsFeederCrdsaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsFeederEssaPacketErrorHelper()
/ Destructor.
static TypeId GetTypeId()
inherited from ObjectBase base class
SatStatsFeederEssaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
SatStatsFeederSlottedAlohaPacketErrorHelper(Ptr< const SatHelper > satHelper)
virtual ~SatStatsFeederSlottedAlohaPacketErrorHelper()
/ Destructor.
SatStatsFwdFeederDaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsFwdFeederDaPacketErrorHelper()
/ Destructor.
SatStatsFwdUserDaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsFwdUserDaPacketErrorHelper()
/ Destructor.
SatStatsHelper(Ptr< const SatHelper > satHelper)
Creates a new helper instance.
static TypeId GetTypeId()
inherited from ObjectBase base class
void DoInstall()
Install the probes, collectors, and aggregators necessary to produce the statistics output.
std::string m_traceSourceName
Name of trace source of PHY RX carrier to listen to.
std::string GetTraceSourceName() const
SatEnums::ChannelType_t GetChannelType() const
virtual void UpdateIdentifierOnProbes()
Change identifier used on probes, when handovers occur.
void InstallProbeOnGw(Ptr< Node > gwNode)
Set up several listeners on a GW node and connect them to the collectors.
std::map< Ptr< Probe >, std::pair< Ptr< Node >, uint32_t > > m_probes
Maintains a list of probes created by this helper (for forward link).
Ptr< DataCollectionObject > m_aggregator
The aggregator created by this helper.
SatPhyRxCarrier::CarrierType GetValidCarrierType() const
Get the valid carrier type.
bool DisconnectProbeFromCollector(Ptr< Probe > probe, uint32_t identifier)
Disconnect the probe from the right collector.
SatStatsPacketErrorHelper(Ptr< const SatHelper > satHelper)
CollectorMap m_terminalCollectors
Maintains a list of collectors created by this helper.
void InstallProbeOnUt(Ptr< Node > utNode)
Set up several probes on a UT node and connect them to the collectors.
SatEnums::ChannelType_t m_channelType
Link where statistics are gathered from.
void InstallProbeOnSatUser(Ptr< Node > satNode)
Set up several listeners on a SAT user node and connect them to the collectors.
void SetChannelType(SatEnums::ChannelType_t channelType)
bool ConnectProbeToCollector(Ptr< Probe > probe, uint32_t identifier)
Connect the probe to the right collector.
SatPhyRxCarrier::CarrierType m_carrierType
Valid carrier type.
void SetValidCarrierType(SatPhyRxCarrier::CarrierType carrierType)
Set valid carrier type for this statistics helper type.
void SetTraceSourceName(std::string traceSourceName)
void ErrorRxCallback(uint32_t nPackets, const Address &fromOrTo, bool isError)
Receive inputs from trace sources and determine the right collector to forward the inputs to.
virtual ~SatStatsPacketErrorHelper()
/ Destructor.
void InstallProbeOnSatFeeder(Ptr< Node > satNode)
Set up several listeners on a SAT feeder node and connect them to the collectors.
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsRtnFeederDaPacketErrorHelper()
/ Destructor.
SatStatsRtnFeederDaPacketErrorHelper(Ptr< const SatHelper > satHelper)
SatStatsRtnUserDaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsRtnUserDaPacketErrorHelper()
/ Destructor.
SatStatsUserCrdsaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
virtual ~SatStatsUserCrdsaPacketErrorHelper()
/ Destructor.
virtual ~SatStatsUserEssaPacketErrorHelper()
/ Destructor.
static TypeId GetTypeId()
inherited from ObjectBase base class
SatStatsUserEssaPacketErrorHelper(Ptr< const SatHelper > satHelper)
virtual ~SatStatsUserSlottedAlohaPacketErrorHelper()
/ Destructor.
SatStatsUserSlottedAlohaPacketErrorHelper(Ptr< const SatHelper > satHelper)
static TypeId GetTypeId()
inherited from ObjectBase base class
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.