A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
time-series-adaptor.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013 University of Washington
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 * Author: Mitch Watrous (watrous@u.washington.edu)
18 */
19
20#ifndef TIME_SERIES_ADAPTOR_H
21#define TIME_SERIES_ADAPTOR_H
22
24
25#include "ns3/object.h"
26#include "ns3/traced-value.h"
27#include "ns3/type-id.h"
28
29namespace ns3
30{
31
50{
51 public:
56 static TypeId GetTypeId();
57
59 ~TimeSeriesAdaptor() override;
60
70 void TraceSinkDouble(double oldData, double newData);
71
81 void TraceSinkBoolean(bool oldData, bool newData);
82
92 void TraceSinkUinteger8(uint8_t oldData, uint8_t newData);
93
103 void TraceSinkUinteger16(uint16_t oldData, uint16_t newData);
104
114 void TraceSinkUinteger32(uint32_t oldData, uint32_t newData);
115
122 typedef void (*OutputTracedCallback)(const double now, const double data);
123
124 private:
126};
127
128} // namespace ns3
129
130#endif // TIME_SERIES_ADAPTOR_H
Base class for data collection framework objects.
Takes probed values of different types and outputs the current time plus the value with both converte...
void TraceSinkUinteger8(uint8_t oldData, uint8_t newData)
Trace sink for receiving data from uint8_t valued trace sources.
void TraceSinkDouble(double oldData, double newData)
Trace sink for receiving data from double valued trace sources.
TracedCallback< double, double > m_output
output trace
void TraceSinkBoolean(bool oldData, bool newData)
Trace sink for receiving data from bool valued trace sources.
void(* OutputTracedCallback)(const double now, const double data)
TracedCallback signature for output trace.
void TraceSinkUinteger32(uint32_t oldData, uint32_t newData)
Trace sink for receiving data from uint32_t valued trace sources.
void TraceSinkUinteger16(uint16_t oldData, uint16_t newData)
Trace sink for receiving data from uint16_t valued trace sources.
static TypeId GetTypeId()
Get the type ID.
Forward calls to a chain of Callback.
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t data[writeSize]