A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
packet-data-calculators.cc
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2008 Drexel University
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: Joe Kopena (tjkopena@cs.drexel.edu)
19  */
20 
21 #include "ns3/log.h"
22 #include "ns3/packet.h"
23 #include "ns3/mac48-address.h"
24 
25 #include "basic-data-calculators.h"
26 #include "packet-data-calculators.h"
27 
28 using namespace ns3;
29 
30 NS_LOG_COMPONENT_DEFINE ("PacketDataCalculators");
31 
32 
33 //--------------------------------------------------------------
34 //----------------------------------------------
35 PacketCounterCalculator::PacketCounterCalculator()
36 {
38 }
39 
40 PacketCounterCalculator::~PacketCounterCalculator()
41 {
43 }
44 void
46 {
48 
50  // PacketCounterCalculator::DoDispose
51 }
52 
53 void
54 PacketCounterCalculator::PacketUpdate (std::string path,
55  Ptr<const Packet> packet)
56 {
58 
60 
61  // PacketCounterCalculator::Update
62 }
63 void
64 PacketCounterCalculator::FrameUpdate (std::string path,
65  Ptr<const Packet> packet,
66  Mac48Address realto)
67 {
69 
71 
72  // PacketCounterCalculator::Update
73 }
74 
75 
76 
77 
78 //--------------------------------------------------------------
79 //----------------------------------------------
80 PacketSizeMinMaxAvgTotalCalculator::PacketSizeMinMaxAvgTotalCalculator()
81 {
83 }
84 
85 PacketSizeMinMaxAvgTotalCalculator::~PacketSizeMinMaxAvgTotalCalculator()
86 {
88 }
89 void
91 {
93 
95  // end PacketSizeMinMaxAvgTotalCalculator::DoDispose
96 }
97 
98 void
99 PacketSizeMinMaxAvgTotalCalculator::PacketUpdate (std::string path,
100  Ptr<const Packet> packet)
101 {
103 
105 
106  // end PacketSizeMinMaxAvgTotalCalculator::Update
107 }
108 void
109 PacketSizeMinMaxAvgTotalCalculator::FrameUpdate (std::string path,
110  Ptr<const Packet> packet,
111  Mac48Address realto)
112 {
114 
116 
117  // end PacketSizeMinMaxAvgTotalCalculator::Update
118 }
#define NS_LOG_COMPONENT_DEFINE(name)
Definition: log.h:122
uint32_t GetSize(void) const
Definition: packet.h:620
#define NS_LOG_FUNCTION_NOARGS()
Definition: log.h:275
an EUI-48 address
Definition: mac48-address.h:41