author | Hajime Tazaki <tazaki@nict.go.jp> |
Tue, 12 Mar 2013 12:03:42 +0900 | |
changeset 0 | 2661206e024b |
permissions | -rw-r--r-- |
0
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
2 |
/* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
3 |
* Copyright (c) 2013 Hajime Tazaki, NICT |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
4 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
8 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
13 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
17 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
18 |
* Author: Hajime Tazaki <tazaki@sfc.wide.ad.jp> |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
19 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
20 |
#ifndef QUAGGA_HELPER_H |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
21 |
#define QUAGGA_HELPER_H |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
22 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
23 |
#include "ns3/dce-manager-helper.h" |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
24 |
#include "ns3/dce-application-helper.h" |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
25 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
26 |
namespace ns3 { |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
27 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
28 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
29 |
* \brief create a sample application daemon as an application and associate it to a node |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
30 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
31 |
* This class creates one or multiple instances of ns3::SampleApplication and associates |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
32 |
* it/them to one/multiple node(s). |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
33 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
34 |
class DceSubModuleHelper |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
35 |
{ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
36 |
public: |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
37 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
38 |
* Create a DceSubModuleHelper which is used to make life easier for people wanting |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
39 |
* to use quagga Applications. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
40 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
41 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
42 |
DceSubModuleHelper (); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
43 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
44 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
45 |
* Install a quagga application on each Node in the provided NodeContainer. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
46 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
47 |
* \param nodes The NodeContainer containing all of the nodes to get a quagga |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
48 |
* application via ProcessManager. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
49 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
50 |
* \returns A list of quagga applications, one for each input node |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
51 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
52 |
ApplicationContainer Install (NodeContainer nodes); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
53 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
54 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
55 |
* Install a quagga application on the provided Node. The Node is specified |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
56 |
* directly by a Ptr<Node> |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
57 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
58 |
* \param node The node to install the DceSubModuleApplication on. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
59 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
60 |
* \returns An ApplicationContainer holding the quagga application created. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
61 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
62 |
ApplicationContainer Install (Ptr<Node> node); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
63 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
64 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
65 |
* Install a quagga application on the provided Node. The Node is specified |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
66 |
* by a string that must have previosly been associated with a Node using the |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
67 |
* Object Name Service. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
68 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
69 |
* \param nodeName The node to install the ProcessApplication on. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
70 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
71 |
* \returns An ApplicationContainer holding the quagga application created. |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
72 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
73 |
ApplicationContainer Install (std::string nodeName); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
74 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
75 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
76 |
* \brief Configure ping applications attribute |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
77 |
* |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
78 |
* \param name attribute's name |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
79 |
* \param value attribute's value |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
80 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
81 |
void SetAttribute (std::string name, const AttributeValue &value); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
82 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
83 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
84 |
private: |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
85 |
/** |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
86 |
* \internal |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
87 |
*/ |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
88 |
ApplicationContainer InstallPriv (Ptr<Node> node); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
89 |
void GenerateConfig (Ptr<Node> node); |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
90 |
}; |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
91 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
92 |
} // namespace ns3 |
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
93 |
|
2661206e024b
initial import for dce submodule
Hajime Tazaki <tazaki@nict.go.jp>
parents:
diff
changeset
|
94 |
#endif /* QUAGGA_HELPER_H */ |