Pure virtual base class for the interface between ns-3 and the parallel communication layer being used. More...
#include "parallel-communication-interface.h"
Public Member Functions | |
virtual | ~ParallelCommunicationInterface () |
Destructor. More... | |
virtual void | Destroy ()=0 |
Deletes storage used by the parallel environment. More... | |
virtual void | Disable ()=0 |
Terminates the parallel environment. More... | |
virtual void | Enable (int *pargc, char ***pargv)=0 |
virtual uint32_t | GetSize ()=0 |
virtual uint32_t | GetSystemId ()=0 |
virtual bool | IsEnabled ()=0 |
virtual void | SendPacket (Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev)=0 |
Pure virtual base class for the interface between ns-3 and the parallel communication layer being used.
Each type of parallel communication layer is required to implement this interface. This interface is called through the MpiInterface.
Definition at line 49 of file parallel-communication-interface.h.
|
inlinevirtual |
Destructor.
Definition at line 55 of file parallel-communication-interface.h.
|
pure virtual |
Deletes storage used by the parallel environment.
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::Destroy().
|
pure virtual |
Terminates the parallel environment.
This function must be called after Destroy ()
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::Disable().
|
pure virtual |
pargc | number of command line arguments |
pargv | command line arguments |
Sets up parallel communication interface
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::Enable().
|
pure virtual |
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::GetSize().
|
pure virtual |
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::GetSystemId().
|
pure virtual |
Implemented in ns3::GrantedTimeWindowMpiInterface, and ns3::NullMessageMpiInterface.
Referenced by ns3::MpiInterface::IsEnabled().
|
pure virtual |
p | packet to send |
rxTime | received time at destination node |
node | destination node |
dev | destination device |
Serialize and send a packet to the specified node and net device
Implemented in ns3::NullMessageMpiInterface, and ns3::GrantedTimeWindowMpiInterface.
Referenced by ns3::MpiInterface::SendPacket().