blob: f2d591ba0b2e1b4eb6a648be978c9bf7a05efee8 [file] [log] [blame]
Ilya Moiseenko4e473482011-10-31 17:58:14 -07001/* -*- 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: Ilya Moiseenko <iliamo@cs.ucla.edu>
19 */
20
21
22#ifndef CCNX_BESTROUTE_STRATEGY_H
23#define CCNX_BESTROUTE_STRATEGY_H
24
Ilya Moiseenko4e473482011-10-31 17:58:14 -070025#include "ccnx-forwarding-strategy.h"
Ilya Moiseenko4e473482011-10-31 17:58:14 -070026
27namespace ns3
28{
29
30class CcnxFace;
31class CcnxInterestHeader;
32
33/**
34 * \ingroup ccnx
35 * \brief Best route strategy
Alexander Afanasyeva5bbe0e2011-11-22 17:28:39 -080036 *
37 * \todo Describe
Ilya Moiseenko4e473482011-10-31 17:58:14 -070038 */
Ilya Moiseenko4e473482011-10-31 17:58:14 -070039class CcnxBestRouteStrategy : public CcnxForwardingStrategy
40{
41public:
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080042 static TypeId GetTypeId (void);
Alexander Afanasyeva5bbe0e2011-11-22 17:28:39 -080043
44 /**
45 * @brief Default constructor
46 */
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080047 CcnxBestRouteStrategy ();
Ilya Moiseenko4e473482011-10-31 17:58:14 -070048
Alexander Afanasyeva5bbe0e2011-11-22 17:28:39 -080049 // inherited from CcnxForwardingStrategy
Alexander Afanasyev4fa5e842011-11-21 13:38:39 -080050 virtual bool
Alexander Afanasyeva5bbe0e2011-11-22 17:28:39 -080051 PropagateInterest (const CcnxPitEntry &pitEntry,
52 const Ptr<CcnxFace> &incomingFace,
53 Ptr<CcnxInterestHeader> &header,
Alexander Afanasyev09c7deb2011-11-23 14:50:10 -080054 const Ptr<const Packet> &packet);
Ilya Moiseenko4e473482011-10-31 17:58:14 -070055};
56
57} //namespace ns3
58
59#endif /* CCNX_BESTROUTE_STRATEGY_H */