A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
probe.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Bucknell University
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Authors: L. Felipe Perrone (perrone@bucknell.edu)
18
* Tiago G. Rodrigues (tgr002@bucknell.edu)
19
*/
20
21
#ifndef PROBE_H
22
#define PROBE_H
23
24
#include "ns3/data-collection-object.h"
25
#include "ns3/nstime.h"
26
27
namespace
ns3
28
{
29
39
class
Probe
:
public
DataCollectionObject
40
{
41
public
:
46
static
TypeId
GetTypeId
();
47
Probe
();
48
~Probe
()
override
;
49
53
bool
IsEnabled
()
const override
;
54
62
virtual
bool
ConnectByObject
(std::string traceSource,
Ptr<Object>
obj) = 0;
63
72
virtual
void
ConnectByPath
(std::string path) = 0;
73
74
protected
:
76
Time
m_start
;
77
79
Time
m_stop
;
80
};
81
82
}
// namespace ns3
83
84
#endif
// PROBE_H
ns3::DataCollectionObject
Base class for data collection framework objects.
Definition:
data-collection-object.h:39
ns3::Probe
Base class for probes.
Definition:
probe.h:40
ns3::Probe::m_start
Time m_start
Time when logging starts.
Definition:
probe.h:76
ns3::Probe::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
probe.cc:35
ns3::Probe::IsEnabled
bool IsEnabled() const override
Definition:
probe.cc:65
ns3::Probe::ConnectByObject
virtual bool ConnectByObject(std::string traceSource, Ptr< Object > obj)=0
connect to a trace source attribute provided by a given object
ns3::Probe::m_stop
Time m_stop
Time when logging stops.
Definition:
probe.h:79
ns3::Probe::~Probe
~Probe() override
Definition:
probe.cc:59
ns3::Probe::ConnectByPath
virtual void ConnectByPath(std::string path)=0
connect to a trace source provided by a config path
ns3::Probe::Probe
Probe()
Definition:
probe.cc:54
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
stats
model
probe.h
Generated on Sun Jul 2 2023 18:22:04 for ns-3 by
1.9.6