LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2014 North Carolina State University | 3 * Copyright (c) 2014 North Carolina State University |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 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 | 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 | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Scott E. Carpenter <scarpen@ncsu.edu> | 18 * Author: Scott E. Carpenter <scarpen@ncsu.edu> |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef WAVE_BSM_STATS_H | 22 #ifndef WAVE_BSM_STATS_H |
23 #define WAVE_BSM_STATS_H | 23 #define WAVE_BSM_STATS_H |
24 | 24 |
| 25 #include "ns3/object.h" |
25 #include <vector> | 26 #include <vector> |
26 | 27 |
27 namespace ns3 { | 28 namespace ns3 { |
28 class WaveBsmStats | 29 class WaveBsmStats : public Object |
29 /** | 30 /** |
30 * \ingroup wave | 31 * \ingroup wave |
31 * \brief The WaveBsmStats class implements a stats collector for· | 32 * \brief The WaveBsmStats class implements a stats collector for· |
32 * IEEE 1609 WAVE (Wireless Access in Vehicular Environments)· | 33 * IEEE 1609 WAVE (Wireless Access in Vehicular Environments)· |
33 * Basic Safety Messages (BSMs). The BSM is a ~200-byte packet that is· | 34 * Basic Safety Messages (BSMs). The BSM is a ~200-byte packet that is· |
34 * generally broadcast from every vehicle at a nominal rate of 10 Hz.· | 35 * generally broadcast from every vehicle at a nominal rate of 10 Hz.· |
35 */ | 36 */ |
36 /* | 37 /* |
37 * Note: This class collects data elements and accessors | 38 * Note: This class collects data elements and accessors |
38 * along with methods that calculate metrics from the data· | 39 * along with methods that calculate metrics from the data· |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 int m_waveByteSendCount; | 193 int m_waveByteSendCount; |
193 int m_wavePktReceiveCount; | 194 int m_wavePktReceiveCount; |
194 std::vector <int> m_wavePktInCoverageReceiveCounts; | 195 std::vector <int> m_wavePktInCoverageReceiveCounts; |
195 std::vector <int> m_wavePktExpectedReceiveCounts; | 196 std::vector <int> m_wavePktExpectedReceiveCounts; |
196 int m_log; | 197 int m_log; |
197 }; | 198 }; |
198 | 199 |
199 } // namespace ns3 | 200 } // namespace ns3 |
200 | 201 |
201 #endif /* WAVE_BSM_STATS_H*/ | 202 #endif /* WAVE_BSM_STATS_H*/ |
LEFT | RIGHT |