A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
packet-data-calculators.cc
Go to the documentation of this file.
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 "ns3/basic-data-calculators.h"
27 
28 using namespace ns3;
29 
30 NS_LOG_COMPONENT_DEFINE ("PacketDataCalculators");
31 
32 
33 //--------------------------------------------------------------
34 //----------------------------------------------
36 {
38 }
39 
41 {
43 }
44 void
46 {
48 
50  // PacketCounterCalculator::DoDispose
51 }
52 
53 void
55  Ptr<const Packet> packet)
56 {
58 
60 
61  // PacketCounterCalculator::Update
62 }
63 void
65  Ptr<const Packet> packet,
66  Mac48Address realto)
67 {
69 
71 
72  // PacketCounterCalculator::Update
73 }
74 
75 
76 
77 
78 //--------------------------------------------------------------
79 //----------------------------------------------
81 {
83 }
84 
86 {
88 }
89 void
91 {
93 
95  // end PacketSizeMinMaxAvgTotalCalculator::DoDispose
96 }
97 
98 void
100  Ptr<const Packet> packet)
101 {
103 
105 
106  // end PacketSizeMinMaxAvgTotalCalculator::Update
107 }
108 void
110  Ptr<const Packet> packet,
111  Mac48Address realto)
112 {
114 
116 
117  // end PacketSizeMinMaxAvgTotalCalculator::Update
118 }
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
uint32_t GetSize(void) const
Definition: packet.h:650
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
Definition: log.h:309
void PacketUpdate(std::string path, Ptr< const Packet > packet)
Increments the packet stats by the size of the packet.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
void PacketUpdate(std::string path, Ptr< const Packet > packet)
Increments the packet counter by one.
an EUI-48 address
Definition: mac48-address.h:41
void FrameUpdate(std::string path, Ptr< const Packet > packet, Mac48Address realto)
Increments the packet stats by the size of the packet.
void Update(const T i)
Updates all variables of MinMaxAvgTotalCalculator.
void FrameUpdate(std::string path, Ptr< const Packet > packet, Mac48Address realto)
Increments the packet counter by one.
void Update()
Increments count by 1.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...