22 #include "ns3/simulator.h"
52 .SetGroupName (
"Stats")
Simulation virtual time values and global simulation resolution.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void SetKey(const std::string key)
Sets the DataCalculator key to the provided key.
std::string GetKey() const
Gets the DataCalculator key.
static TypeId GetTypeId(void)
Register this type.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
bool m_enabled
Descendant classes must check & respect m_enabled!
static void Cancel(const EventId &id)
Set the cancel bit on this event: the event's associated function will not be invoked when it expires...
virtual void DoDispose(void)
Destructor implementation.
virtual void Stop(const Time &stopTime)
Stops DataCalculator at a given time in the simulation.
virtual void Start(const Time &startTime)
Starts DataCalculator at a given time in the simulation.
EventId m_startEvent
Start event.
std::string GetContext() const
Gets the DataCalculator context.
static EventId Schedule(Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event to expire after delay.
void Enable()
Enables DataCalculator when simulation starts.
bool GetEnabled() const
Returns whether the DataCalculator is enabled.
EventId m_stopEvent
Stop event.
virtual void DoDispose(void)
Destructor implementation.
const double NaN
Stored representation of NaN.
void Disable()
Disables DataCalculator when simulation stops.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual ~DataCalculator()
std::string m_context
Context value.
void SetContext(const std::string context)
Sets the DataCalculator context to the provided context.
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
std::string m_key
Key value.