29 #ifndef SATELLITE_PHY_RX_CARRIER_PACKET_PROBE_H
30 #define SATELLITE_PHY_RX_CARRIER_PACKET_PROBE_H
32 #include <ns3/address.h>
33 #include <ns3/nstime.h>
34 #include <ns3/probe.h>
35 #include <ns3/traced-callback.h>
79 void SetValue(uint32_t nPackets,
const Address& address,
bool statusFlag);
91 const Address& address,
101 virtual bool ConnectByObject(std::string traceSource, Ptr<Object> obj);
132 void TraceSink(uint32_t nPackets,
const Address& address,
bool statusFlag);
135 TracedCallback<uint32_t, const Address&, bool>
m_output;
Probe to translate from a TraceSource to two more easily parsed TraceSources.
SatPhyRxCarrierPacketProbe()
Default constructor.
bool m_statusFlag
The traced packet burst status flag.
uint32_t m_nPackets
The traced number of packets in the packet burst.
TracedCallback< uint32_t, const Address &, bool > m_output
Output trace, the number of packets, source address, and status flag.
virtual void ConnectByPath(std::string path)
connect to a trace source provided by a config path
virtual bool ConnectByObject(std::string traceSource, Ptr< Object > obj)
connect to a trace source attribute provided by a given object
void SetValue(uint32_t nPackets, const Address &address, bool statusFlag)
Set a probe value.
void(* RxStatusCallback)(uint32_t nPackets, const Address &from, bool status)
Common callback signature for trace sources related to packets reception by PHY and its status.
TracedCallback< uint32_t, uint32_t > m_outputUinteger
Output trace, previous and current number of packets.
static TypeId GetTypeId()
Get the type ID.
virtual ~SatPhyRxCarrierPacketProbe()
Destructor for SatPhyRxCarrierPacketProbe.
static void SetValueByPath(std::string path, uint32_t nPackets, const Address &address, bool statusFlag)
Set a probe value by its name in the Config system.
Address m_address
The socket address for the traced packet burst.
void TraceSink(uint32_t nPackets, const Address &address, bool statusFlag)
Method to connect to an underlying ns3::TraceSource with arguments of type double and const Address&.
TracedCallback< bool, bool > m_outputBool
Output trace, previous and current status flag.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.