blob: 0012d2558169178ca28b39d4de49cc54cca762ba [file] [log] [blame]
Alexander Afanasyevad3757f2012-04-17 10:27:59 -07001/* -*- 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_GLOBAL_ROUTING_HELPER_H
22#define CCNX_GLOBAL_ROUTING_HELPER_H
23
24#include "ns3/ptr.h"
25
26namespace ns3 {
27
28class Node;
29class Channel;
30
31class CcnxGlobalRoutingHelper
32{
33public:
34 void
35 Install (Ptr<Node> node);
36
37 void
38 Install (Ptr<Channel> channel);
39
40 void
41 AddOrigin (const std::string &prefix, Ptr<Node> node);
42
43 void
44 AddOrigin (const std::string &prefix, const std::string &nodeName);
45
46 void
47 CalculateRoutes ();
48};
49
50}
51
52#endif // CCNX_GLOBAL_ROUTING_HELPER_H