20 #ifndef NS3_DISTRIBUTED_SIMULATOR_IMPL_H
21 #define NS3_DISTRIBUTED_SIMULATOR_IMPL_H
23 #include "ns3/simulator-impl.h"
24 #include "ns3/scheduler.h"
25 #include "ns3/event-impl.h"
55 LbtsMessage (uint32_t rxc, uint32_t txc, uint32_t
id,
bool isFinished,
const Time& t)
112 virtual void Stop (
void);
113 virtual void Stop (
Time const &time);
121 virtual void Run (
void);
135 uint64_t
NextTs (
void)
const;
keep track of time values and allow control of global simulation resolution
~DistributedSimulatorImpl()
smart pointer class similar to boost::intrusive_ptr
virtual void SetScheduler(ObjectFactory schedulerFactory)
Ptr< Scheduler > m_events
virtual EventId ScheduleDestroy(EventImpl *event)
virtual Time GetMaximumSimulationTime(void) const
std::list< EventId > DestroyEvents
virtual Time Now(void) const
Return the "current simulation time".
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual Time GetDelayLeft(const EventId &id) const
void ProcessOneEvent(void)
uint32_t m_currentContext
DistributedSimulatorImpl()
virtual EventId ScheduleNow(EventImpl *event)
DestroyEvents m_destroyEvents
virtual void Remove(const EventId &ev)
Remove an event from the event list.
static TypeId GetTypeId(void)
Distributed simulator implementation using lookahead.
virtual void Destroy()
This method is typically invoked at the end of a simulation to avoid false-positive reports by a leak...
virtual void ScheduleWithContext(uint32_t context, Time const &time, EventImpl *event)
uint64_t NextTs(void) const
virtual uint32_t GetSystemId(void) const
virtual uint32_t GetContext(void) const
Structure used for all-reduce LBTS computation.
void CalculateLookAhead(void)
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...
instantiate subclasses of ns3::Object.
virtual EventId Schedule(Time const &time, EventImpl *event)
an identifier for simulation events.
LbtsMessage(uint32_t rxc, uint32_t txc, uint32_t id, bool isFinished, const Time &t)
virtual void Run(void)
Run the simulation until one of:
virtual void Stop(void)
If an event invokes this method, it will be the last event scheduled by the Simulator::Run method bef...
bool IsLocalFinished(void) const
virtual bool IsFinished(void) const
If there are no more events lefts to be scheduled, or if simulation time has already reached the "sto...
a unique identifier for an interface.
Doxygen introspection did not find any typical Config paths.
virtual bool IsExpired(const EventId &ev) const
This method has O(1) complexity.