23 #include "ns3/simulator.h"
24 #include "ns3/string.h"
48 virtual void Print (std::ostream &os)
const;
67 static TypeId tid =
TypeId (
"anon::DelayJitterEstimationTimestampTag")
69 .AddConstructor<DelayJitterEstimationTimestampTag> ()
70 .AddAttribute (
"CreationTime",
71 "The time at which the timestamp was created",
DelayJitterEstimationTimestampTag()
bool FindFirstMatchingByteTag(Tag &tag) const
Finds the first tag matching the parameter Tag type.
Simulation virtual time values and global simulation resolution.
Control the scheduling of simulation events.
Hold variables of type string.
void WriteU64(uint64_t v)
void RecordRx(Ptr< const Packet > packet)
virtual void Print(std::ostream &os) const
static TypeId GetTypeId(void)
Get the type ID.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
uint64_t GetLastJitter(void) const
The jitter is calculated using the RFC 1889 (RTP) jitter definition.
static void PrepareTx(Ptr< const Packet > packet)
int64x64_t Abs(const int64x64_t &value)
Absolute value.
virtual void Serialize(TagBuffer i) const
tag a set of bytes in a packet
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time m_previousRxTx
Previous Rx or Tx time.
Tag to perform Delay and Jitter estimations.
Time TimeStep(uint64_t ts)
Time GetLastDelay(void) const
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
static Time Now(void)
Return the current simulation virtual time.
virtual void Deserialize(TagBuffer i)
Time m_delay
Delay estimation.
Time m_previousRx
Previous Rx time.
Time Seconds(double value)
Construct a Time in the indicated unit.
Time GetTxTime(void) const
Get the Transmission time stored in the tag.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
int64_t GetHigh(void) const
Get the integer portion.
uint64_t m_creationTime
The time stored in the tag.
Time Now(void)
create an ns3::Time instance which contains the current simulation time.
int64x64_t m_jitter
Jitter estimation.
virtual uint32_t GetSerializedSize(void) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
void AddByteTag(const Tag &tag) const
Tag each byte included in this packet with a new byte tag.