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 &delay);
 
  121   virtual void Run (
void);
 
  136   uint64_t 
NextTs (
void) 
const;
 
Simulation virtual time values and global simulation resolution. 
 
~DistributedSimulatorImpl()
 
Smart pointer class similar to boost::intrusive_ptr. 
 
virtual void SetScheduler(ObjectFactory schedulerFactory)
Set the Scheduler to be used to manage the event list. 
 
Ptr< Scheduler > m_events
 
virtual EventId Schedule(Time const &delay, EventImpl *event)
Schedule a future event execution (in the same context). 
 
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 Time GetMaximumSimulationTime(void) const 
Get the maximum representable simulation time. 
 
std::list< EventId > DestroyEvents
 
virtual void SetMaximumLookAhead(const Time lookAhead)
 
virtual Time Now(void) const 
Return the current simulation virtual time. 
 
virtual void DoDispose(void)
Destructor implementation. 
 
virtual Time GetDelayLeft(const EventId &id) const 
Get the remaining time until this event will execute. 
 
void ProcessOneEvent(void)
 
uint32_t m_currentContext
 
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...
 
DistributedSimulatorImpl()
 
virtual EventId ScheduleNow(EventImpl *event)
Schedule an event to run at the current virtual time. 
 
DestroyEvents m_destroyEvents
 
static TypeId GetTypeId(void)
 
virtual bool IsExpired(const EventId &id) const 
Check if an event has already run or been cancelled. 
 
Distributed simulator implementation using lookahead. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
virtual void Destroy()
Execute the events scheduled with ScheduleDestroy(). 
 
uint64_t NextTs(void) const 
 
virtual uint32_t GetSystemId(void) const 
Get the system id of this simulator. 
 
virtual uint32_t GetContext(void) const 
Get the current simulation context. 
 
Structure used for all-reduce LBTS computation. 
 
void CalculateLookAhead(void)
 
virtual void Remove(const EventId &id)
Remove an event from the event list. 
 
Instantiate subclasses of ns3::Object. 
 
An identifier for simulation events. 
 
LbtsMessage(uint32_t rxc, uint32_t txc, uint32_t id, bool isFinished, const Time &t)
 
virtual void ScheduleWithContext(uint32_t context, Time const &delay, EventImpl *event)
Schedule a future event execution (in a different context). 
 
virtual void Run(void)
Run the simulation. 
 
virtual void Stop(void)
Tell the Simulator the calling event should be the last one executed. 
 
bool IsLocalFinished(void) const 
 
virtual bool IsFinished(void) const 
Check if the simulation should finish. 
 
a unique identifier for an interface. 
 
The SimulatorImpl base class.