Alexander Afanasyev | b3e4b85 | 2011-12-23 15:58:20 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011 UCLA |
| 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: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
| 21 | #ifndef CCNX_AGGREGATE_L3_TRACER_H |
| 22 | #define CCNX_AGGREGATE_L3_TRACER_H |
| 23 | |
| 24 | #include "ns3/ccnx-l3-tracer.h" |
| 25 | |
| 26 | namespace ns3 { |
| 27 | |
| 28 | class CcnxAggregateL3Tracer : public CcnxL3Tracer |
| 29 | { |
| 30 | public: |
| 31 | CcnxAggregateL3Tracer (Ptr<Node> node); |
| 32 | CcnxAggregateL3Tracer (const std::string &node); |
| 33 | virtual ~CcnxAggregateL3Tracer () { }; |
| 34 | |
| 35 | virtual void |
| 36 | PrintHeader (std::ostream &os) const; |
| 37 | |
| 38 | virtual void |
| 39 | Print (std::ostream &os) const; |
| 40 | |
| 41 | virtual void |
| 42 | OutInterests (std::string context, |
| 43 | Ptr<const CcnxInterestHeader>, Ptr<const CcnxFace>); |
| 44 | |
| 45 | virtual void |
| 46 | InInterests (std::string context, |
| 47 | Ptr<const CcnxInterestHeader>, Ptr<const CcnxFace>); |
| 48 | |
| 49 | virtual void |
| 50 | DropInterests (std::string context, |
| 51 | Ptr<const CcnxInterestHeader>, Ccnx::DropReason, Ptr<const CcnxFace>); |
| 52 | |
| 53 | virtual void |
| 54 | OutNacks (std::string context, |
| 55 | Ptr<const CcnxInterestHeader>, Ptr<const CcnxFace>); |
| 56 | |
| 57 | virtual void |
| 58 | InNacks (std::string context, |
| 59 | Ptr<const CcnxInterestHeader>, Ptr<const CcnxFace>); |
| 60 | |
| 61 | virtual void |
| 62 | DropNacks (std::string context, |
| 63 | Ptr<const CcnxInterestHeader>, Ccnx::DropReason, Ptr<const CcnxFace>); |
| 64 | |
| 65 | virtual void |
| 66 | OutData (std::string context, |
| 67 | Ptr<const CcnxContentObjectHeader>, Ptr<const Packet>, bool fromCache, Ptr<const CcnxFace>); |
| 68 | |
| 69 | virtual void |
| 70 | InData (std::string context, |
| 71 | Ptr<const CcnxContentObjectHeader>, Ptr<const Packet>, Ptr<const CcnxFace>); |
| 72 | |
| 73 | virtual void |
| 74 | DropData (std::string context, |
| 75 | Ptr<const CcnxContentObjectHeader>, Ptr<const Packet>, Ccnx::DropReason, Ptr<const CcnxFace>); |
| 76 | |
| 77 | protected: |
| 78 | void |
| 79 | Reset (); |
| 80 | |
| 81 | protected: |
| 82 | Stats m_packets; |
| 83 | Stats m_bytes; |
| 84 | }; |
| 85 | |
| 86 | } // namespace ns3 |
| 87 | |
| 88 | #endif // CCNX_AGGREGATE_L3_TRACER_H |