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.
virtual uint32_t GetContext(void) const
Get the current simulation context.
Ptr< Scheduler > m_events
virtual EventId Schedule(Time const &delay, EventImpl *event)
Schedule a future event execution (in the same context).
bool IsLocalFinished(void) const
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...
std::list< EventId > DestroyEvents
virtual void SetMaximumLookAhead(const Time lookAhead)
virtual Time GetDelayLeft(const EventId &id) const
Get the remaining time until this event will execute.
virtual void DoDispose(void)
Destructor implementation.
virtual Time GetMaximumSimulationTime(void) const
Get the maximum representable simulation time.
void ProcessOneEvent(void)
virtual bool IsFinished(void) const
Check if the simulation should finish.
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
virtual bool IsExpired(const EventId &id) const
Check if an event has already run or been cancelled.
static TypeId GetTypeId(void)
Distributed simulator implementation using lookahead.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetSystemId(void) const
Get the system id of this simulator.
virtual void Destroy()
Execute the events scheduled with ScheduleDestroy().
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 Time Now(void) const
Return the current simulation virtual time.
virtual void Run(void)
Run the simulation.
virtual void Stop(void)
Tell the Simulator the calling event should be the last one executed.
a unique identifier for an interface.
uint64_t NextTs(void) const
The SimulatorImpl base class.