21 #ifndef SIMULATOR_IMPL_H
22 #define SIMULATOR_IMPL_H
80 virtual void Stop (
void) = 0;
90 virtual void Stop (
Time const &time) = 0;
175 virtual void Run (
void) = 0;
181 virtual Time Now (
void)
const = 0;
Simulation virtual time values and global simulation resolution.
virtual void ScheduleWithContext(uint32_t context, Time const &time, EventImpl *event)=0
Schedule a future event execution (in a different context).
static TypeId GetTypeId(void)
Get the registered TypeId for this class.
ns3::EventImpl declarations.
virtual bool IsExpired(const EventId &id) const =0
Check if an event has already run or been cancelled.
Smart pointer implementation.
virtual Time Now(void) const =0
Return the current simulation virtual time.
ns3::ObjectFactory class declaration.
virtual EventId ScheduleNow(EventImpl *event)=0
Schedule an event to run at the current virtual time.
virtual void SetScheduler(ObjectFactory schedulerFactory)=0
Set the Scheduler to be used to manage the event list.
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 Run(void)=0
Run the simulation.
virtual Time GetMaximumSimulationTime(void) const =0
Get the maximum representable simulation time.
virtual bool IsFinished(void) const =0
Check if the simulation should finish.
virtual void Remove(const EventId &id)=0
Remove an event from the event list.
virtual Time GetDelayLeft(const EventId &id) const =0
Get the remaining time until this event will execute.
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...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual EventId Schedule(Time const &time, EventImpl *event)=0
Schedule a future event execution (in the same context).
ns3::Object class declaration, which is the root of the Object hierarchy and Aggregation.
Instantiate subclasses of ns3::Object.
An identifier for simulation events.
virtual void Destroy()=0
Execute the events scheduled with ScheduleDestroy().
virtual void Stop(void)=0
Tell the Simulator the calling event should be the last one executed.
virtual uint32_t GetSystemId() const =0
Get the system id of this simulator.
A base class which provides memory management and object aggregation.
ns3::EventId declarations.
virtual uint32_t GetContext(void) const =0
Get the current simulation context.
a unique identifier for an interface.
The SimulatorImpl base class.