28 #ifndef NS3_REMOTE_CHANNEL_BUNDLE 29 #define NS3_REMOTE_CHANNEL_BUNDLE 33 #include <ns3/channel.h> 35 #include <ns3/pointer.h> 37 #include <unordered_map> 125 std::size_t
GetSize (
void)
const;
153 typedef std::unordered_map < uint32_t, Ptr < Channel > >
ChannelMap;
~RemoteChannelBundle()
Destructor.
RemoteChannelBundle()
Default constructor.
Simulation virtual time values and global simulation resolution.
std::unordered_map< uint32_t, Ptr< Channel > > ChannelMap
Container of channels that are connected from nodes in this MPI task to nodes in a remote rank...
Declaration of class ns3::NullMessageSimulatorImpl.
void SetGuaranteeTime(Time time)
friend std::ostream & operator<<(std::ostream &out, ns3::RemoteChannelBundle &bundle)
Output for debugging purposes.
uint32_t GetSystemId() const
Get the system Id for this side.
Collection of ns-3 channels between local and remote nodes.
EventId m_nullEventId
Event scheduled to send Null Message for this bundle.
std::size_t GetSize(void) const
Get the number of ns-3 channels in this bundle.
Time GetGuaranteeTime(void) const
Get the current guarantee time for this bundle.
void AddChannel(Ptr< Channel > channel, Time delay)
Add a channel to this bundle.
EventId GetEventId(void) const
Get the event ID of the Null Message send event for this bundle.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
An identifier for simulation events.
void SetEventId(EventId id)
Set the event ID of the Null Message send event currently scheduled for this channel.
uint32_t m_remoteSystemId
Remote rank.
A base class which provides memory management and object aggregation.
Time GetDelay(void) const
Get the minimum delay along any channel in this bundle.
static TypeId GetTypeId(void)
Register this type.
Time m_delay
Delay for this Channel bundle, which is the min link delay over all incoming channels;.
ChannelMap m_channels
ChannelId to Channel map.
a unique identifier for an interface.
Time m_guaranteeTime
Guarantee time for the incoming Channels from MPI task remote_rank.