21 #ifndef VISUAL_SIMULATOR_IMPL_H
22 #define VISUAL_SIMULATOR_IMPL_H
24 #include "ns3/simulator-impl.h"
58 virtual void Stop (
void);
59 virtual void Stop (
Time const &delay);
67 virtual void Run (
void);
An identifier for simulation events.
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
The SimulatorImpl base class.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
A replacement simulator that starts the visualizer.
virtual void SetScheduler(ObjectFactory schedulerFactory)
Set the Scheduler to be used to manage the event list.
virtual uint32_t GetContext(void) const
Get the current simulation context.
virtual Time Now(void) const
Return the current simulation virtual time.
virtual void Cancel(const EventId &id)
Set the cancel bit on this event: the event's associated function will not be invoked when it expires...
static TypeId GetTypeId(void)
Get the type ID.
Ptr< SimulatorImpl > GetSim()
Get the simulator implementation.
void DoDispose()
Destructor implementation.
virtual void Destroy()
Execute the events scheduled with ScheduleDestroy().
virtual void Remove(const EventId &id)
Remove an event from the event list.
virtual void Stop(void)
Tell the Simulator the calling event should be the last one executed.
virtual void ScheduleWithContext(uint32_t context, Time const &delay, EventImpl *event)
Schedule a future event execution (in a different context).
void RunRealSimulator(void)
calls Run() in the wrapped simulator
ObjectFactory m_simulatorImplFactory
simulator implementation factory
virtual Time GetMaximumSimulationTime(void) const
Get the maximum representable simulation time.
Ptr< SimulatorImpl > m_simulator
the simulator implementation
void NotifyConstructionCompleted(void)
Notifier called once the ObjectBase is fully constructed.
virtual uint32_t GetSystemId(void) const
Get the system id of this simulator.
virtual void Run(void)
Run the simulation.
virtual EventId ScheduleDestroy(EventImpl *event)
Schedule an event to run at the end of the simulation, after the Stop() time or condition has been re...
virtual EventId Schedule(Time const &delay, EventImpl *event)
Schedule a future event execution (in the same context).
virtual Time GetDelayLeft(const EventId &id) const
Get the remaining time until this event will execute.
virtual bool IsFinished(void) const
Check if the simulation should finish.
virtual uint64_t GetEventCount(void) const
Get the number of events executed.
virtual bool IsExpired(const EventId &id) const
Check if an event has already run or been cancelled.
virtual EventId ScheduleNow(EventImpl *event)
Schedule an event to run at the current virtual time.
Every class exported by the ns3 library is enclosed in the ns3 namespace.