A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
packet-data-calculators.h
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 #ifndef PACKET_DATA_CALCULATORS_H
22 #define PACKET_DATA_CALCULATORS_H
23 
24 #include "ns3/packet.h"
25 #include "ns3/mac48-address.h"
26 
27 #include "data-calculator.h"
28 
29 namespace ns3 {
30 
35 class PacketCounterCalculator : public CounterCalculator<uint32_t> {
36 public:
38  virtual ~PacketCounterCalculator();
39 
40  void PacketUpdate (std::string path, Ptr<const Packet> packet);
41  void FrameUpdate (std::string path, Ptr<const Packet> packet,
42  Mac48Address realto);
43 
44 protected:
45  virtual void DoDispose (void);
46 
47  // end class PacketCounterCalculator
48 };
49 
50 
56  public MinMaxAvgTotalCalculator<uint32_t> {
57 public:
60 
61  void PacketUpdate (std::string path, Ptr<const Packet> packet);
62  void FrameUpdate (std::string path, Ptr<const Packet> packet,
63  Mac48Address realto);
64 
65 protected:
66  virtual void DoDispose (void);
67 
68  // end class PacketSizeMinMaxAvgTotalCalculator
69 };
70 
71 
72 // end namespace ns3
73 };
74 
75 
76 #endif /* PACKET_DATA_CALCULATORS_H */
an EUI-48 address
Definition: mac48-address.h:41