22 #include "ns3/default-simulator-impl.h"
50 .AddConstructor<VisualSimulatorImpl> ()
51 .AddAttribute (
"SimulatorImplFactory",
52 "Factory for the underlying simulator implementation used by the visualizer.",
55 MakeObjectFactoryChecker ())
115 if (!Py_IsInitialized ())
117 const char *argv[] = {
"python", NULL};
119 PySys_SetArgv (1, (
char**) argv);
121 "import visualizer\n"
122 "visualizer.start();\n"
127 PyGILState_STATE __py_gil_state = PyGILState_Ensure ();
130 "import visualizer\n"
131 "visualizer.start();\n"
134 PyGILState_Release (__py_gil_state);
162 m_simulator->ScheduleWithContext (context, time, event);
void NotifyConstructionCompleted(void)
This method is invoked once all member attributes have been initialized.
Simulation virtual time values and global simulation resolution.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
virtual void Run(void)
Run the simulation until one of:
ObjectFactory GetDefaultSimulatorImplFactory()
void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
ObjectFactory m_simulatorImplFactory
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetTypeId(TypeId tid)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void ScheduleWithContext(uint32_t context, Time const &time, EventImpl *event)
virtual void SetScheduler(ObjectFactory schedulerFactory)
hold objects of type ns3::ObjectFactory
virtual void Cancel(const EventId &ev)
Set the cancel bit on this event: the event's associated function will not be invoked when it expires...
static TypeId GetTypeId(void)
virtual bool IsFinished(void) const
If there are no more events lefts to be scheduled, or if simulation time has already reached the "sto...
Ptr< Object > Create(void) const
virtual void Stop(void)
If an event invokes this method, it will be the last event scheduled by the Simulator::Run method bef...
virtual Time GetMaximumSimulationTime(void) const
virtual EventId Schedule(Time const &time, EventImpl *event)
virtual void Remove(const EventId &ev)
Remove an event from the event list.
virtual Time GetDelayLeft(const EventId &id) const
virtual void Destroy()
This method is typically invoked at the end of a simulation to avoid false-positive reports by a leak...
virtual EventId ScheduleNow(EventImpl *event)
Ptr< SimulatorImpl > m_simulator
void RunRealSimulator(void)
calls Run() in the wrapped simulator
instantiate subclasses of ns3::Object.
an identifier for simulation events.
virtual bool IsExpired(const EventId &ev) const
This method has O(1) complexity.
virtual uint32_t GetSystemId(void) const
virtual Time Now(void) const
Return the "current simulation time".
a unique identifier for an interface.
virtual uint32_t GetContext(void) const
virtual EventId ScheduleDestroy(EventImpl *event)
TypeId SetParent(TypeId tid)
static TypeId GetTypeId(void)
Doxygen introspection did not find any typical Config paths.