21 #include "ns3/trace-source-accessor.h" 
   22 #include "ns3/packet.h" 
   23 #include "ns3/simulator.h" 
   37     .SetGroupName (
"PointToPoint")
 
   39     .AddAttribute (
"Delay", 
"Propagation delay through the channel",
 
   43     .AddTraceSource (
"TxRxPointToPoint",
 
   44                      "Trace source indicating transmission of packet " 
   45                      "from the PointToPointChannel, used by the Animation " 
   48                      "ns3::PointToPointChannel::TxRxAnimationCallback")
 
Simulation virtual time values and global simulation resolution. 
 
Smart pointer class similar to boost::intrusive_ptr. 
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
int32_t m_nDevices
Devices of this channel. 
 
bool IsInitialized(void) const 
Check to make sure the link is initialized. 
 
Link m_link[N_DEVICES]
Link model. 
 
uint64_t GetUid(void) const 
Returns the packet's Uid. 
 
TracedCallback< Ptr< const Packet >, Ptr< NetDevice >, Ptr< NetDevice >, Time, Time > m_txrxPointToPoint
The trace source for the packet transmission animation events that the device can fire...
 
static TypeId GetTypeId(void)
Get the TypeId. 
 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
 
Idle state (no transmission from NetDevice) 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
Abstract Channel Base Class. 
 
WireState m_state
State of the link. 
 
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function. 
 
virtual uint32_t GetNDevices(void) const 
Get number of devices on this channel. 
 
void Attach(Ptr< PointToPointNetDevice > device)
Attach a given netdevice to this channel. 
 
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source. 
 
Time m_delay
Propagation delay. 
 
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range. 
 
PointToPointChannel()
Create a PointToPointChannel. 
 
Ptr< PointToPointNetDevice > m_dst
Second NetDevice. 
 
AttributeValue implementation for Time. 
 
Time GetDelay(void) const 
Get the delay associated with this channel. 
 
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
 
virtual Ptr< NetDevice > GetDevice(uint32_t i) const 
Get NetDevice corresponding to index i on this channel. 
 
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
 
static void ScheduleWithContext(uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event with the given context. 
 
Simple Point To Point Channel. 
 
void Receive(Ptr< Packet > p)
Receive a packet from a connected PointToPointChannel. 
 
Time Seconds(double value)
Construct a Time in the indicated unit. 
 
static const int N_DEVICES
Each point to point link has exactly two net devices. 
 
Ptr< PointToPointNetDevice > m_src
First NetDevice. 
 
Ptr< PointToPointNetDevice > GetSource(uint32_t i) const 
Get the net-device source. 
 
virtual bool TransmitStart(Ptr< Packet > p, Ptr< PointToPointNetDevice > src, Time txTime)
Transmit a packet over this channel. 
 
Ptr< PointToPointNetDevice > GetDestination(uint32_t i) const 
Get the net-device destination. 
 
a unique identifier for an interface. 
 
Ptr< PointToPointNetDevice > GetPointToPointDevice(uint32_t i) const 
Get PointToPointNetDevice corresponding to index i on this channel. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId.