A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
probe.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Bucknell University
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: L. Felipe Perrone (perrone@bucknell.edu)
7 * Tiago G. Rodrigues (tgr002@bucknell.edu)
8 */
9
10#include "probe.h"
11
12#include "ns3/log.h"
13#include "ns3/object.h"
14#include "ns3/simulator.h"
15
16namespace ns3
17{
18
20
22
23TypeId
25{
26 static TypeId tid = TypeId("ns3::Probe")
28 .SetGroupName("Stats")
29 .AddAttribute("Start",
30 "Time data collection starts",
34 .AddAttribute("Stop",
35 "Time when data collection stops. The special time "
36 "value of 0 disables this attribute",
40 return tid;
41}
42
44{
45 NS_LOG_FUNCTION(this);
46}
47
49{
50 NS_LOG_FUNCTION(this);
51}
52
53bool
59
60} // namespace ns3
Base class for data collection framework objects.
virtual bool IsEnabled() const
Check the status of an individual object.
Time m_start
Time when logging starts.
Definition probe.h:66
static TypeId GetTypeId()
Get the type ID.
Definition probe.cc:24
bool IsEnabled() const override
Definition probe.cc:54
Time m_stop
Time when logging stops.
Definition probe.h:69
~Probe() override
Definition probe.cc:48
static Time Now()
Return the current simulation virtual time.
Definition simulator.cc:197
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition nstime.h:1308
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Definition nstime.h:1396
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Definition nstime.h:1416