A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
time-series-adaptor.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 University of Washington
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Mitch Watrous (watrous@u.washington.edu)
19  */
20 
21 #ifndef TIME_SERIES_ADAPTOR_H
22 #define TIME_SERIES_ADAPTOR_H
23 
24 #include "ns3/data-collection-object.h"
25 #include "ns3/object.h"
26 #include "ns3/type-id.h"
27 #include "ns3/traced-value.h"
28 
29 namespace ns3 {
30 
47 {
48 public:
49  static TypeId GetTypeId (void);
50 
52  virtual ~TimeSeriesAdaptor ();
53 
63  void TraceSinkDouble (double oldData, double newData);
64 
74  void TraceSinkBoolean (bool oldData, bool newData);
75 
85  void TraceSinkUinteger8 (uint8_t oldData, uint8_t newData);
86 
96  void TraceSinkUinteger16 (uint16_t oldData, uint16_t newData);
97 
107  void TraceSinkUinteger32 (uint32_t oldData, uint32_t newData);
108 
109 private:
111 };
112 
113 } // namespace ns3
114 
115 #endif // TIME_SERIES_ADAPTOR_H