Alexander Afanasyev | 042b4a7 | 2012-11-09 17:47:48 -0800 | [diff] [blame] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011 University of California, Los Angeles |
| 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 | #include "per-out-face-limits.h" |
| 22 | |
| 23 | #include "ns3/ndn-l3-protocol.h" |
Alexander Afanasyev | bd9c18e | 2012-11-19 15:23:41 -0800 | [diff] [blame^] | 24 | #include "ns3/ndn-interest.h" |
| 25 | #include "ns3/ndn-content-object.h" |
Alexander Afanasyev | 042b4a7 | 2012-11-09 17:47:48 -0800 | [diff] [blame] | 26 | |
| 27 | #include "best-route.h" |
| 28 | #include "flooding.h" |
| 29 | #include "smart-flooding.h" |
| 30 | |
| 31 | namespace ns3 { |
| 32 | namespace ndn { |
| 33 | namespace fw { |
| 34 | |
| 35 | template class PerOutFaceLimits<BestRoute>; |
| 36 | typedef PerOutFaceLimits<BestRoute> PerOutFaceLimitsBestRoute; |
| 37 | NS_OBJECT_ENSURE_REGISTERED (PerOutFaceLimitsBestRoute); |
| 38 | |
| 39 | template class PerOutFaceLimits<Flooding>; |
| 40 | typedef PerOutFaceLimits<Flooding> PerOutFaceLimitsFlooding; |
| 41 | NS_OBJECT_ENSURE_REGISTERED (PerOutFaceLimitsFlooding); |
| 42 | |
| 43 | template class PerOutFaceLimits<SmartFlooding>; |
| 44 | typedef PerOutFaceLimits<SmartFlooding> PerOutFaceLimitsSmartFlooding; |
| 45 | NS_OBJECT_ENSURE_REGISTERED (PerOutFaceLimitsSmartFlooding); |
| 46 | |
| 47 | #ifdef DOXYGEN |
| 48 | // /** |
| 49 | // * \brief Strategy implementing per-out-face limits on top of BestRoute strategy |
| 50 | // */ |
| 51 | class BestRoute::PerOutFaceLimits : public ::ns3::ndn::fw::PerOutFaceLimits<BestRoute> { }; |
| 52 | |
| 53 | /** |
| 54 | * \brief Strategy implementing per-out-face limits on top of Flooding strategy |
| 55 | */ |
| 56 | class Flooding::PerOutFaceLimits : public ::ns3::ndn::fw::PerOutFaceLimits<Flooding> { }; |
| 57 | |
| 58 | /** |
| 59 | * \brief Strategy implementing per-out-face limits on top of SmartFlooding strategy |
| 60 | */ |
| 61 | class SmartFlooding::PerOutFaceLimits : public ::ns3::ndn::fw::PerOutFaceLimits<SmartFlooding> { }; |
| 62 | #endif |
| 63 | |
| 64 | } // namespace fw |
| 65 | } // namespace ndn |
| 66 | } // namespace ns3 |
| 67 | |