blob: 3ec4f577a9cda20709d799ac9b559bebf1405f92 [file] [log] [blame]
Alexander Afanasyev042b4a72012-11-09 17:47:48 -08001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2012 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-fib-limits.h"
22#include "per-out-face-limits.h"
23
24#include "ns3/ndn-l3-protocol.h"
Alexander Afanasyevbd9c18e2012-11-19 15:23:41 -080025#include "ns3/ndn-interest.h"
26#include "ns3/ndn-content-object.h"
Alexander Afanasyev042b4a72012-11-09 17:47:48 -080027
28#include "best-route.h"
29#include "flooding.h"
30#include "smart-flooding.h"
31
32namespace ns3 {
33namespace ndn {
34namespace fw {
35
36template class PerFibLimits< PerOutFaceLimits<BestRoute> >;
37typedef PerFibLimits< PerOutFaceLimits<BestRoute> > PerFibLimitsPerOutFaceLimitsBestRoute;
38NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsBestRoute);
39
40template class PerFibLimits< PerOutFaceLimits<Flooding> >;
41typedef PerFibLimits< PerOutFaceLimits<Flooding> > PerFibLimitsPerOutFaceLimitsFlooding;
42NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsFlooding);
43
44template class PerFibLimits< PerOutFaceLimits<SmartFlooding> >;
45typedef PerFibLimits< PerOutFaceLimits<SmartFlooding> > PerFibLimitsPerOutFaceLimitsSmartFlooding;
46NS_OBJECT_ENSURE_REGISTERED (PerFibLimitsPerOutFaceLimitsSmartFlooding);
47
48#ifdef DOXYGEN
49// /**
50// * \brief Strategy implementing per-fib-per-out-face limits on top of BestRoute strategy
51// */
52class BestRoute::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<BestRoute> > { };
53
54/**
55 * \brief Strategy implementing per-fib-per-out-face limits on top of Flooding strategy
56 */
57class Flooding::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<Flooding> > { };
58
59/**
60 * \brief Strategy implementing per-fib-per-out-face limits on top of SmartFlooding strategy
61 */
62class SmartFlooding::PerOutFaceLimits::PerFibLimits : public ::ns3::ndn::fw::PerFibLimits< ::ns3::ndn::fw::PerOutFaceLimits<SmartFlooding> > { };
63
64#endif
65
66} // namespace fw
67} // namespace ndn
68} // namespace ns3