24 #include <ns3/global-value.h> 25 #include <ns3/string.h> 79 bool useDefault =
true;
83 std::string simulationType = simulationTypeValue.
Get ();
87 if (simulationType.compare (
"ns3::NullMessageSimulatorImpl") == 0)
92 else if (simulationType.compare (
"ns3::DistributedSimulatorImpl") == 0)
105 NS_LOG_WARN (
"SimulatorImplementationType was set to non-parallel simulator; setting type to ns3::DistributedSimulatorImp");
Simulation virtual time values and global simulation resolution.
Hold variables of type string.
virtual uint32_t GetSize()=0
virtual void Destroy()=0
Deletes storage used by the parallel environment.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
static void Disable()
Terminates the parallel environment.
virtual bool IsEnabled()=0
std::string Get(void) const
static void Destroy()
Deletes storage used by the parallel environment.
static void Enable(int *pargc, char ***pargv)
Sets up parallel communication interface.
virtual void Disable()=0
Terminates the parallel environment.
Interface between ns-3 and MPI.
virtual void Enable(int *pargc, char ***pargv)=0
static void Bind(std::string name, const AttributeValue &value)
Iterate over the set of GlobalValues until a matching name is found and then set its value with Globa...
static bool GetValueByNameFailSafe(std::string name, AttributeValue &value)
Finds the GlobalValue with the given name and returns its value.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetSystemId()=0
static void SendPacket(Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev)
static uint32_t GetSystemId()
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
static ParallelCommunicationInterface * g_parallelCommunicationInterface
Static instance of the instantiated parallel controller.
static uint32_t GetSize()
virtual void SendPacket(Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev)=0
Interface between ns-3 and MPI for the Null Message distributed simulation implementation.