21 #ifndef SIMULATOR_IMPL_H
22 #define SIMULATOR_IMPL_H
63 virtual void Stop (
void) = 0;
81 virtual void Run (
void) = 0;
An identifier for simulation events.
Instantiate subclasses of ns3::Object.
A base class which provides memory management and object aggregation.
The SimulatorImpl base class.
virtual EventId ScheduleDestroy(EventImpl *event)=0
Schedule an event to run at the end of the simulation, after the Stop() time or condition has been re...
virtual Time GetMaximumSimulationTime(void) const =0
Get the maximum representable simulation time.
virtual Time GetDelayLeft(const EventId &id) const =0
Get the remaining time until this event will execute.
virtual void SetScheduler(ObjectFactory schedulerFactory)=0
Set the Scheduler to be used to manage the event list.
virtual uint32_t GetSystemId() const =0
Get the system id of this simulator.
virtual EventId Schedule(const Time &delay, EventImpl *event)=0
Schedule a future event execution (in the same context).
static TypeId GetTypeId(void)
Get the registered TypeId for this class.
virtual void Destroy()=0
Execute the events scheduled with ScheduleDestroy().
virtual bool IsExpired(const EventId &id) const =0
Check if an event has already run or been cancelled.
virtual void Run(void)=0
Run the simulation.
virtual void Remove(const EventId &id)=0
Remove an event from the event list.
virtual void ScheduleWithContext(uint32_t context, const Time &delay, EventImpl *event)=0
Schedule a future event execution (in a different context).
virtual void PreEventHook(const EventId &id)
Hook called before processing each event.
virtual uint32_t GetContext(void) const =0
Get the current simulation context.
virtual void Stop(const Time &delay)=0
Schedule the time delay until the Simulator should stop.
virtual EventId ScheduleNow(EventImpl *event)=0
Schedule an event to run at the current virtual time.
virtual Time Now(void) const =0
Return the current simulation virtual time.
virtual void Cancel(const EventId &id)=0
Set the cancel bit on this event: the event's associated function will not be invoked when it expires...
virtual void Stop(void)=0
Tell the Simulator the calling event should be the last one executed.
virtual bool IsFinished(void) const =0
Check if the simulation should finish.
virtual uint64_t GetEventCount(void) const =0
Get the number of events executed.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
ns3::EventId declarations.
ns3::EventImpl declarations.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Declaration of classes ns3::Time and ns3::TimeWithUnit, and the TimeValue implementation classes.
ns3::ObjectFactory class declaration.
ns3::Object class declaration, which is the root of the Object hierarchy and Aggregation.
ns3::Ptr smart pointer declaration and implementation.