author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Sat, 12 Mar 2011 18:34:30 +0000 | |
changeset 6893 | 5dccd86f90cf |
parent 6882 | 20221fbd189e |
child 6894 | 0c7a09810b07 |
permissions | -rw-r--r-- |
6534 | 1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers |
2 |
||
3 |
||
4 |
import pybindgen.settings |
|
5 |
import warnings |
|
6 |
||
7 |
class ErrorHandler(pybindgen.settings.ErrorHandler): |
|
8 |
def handle_error(self, wrapper, exception, traceback_): |
|
9 |
warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) |
|
10 |
return True |
|
11 |
pybindgen.settings.error_handler = ErrorHandler() |
|
12 |
||
13 |
||
14 |
import sys |
|
15 |
import ns3_module_core |
|
6824 | 16 |
import ns3_module_network |
6534 | 17 |
import ns3_module_test |
6677
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
18 |
import ns3_module_visualizer |
6534 | 19 |
import ns3_module_bridge |
6824 | 20 |
import ns3_module_contrib |
6534 | 21 |
import ns3_module_emu |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
22 |
import ns3_module_mobility |
6835 | 23 |
import ns3_module_mpi |
6534 | 24 |
import ns3_module_stats |
25 |
import ns3_module_topology_read |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
26 |
import ns3_module_propagation |
6835 | 27 |
import ns3_module_internet |
28 |
import ns3_module_point_to_point |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
29 |
import ns3_module_wifi |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
30 |
import ns3_module_applications |
6825
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
31 |
import ns3_module_click |
6534 | 32 |
import ns3_module_flow_monitor |
33 |
import ns3_module_nix_vector_routing |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
34 |
import ns3_module_tap_bridge |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
35 |
import ns3_module_virtual_net_device |
6867 | 36 |
import ns3_module_netanim |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
37 |
import ns3_module_energy |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
38 |
import ns3_module_mesh |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
39 |
import ns3_module_ns3wifi |
6867 | 40 |
import ns3_module_spectrum |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
41 |
import ns3_module_csma |
6799
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
42 |
import ns3_module_uan |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
43 |
import ns3_module_aodv |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
44 |
import ns3_module_dsdv |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
45 |
import ns3_module_wimax |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
46 |
import ns3_module_ns3tcp |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
47 |
import ns3_module_olsr |
6867 | 48 |
import ns3_module_lte |
6534 | 49 |
|
50 |
def module_init(): |
|
51 |
root_module = Module('ns3', cpp_namespace='::ns3') |
|
52 |
return root_module |
|
53 |
||
54 |
def register_types(module): |
|
55 |
root_module = module.get_root() |
|
56 |
||
57 |
root_module.begin_section('ns3_module_core') |
|
58 |
ns3_module_core.register_types(module) |
|
59 |
||
60 |
try: |
|
61 |
import ns3_module_core__local |
|
62 |
except ImportError: |
|
63 |
pass |
|
64 |
else: |
|
65 |
ns3_module_core__local.register_types(module) |
|
66 |
||
67 |
root_module.end_section('ns3_module_core') |
|
6824 | 68 |
root_module.begin_section('ns3_module_network') |
69 |
ns3_module_network.register_types(module) |
|
70 |
||
71 |
try: |
|
72 |
import ns3_module_network__local |
|
73 |
except ImportError: |
|
74 |
pass |
|
75 |
else: |
|
76 |
ns3_module_network__local.register_types(module) |
|
77 |
||
78 |
root_module.end_section('ns3_module_network') |
|
6534 | 79 |
root_module.begin_section('ns3_module_test') |
80 |
ns3_module_test.register_types(module) |
|
81 |
||
82 |
try: |
|
83 |
import ns3_module_test__local |
|
84 |
except ImportError: |
|
85 |
pass |
|
86 |
else: |
|
87 |
ns3_module_test__local.register_types(module) |
|
88 |
||
89 |
root_module.end_section('ns3_module_test') |
|
6677
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
90 |
root_module.begin_section('ns3_module_visualizer') |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
91 |
ns3_module_visualizer.register_types(module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
92 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
93 |
try: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
94 |
import ns3_module_visualizer__local |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
95 |
except ImportError: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
96 |
pass |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
97 |
else: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
98 |
ns3_module_visualizer__local.register_types(module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
99 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
100 |
root_module.end_section('ns3_module_visualizer') |
6534 | 101 |
root_module.begin_section('ns3_module_bridge') |
102 |
ns3_module_bridge.register_types(module) |
|
103 |
||
104 |
try: |
|
105 |
import ns3_module_bridge__local |
|
106 |
except ImportError: |
|
107 |
pass |
|
108 |
else: |
|
109 |
ns3_module_bridge__local.register_types(module) |
|
110 |
||
111 |
root_module.end_section('ns3_module_bridge') |
|
6824 | 112 |
root_module.begin_section('ns3_module_contrib') |
113 |
ns3_module_contrib.register_types(module) |
|
114 |
||
115 |
try: |
|
116 |
import ns3_module_contrib__local |
|
117 |
except ImportError: |
|
118 |
pass |
|
119 |
else: |
|
120 |
ns3_module_contrib__local.register_types(module) |
|
121 |
||
122 |
root_module.end_section('ns3_module_contrib') |
|
6534 | 123 |
root_module.begin_section('ns3_module_emu') |
124 |
ns3_module_emu.register_types(module) |
|
125 |
||
126 |
try: |
|
127 |
import ns3_module_emu__local |
|
128 |
except ImportError: |
|
129 |
pass |
|
130 |
else: |
|
131 |
ns3_module_emu__local.register_types(module) |
|
132 |
||
133 |
root_module.end_section('ns3_module_emu') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
134 |
root_module.begin_section('ns3_module_mobility') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
135 |
ns3_module_mobility.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
136 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
137 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
138 |
import ns3_module_mobility__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
139 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
140 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
141 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
142 |
ns3_module_mobility__local.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
143 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
144 |
root_module.end_section('ns3_module_mobility') |
6835 | 145 |
root_module.begin_section('ns3_module_mpi') |
146 |
ns3_module_mpi.register_types(module) |
|
6534 | 147 |
|
148 |
try: |
|
6835 | 149 |
import ns3_module_mpi__local |
6534 | 150 |
except ImportError: |
151 |
pass |
|
152 |
else: |
|
6835 | 153 |
ns3_module_mpi__local.register_types(module) |
6534 | 154 |
|
6835 | 155 |
root_module.end_section('ns3_module_mpi') |
6534 | 156 |
root_module.begin_section('ns3_module_stats') |
157 |
ns3_module_stats.register_types(module) |
|
158 |
||
159 |
try: |
|
160 |
import ns3_module_stats__local |
|
161 |
except ImportError: |
|
162 |
pass |
|
163 |
else: |
|
164 |
ns3_module_stats__local.register_types(module) |
|
165 |
||
166 |
root_module.end_section('ns3_module_stats') |
|
167 |
root_module.begin_section('ns3_module_topology_read') |
|
168 |
ns3_module_topology_read.register_types(module) |
|
169 |
||
170 |
try: |
|
171 |
import ns3_module_topology_read__local |
|
172 |
except ImportError: |
|
173 |
pass |
|
174 |
else: |
|
175 |
ns3_module_topology_read__local.register_types(module) |
|
176 |
||
177 |
root_module.end_section('ns3_module_topology_read') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
178 |
root_module.begin_section('ns3_module_propagation') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
179 |
ns3_module_propagation.register_types(module) |
6534 | 180 |
|
181 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
182 |
import ns3_module_propagation__local |
6534 | 183 |
except ImportError: |
184 |
pass |
|
185 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
186 |
ns3_module_propagation__local.register_types(module) |
6534 | 187 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
188 |
root_module.end_section('ns3_module_propagation') |
6835 | 189 |
root_module.begin_section('ns3_module_internet') |
190 |
ns3_module_internet.register_types(module) |
|
191 |
||
192 |
try: |
|
193 |
import ns3_module_internet__local |
|
194 |
except ImportError: |
|
195 |
pass |
|
196 |
else: |
|
197 |
ns3_module_internet__local.register_types(module) |
|
198 |
||
199 |
root_module.end_section('ns3_module_internet') |
|
200 |
root_module.begin_section('ns3_module_point_to_point') |
|
201 |
ns3_module_point_to_point.register_types(module) |
|
202 |
||
203 |
try: |
|
204 |
import ns3_module_point_to_point__local |
|
205 |
except ImportError: |
|
206 |
pass |
|
207 |
else: |
|
208 |
ns3_module_point_to_point__local.register_types(module) |
|
209 |
||
210 |
root_module.end_section('ns3_module_point_to_point') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
211 |
root_module.begin_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
212 |
ns3_module_wifi.register_types(module) |
6835 | 213 |
|
214 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
215 |
import ns3_module_wifi__local |
6835 | 216 |
except ImportError: |
217 |
pass |
|
218 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
219 |
ns3_module_wifi__local.register_types(module) |
6835 | 220 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
221 |
root_module.end_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
222 |
root_module.begin_section('ns3_module_applications') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
223 |
ns3_module_applications.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
224 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
225 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
226 |
import ns3_module_applications__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
227 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
228 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
229 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
230 |
ns3_module_applications__local.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
231 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
232 |
root_module.end_section('ns3_module_applications') |
6825
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
233 |
root_module.begin_section('ns3_module_click') |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
234 |
ns3_module_click.register_types(module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
235 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
236 |
try: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
237 |
import ns3_module_click__local |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
238 |
except ImportError: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
239 |
pass |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
240 |
else: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
241 |
ns3_module_click__local.register_types(module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
242 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
243 |
root_module.end_section('ns3_module_click') |
6534 | 244 |
root_module.begin_section('ns3_module_flow_monitor') |
245 |
ns3_module_flow_monitor.register_types(module) |
|
246 |
||
247 |
try: |
|
248 |
import ns3_module_flow_monitor__local |
|
249 |
except ImportError: |
|
250 |
pass |
|
251 |
else: |
|
252 |
ns3_module_flow_monitor__local.register_types(module) |
|
253 |
||
254 |
root_module.end_section('ns3_module_flow_monitor') |
|
255 |
root_module.begin_section('ns3_module_nix_vector_routing') |
|
256 |
ns3_module_nix_vector_routing.register_types(module) |
|
257 |
||
258 |
try: |
|
259 |
import ns3_module_nix_vector_routing__local |
|
260 |
except ImportError: |
|
261 |
pass |
|
262 |
else: |
|
263 |
ns3_module_nix_vector_routing__local.register_types(module) |
|
264 |
||
265 |
root_module.end_section('ns3_module_nix_vector_routing') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
266 |
root_module.begin_section('ns3_module_tap_bridge') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
267 |
ns3_module_tap_bridge.register_types(module) |
6534 | 268 |
|
269 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
270 |
import ns3_module_tap_bridge__local |
6534 | 271 |
except ImportError: |
272 |
pass |
|
273 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
274 |
ns3_module_tap_bridge__local.register_types(module) |
6534 | 275 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
276 |
root_module.end_section('ns3_module_tap_bridge') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
277 |
root_module.begin_section('ns3_module_virtual_net_device') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
278 |
ns3_module_virtual_net_device.register_types(module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
279 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
280 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
281 |
import ns3_module_virtual_net_device__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
282 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
283 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
284 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
285 |
ns3_module_virtual_net_device__local.register_types(module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
286 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
287 |
root_module.end_section('ns3_module_virtual_net_device') |
6867 | 288 |
root_module.begin_section('ns3_module_netanim') |
289 |
ns3_module_netanim.register_types(module) |
|
6806 | 290 |
|
291 |
try: |
|
6867 | 292 |
import ns3_module_netanim__local |
6806 | 293 |
except ImportError: |
294 |
pass |
|
295 |
else: |
|
6867 | 296 |
ns3_module_netanim__local.register_types(module) |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
297 |
|
6867 | 298 |
root_module.end_section('ns3_module_netanim') |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
299 |
root_module.begin_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
300 |
ns3_module_energy.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
301 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
302 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
303 |
import ns3_module_energy__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
304 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
305 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
306 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
307 |
ns3_module_energy__local.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
308 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
309 |
root_module.end_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
310 |
root_module.begin_section('ns3_module_mesh') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
311 |
ns3_module_mesh.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
312 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
313 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
314 |
import ns3_module_mesh__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
315 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
316 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
317 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
318 |
ns3_module_mesh__local.register_types(module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
319 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
320 |
root_module.end_section('ns3_module_mesh') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
321 |
root_module.begin_section('ns3_module_ns3wifi') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
322 |
ns3_module_ns3wifi.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
323 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
324 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
325 |
import ns3_module_ns3wifi__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
326 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
327 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
328 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
329 |
ns3_module_ns3wifi__local.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
330 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
331 |
root_module.end_section('ns3_module_ns3wifi') |
6867 | 332 |
root_module.begin_section('ns3_module_spectrum') |
333 |
ns3_module_spectrum.register_types(module) |
|
334 |
||
335 |
try: |
|
336 |
import ns3_module_spectrum__local |
|
337 |
except ImportError: |
|
338 |
pass |
|
339 |
else: |
|
340 |
ns3_module_spectrum__local.register_types(module) |
|
341 |
||
342 |
root_module.end_section('ns3_module_spectrum') |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
343 |
root_module.begin_section('ns3_module_csma') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
344 |
ns3_module_csma.register_types(module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
345 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
346 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
347 |
import ns3_module_csma__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
348 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
349 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
350 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
351 |
ns3_module_csma__local.register_types(module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
352 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
353 |
root_module.end_section('ns3_module_csma') |
6799
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
354 |
root_module.begin_section('ns3_module_uan') |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
355 |
ns3_module_uan.register_types(module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
356 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
357 |
try: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
358 |
import ns3_module_uan__local |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
359 |
except ImportError: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
360 |
pass |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
361 |
else: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
362 |
ns3_module_uan__local.register_types(module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
363 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
364 |
root_module.end_section('ns3_module_uan') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
365 |
root_module.begin_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
366 |
ns3_module_aodv.register_types(module) |
6534 | 367 |
|
368 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
369 |
import ns3_module_aodv__local |
6534 | 370 |
except ImportError: |
371 |
pass |
|
372 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
373 |
ns3_module_aodv__local.register_types(module) |
6534 | 374 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
375 |
root_module.end_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
376 |
root_module.begin_section('ns3_module_dsdv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
377 |
ns3_module_dsdv.register_types(module) |
6534 | 378 |
|
379 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
380 |
import ns3_module_dsdv__local |
6534 | 381 |
except ImportError: |
382 |
pass |
|
383 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
384 |
ns3_module_dsdv__local.register_types(module) |
6534 | 385 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
386 |
root_module.end_section('ns3_module_dsdv') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
387 |
root_module.begin_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
388 |
ns3_module_wimax.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
389 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
390 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
391 |
import ns3_module_wimax__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
392 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
393 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
394 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
395 |
ns3_module_wimax__local.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
396 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
397 |
root_module.end_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
398 |
root_module.begin_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
399 |
ns3_module_ns3tcp.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
400 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
401 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
402 |
import ns3_module_ns3tcp__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
403 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
404 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
405 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
406 |
ns3_module_ns3tcp__local.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
407 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
408 |
root_module.end_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
409 |
root_module.begin_section('ns3_module_olsr') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
410 |
ns3_module_olsr.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
411 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
412 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
413 |
import ns3_module_olsr__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
414 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
415 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
416 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
417 |
ns3_module_olsr__local.register_types(module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
418 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
419 |
root_module.end_section('ns3_module_olsr') |
6867 | 420 |
root_module.begin_section('ns3_module_lte') |
421 |
ns3_module_lte.register_types(module) |
|
422 |
||
423 |
try: |
|
424 |
import ns3_module_lte__local |
|
425 |
except ImportError: |
|
426 |
pass |
|
427 |
else: |
|
428 |
ns3_module_lte__local.register_types(module) |
|
429 |
||
430 |
root_module.end_section('ns3_module_lte') |
|
6534 | 431 |
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector') |
432 |
module.add_container('std::vector< bool >', 'bool', container_type='vector') |
|
6716 | 433 |
module.add_container('std::vector< int >', 'int', container_type='vector') |
6677
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
434 |
module.add_container('std::vector< std::string >', 'std::string', container_type='vector') |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
435 |
module.add_container('std::set< unsigned int >', 'unsigned int', container_type='set') |
6534 | 436 |
module.add_container('std::list< std::pair< ns3::Ptr< ns3::Packet >, ns3::UanAddress > >', 'std::pair< ns3::Ptr< ns3::Packet >, ns3::UanAddress >', container_type='list') |
437 |
module.add_container('std::vector< ns3::ServiceFlow * >', 'ns3::ServiceFlow *', container_type='vector') |
|
438 |
module.add_container('std::vector< std::complex< double > >', 'std::complex< double >', container_type='vector') |
|
439 |
module.add_container('std::vector< double >', 'double', container_type='vector') |
|
440 |
module.add_container('ns3::bvec', 'bool', container_type='vector') |
|
441 |
module.add_container('std::vector< ns3::SSRecord * >', 'ns3::SSRecord *', container_type='vector') |
|
442 |
module.add_container('std::map< std::string, std::string >', ('std::string', 'std::string'), container_type='map') |
|
443 |
module.add_container('std::set< unsigned char >', 'unsigned char', container_type='set') |
|
444 |
module.add_container('std::list< std::pair< ns3::OfdmDlMapIe *, ns3::Ptr< ns3::PacketBurst > > >', 'std::pair< ns3::OfdmDlMapIe *, ns3::Ptr< ns3::PacketBurst > >', container_type='list') |
|
445 |
module.add_container('std::vector< unsigned long long >', 'long long unsigned int', container_type='vector') |
|
6716 | 446 |
module.add_container('std::vector< std::vector< double > >', 'std::vector< double >', container_type='vector') |
6534 | 447 |
module.add_container('std::list< unsigned int >', 'unsigned int', container_type='list') |
448 |
module.add_container('std::list< std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader > >', 'std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader >', container_type='list') |
|
449 |
module.add_container('std::vector< std::pair< ns3::Ptr< ns3::UanNetDevice >, ns3::Ptr< ns3::UanTransducer > > >', 'std::pair< ns3::Ptr< ns3::UanNetDevice >, ns3::Ptr< ns3::UanTransducer > >', container_type='vector') |
|
450 |
||
451 |
## Register a nested module for the namespace Config |
|
452 |
||
453 |
nested_module = module.add_cpp_namespace('Config') |
|
454 |
register_types_ns3_Config(nested_module) |
|
455 |
||
456 |
||
457 |
## Register a nested module for the namespace FatalImpl |
|
458 |
||
459 |
nested_module = module.add_cpp_namespace('FatalImpl') |
|
460 |
register_types_ns3_FatalImpl(nested_module) |
|
461 |
||
462 |
||
463 |
## Register a nested module for the namespace addressUtils |
|
464 |
||
465 |
nested_module = module.add_cpp_namespace('addressUtils') |
|
466 |
register_types_ns3_addressUtils(nested_module) |
|
467 |
||
468 |
||
469 |
## Register a nested module for the namespace aodv |
|
470 |
||
471 |
nested_module = module.add_cpp_namespace('aodv') |
|
472 |
register_types_ns3_aodv(nested_module) |
|
473 |
||
474 |
||
475 |
## Register a nested module for the namespace dot11s |
|
476 |
||
477 |
nested_module = module.add_cpp_namespace('dot11s') |
|
478 |
register_types_ns3_dot11s(nested_module) |
|
479 |
||
480 |
||
6718 | 481 |
## Register a nested module for the namespace dsdv |
482 |
||
483 |
nested_module = module.add_cpp_namespace('dsdv') |
|
484 |
register_types_ns3_dsdv(nested_module) |
|
485 |
||
486 |
||
6534 | 487 |
## Register a nested module for the namespace flame |
488 |
||
489 |
nested_module = module.add_cpp_namespace('flame') |
|
490 |
register_types_ns3_flame(nested_module) |
|
491 |
||
492 |
||
493 |
## Register a nested module for the namespace internal |
|
494 |
||
495 |
nested_module = module.add_cpp_namespace('internal') |
|
496 |
register_types_ns3_internal(nested_module) |
|
497 |
||
498 |
||
499 |
## Register a nested module for the namespace olsr |
|
500 |
||
501 |
nested_module = module.add_cpp_namespace('olsr') |
|
502 |
register_types_ns3_olsr(nested_module) |
|
503 |
||
504 |
||
505 |
def register_types_ns3_Config(module): |
|
506 |
root_module = module.get_root() |
|
507 |
||
508 |
||
509 |
def register_types_ns3_FatalImpl(module): |
|
510 |
root_module = module.get_root() |
|
511 |
||
512 |
||
513 |
def register_types_ns3_addressUtils(module): |
|
514 |
root_module = module.get_root() |
|
515 |
||
516 |
||
517 |
def register_types_ns3_aodv(module): |
|
518 |
root_module = module.get_root() |
|
519 |
||
520 |
module.add_container('std::map< ns3::Ipv4Address, unsigned int >', ('ns3::Ipv4Address', 'unsigned int'), container_type='map') |
|
521 |
||
522 |
def register_types_ns3_dot11s(module): |
|
523 |
root_module = module.get_root() |
|
524 |
||
6867 | 525 |
module.add_container('std::vector< std::pair< unsigned int, ns3::Mac48Address > >', 'std::pair< unsigned int, ns3::Mac48Address >', container_type='vector') |
6534 | 526 |
|
6718 | 527 |
def register_types_ns3_dsdv(module): |
528 |
root_module = module.get_root() |
|
529 |
||
530 |
||
6534 | 531 |
def register_types_ns3_flame(module): |
532 |
root_module = module.get_root() |
|
533 |
||
534 |
||
535 |
def register_types_ns3_internal(module): |
|
536 |
root_module = module.get_root() |
|
537 |
||
538 |
||
539 |
def register_types_ns3_olsr(module): |
|
540 |
root_module = module.get_root() |
|
541 |
||
542 |
||
543 |
def register_methods(root_module): |
|
544 |
root_module.begin_section('ns3_module_core') |
|
545 |
ns3_module_core.register_methods(root_module) |
|
546 |
||
547 |
try: |
|
548 |
import ns3_module_core__local |
|
549 |
except ImportError: |
|
550 |
pass |
|
551 |
else: |
|
552 |
ns3_module_core__local.register_methods(root_module) |
|
553 |
||
554 |
root_module.end_section('ns3_module_core') |
|
6824 | 555 |
root_module.begin_section('ns3_module_network') |
556 |
ns3_module_network.register_methods(root_module) |
|
557 |
||
558 |
try: |
|
559 |
import ns3_module_network__local |
|
560 |
except ImportError: |
|
561 |
pass |
|
562 |
else: |
|
563 |
ns3_module_network__local.register_methods(root_module) |
|
564 |
||
565 |
root_module.end_section('ns3_module_network') |
|
6534 | 566 |
root_module.begin_section('ns3_module_test') |
567 |
ns3_module_test.register_methods(root_module) |
|
568 |
||
569 |
try: |
|
570 |
import ns3_module_test__local |
|
571 |
except ImportError: |
|
572 |
pass |
|
573 |
else: |
|
574 |
ns3_module_test__local.register_methods(root_module) |
|
575 |
||
576 |
root_module.end_section('ns3_module_test') |
|
6677
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
577 |
root_module.begin_section('ns3_module_visualizer') |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
578 |
ns3_module_visualizer.register_methods(root_module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
579 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
580 |
try: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
581 |
import ns3_module_visualizer__local |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
582 |
except ImportError: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
583 |
pass |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
584 |
else: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
585 |
ns3_module_visualizer__local.register_methods(root_module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
586 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
587 |
root_module.end_section('ns3_module_visualizer') |
6534 | 588 |
root_module.begin_section('ns3_module_bridge') |
589 |
ns3_module_bridge.register_methods(root_module) |
|
590 |
||
591 |
try: |
|
592 |
import ns3_module_bridge__local |
|
593 |
except ImportError: |
|
594 |
pass |
|
595 |
else: |
|
596 |
ns3_module_bridge__local.register_methods(root_module) |
|
597 |
||
598 |
root_module.end_section('ns3_module_bridge') |
|
6824 | 599 |
root_module.begin_section('ns3_module_contrib') |
600 |
ns3_module_contrib.register_methods(root_module) |
|
601 |
||
602 |
try: |
|
603 |
import ns3_module_contrib__local |
|
604 |
except ImportError: |
|
605 |
pass |
|
606 |
else: |
|
607 |
ns3_module_contrib__local.register_methods(root_module) |
|
608 |
||
609 |
root_module.end_section('ns3_module_contrib') |
|
6534 | 610 |
root_module.begin_section('ns3_module_emu') |
611 |
ns3_module_emu.register_methods(root_module) |
|
612 |
||
613 |
try: |
|
614 |
import ns3_module_emu__local |
|
615 |
except ImportError: |
|
616 |
pass |
|
617 |
else: |
|
618 |
ns3_module_emu__local.register_methods(root_module) |
|
619 |
||
620 |
root_module.end_section('ns3_module_emu') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
621 |
root_module.begin_section('ns3_module_mobility') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
622 |
ns3_module_mobility.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
623 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
624 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
625 |
import ns3_module_mobility__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
626 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
627 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
628 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
629 |
ns3_module_mobility__local.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
630 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
631 |
root_module.end_section('ns3_module_mobility') |
6835 | 632 |
root_module.begin_section('ns3_module_mpi') |
633 |
ns3_module_mpi.register_methods(root_module) |
|
6534 | 634 |
|
635 |
try: |
|
6835 | 636 |
import ns3_module_mpi__local |
6534 | 637 |
except ImportError: |
638 |
pass |
|
639 |
else: |
|
6835 | 640 |
ns3_module_mpi__local.register_methods(root_module) |
6534 | 641 |
|
6835 | 642 |
root_module.end_section('ns3_module_mpi') |
6534 | 643 |
root_module.begin_section('ns3_module_stats') |
644 |
ns3_module_stats.register_methods(root_module) |
|
645 |
||
646 |
try: |
|
647 |
import ns3_module_stats__local |
|
648 |
except ImportError: |
|
649 |
pass |
|
650 |
else: |
|
651 |
ns3_module_stats__local.register_methods(root_module) |
|
652 |
||
653 |
root_module.end_section('ns3_module_stats') |
|
654 |
root_module.begin_section('ns3_module_topology_read') |
|
655 |
ns3_module_topology_read.register_methods(root_module) |
|
656 |
||
657 |
try: |
|
658 |
import ns3_module_topology_read__local |
|
659 |
except ImportError: |
|
660 |
pass |
|
661 |
else: |
|
662 |
ns3_module_topology_read__local.register_methods(root_module) |
|
663 |
||
664 |
root_module.end_section('ns3_module_topology_read') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
665 |
root_module.begin_section('ns3_module_propagation') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
666 |
ns3_module_propagation.register_methods(root_module) |
6534 | 667 |
|
668 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
669 |
import ns3_module_propagation__local |
6534 | 670 |
except ImportError: |
671 |
pass |
|
672 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
673 |
ns3_module_propagation__local.register_methods(root_module) |
6534 | 674 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
675 |
root_module.end_section('ns3_module_propagation') |
6835 | 676 |
root_module.begin_section('ns3_module_internet') |
677 |
ns3_module_internet.register_methods(root_module) |
|
678 |
||
679 |
try: |
|
680 |
import ns3_module_internet__local |
|
681 |
except ImportError: |
|
682 |
pass |
|
683 |
else: |
|
684 |
ns3_module_internet__local.register_methods(root_module) |
|
685 |
||
686 |
root_module.end_section('ns3_module_internet') |
|
687 |
root_module.begin_section('ns3_module_point_to_point') |
|
688 |
ns3_module_point_to_point.register_methods(root_module) |
|
689 |
||
690 |
try: |
|
691 |
import ns3_module_point_to_point__local |
|
692 |
except ImportError: |
|
693 |
pass |
|
694 |
else: |
|
695 |
ns3_module_point_to_point__local.register_methods(root_module) |
|
696 |
||
697 |
root_module.end_section('ns3_module_point_to_point') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
698 |
root_module.begin_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
699 |
ns3_module_wifi.register_methods(root_module) |
6835 | 700 |
|
701 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
702 |
import ns3_module_wifi__local |
6835 | 703 |
except ImportError: |
704 |
pass |
|
705 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
706 |
ns3_module_wifi__local.register_methods(root_module) |
6835 | 707 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
708 |
root_module.end_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
709 |
root_module.begin_section('ns3_module_applications') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
710 |
ns3_module_applications.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
711 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
712 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
713 |
import ns3_module_applications__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
714 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
715 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
716 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
717 |
ns3_module_applications__local.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
718 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
719 |
root_module.end_section('ns3_module_applications') |
6825
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
720 |
root_module.begin_section('ns3_module_click') |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
721 |
ns3_module_click.register_methods(root_module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
722 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
723 |
try: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
724 |
import ns3_module_click__local |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
725 |
except ImportError: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
726 |
pass |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
727 |
else: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
728 |
ns3_module_click__local.register_methods(root_module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
729 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
730 |
root_module.end_section('ns3_module_click') |
6534 | 731 |
root_module.begin_section('ns3_module_flow_monitor') |
732 |
ns3_module_flow_monitor.register_methods(root_module) |
|
733 |
||
734 |
try: |
|
735 |
import ns3_module_flow_monitor__local |
|
736 |
except ImportError: |
|
737 |
pass |
|
738 |
else: |
|
739 |
ns3_module_flow_monitor__local.register_methods(root_module) |
|
740 |
||
741 |
root_module.end_section('ns3_module_flow_monitor') |
|
742 |
root_module.begin_section('ns3_module_nix_vector_routing') |
|
743 |
ns3_module_nix_vector_routing.register_methods(root_module) |
|
744 |
||
745 |
try: |
|
746 |
import ns3_module_nix_vector_routing__local |
|
747 |
except ImportError: |
|
748 |
pass |
|
749 |
else: |
|
750 |
ns3_module_nix_vector_routing__local.register_methods(root_module) |
|
751 |
||
752 |
root_module.end_section('ns3_module_nix_vector_routing') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
753 |
root_module.begin_section('ns3_module_tap_bridge') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
754 |
ns3_module_tap_bridge.register_methods(root_module) |
6534 | 755 |
|
756 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
757 |
import ns3_module_tap_bridge__local |
6534 | 758 |
except ImportError: |
759 |
pass |
|
760 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
761 |
ns3_module_tap_bridge__local.register_methods(root_module) |
6534 | 762 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
763 |
root_module.end_section('ns3_module_tap_bridge') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
764 |
root_module.begin_section('ns3_module_virtual_net_device') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
765 |
ns3_module_virtual_net_device.register_methods(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
766 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
767 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
768 |
import ns3_module_virtual_net_device__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
769 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
770 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
771 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
772 |
ns3_module_virtual_net_device__local.register_methods(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
773 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
774 |
root_module.end_section('ns3_module_virtual_net_device') |
6867 | 775 |
root_module.begin_section('ns3_module_netanim') |
776 |
ns3_module_netanim.register_methods(root_module) |
|
6806 | 777 |
|
778 |
try: |
|
6867 | 779 |
import ns3_module_netanim__local |
6806 | 780 |
except ImportError: |
781 |
pass |
|
782 |
else: |
|
6867 | 783 |
ns3_module_netanim__local.register_methods(root_module) |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
784 |
|
6867 | 785 |
root_module.end_section('ns3_module_netanim') |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
786 |
root_module.begin_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
787 |
ns3_module_energy.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
788 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
789 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
790 |
import ns3_module_energy__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
791 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
792 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
793 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
794 |
ns3_module_energy__local.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
795 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
796 |
root_module.end_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
797 |
root_module.begin_section('ns3_module_mesh') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
798 |
ns3_module_mesh.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
799 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
800 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
801 |
import ns3_module_mesh__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
802 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
803 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
804 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
805 |
ns3_module_mesh__local.register_methods(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
806 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
807 |
root_module.end_section('ns3_module_mesh') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
808 |
root_module.begin_section('ns3_module_ns3wifi') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
809 |
ns3_module_ns3wifi.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
810 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
811 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
812 |
import ns3_module_ns3wifi__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
813 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
814 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
815 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
816 |
ns3_module_ns3wifi__local.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
817 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
818 |
root_module.end_section('ns3_module_ns3wifi') |
6867 | 819 |
root_module.begin_section('ns3_module_spectrum') |
820 |
ns3_module_spectrum.register_methods(root_module) |
|
821 |
||
822 |
try: |
|
823 |
import ns3_module_spectrum__local |
|
824 |
except ImportError: |
|
825 |
pass |
|
826 |
else: |
|
827 |
ns3_module_spectrum__local.register_methods(root_module) |
|
828 |
||
829 |
root_module.end_section('ns3_module_spectrum') |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
830 |
root_module.begin_section('ns3_module_csma') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
831 |
ns3_module_csma.register_methods(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
832 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
833 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
834 |
import ns3_module_csma__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
835 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
836 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
837 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
838 |
ns3_module_csma__local.register_methods(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
839 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
840 |
root_module.end_section('ns3_module_csma') |
6799
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
841 |
root_module.begin_section('ns3_module_uan') |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
842 |
ns3_module_uan.register_methods(root_module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
843 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
844 |
try: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
845 |
import ns3_module_uan__local |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
846 |
except ImportError: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
847 |
pass |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
848 |
else: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
849 |
ns3_module_uan__local.register_methods(root_module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
850 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
851 |
root_module.end_section('ns3_module_uan') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
852 |
root_module.begin_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
853 |
ns3_module_aodv.register_methods(root_module) |
6534 | 854 |
|
855 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
856 |
import ns3_module_aodv__local |
6534 | 857 |
except ImportError: |
858 |
pass |
|
859 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
860 |
ns3_module_aodv__local.register_methods(root_module) |
6534 | 861 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
862 |
root_module.end_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
863 |
root_module.begin_section('ns3_module_dsdv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
864 |
ns3_module_dsdv.register_methods(root_module) |
6534 | 865 |
|
866 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
867 |
import ns3_module_dsdv__local |
6534 | 868 |
except ImportError: |
869 |
pass |
|
870 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
871 |
ns3_module_dsdv__local.register_methods(root_module) |
6534 | 872 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
873 |
root_module.end_section('ns3_module_dsdv') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
874 |
root_module.begin_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
875 |
ns3_module_wimax.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
876 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
877 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
878 |
import ns3_module_wimax__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
879 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
880 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
881 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
882 |
ns3_module_wimax__local.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
883 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
884 |
root_module.end_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
885 |
root_module.begin_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
886 |
ns3_module_ns3tcp.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
887 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
888 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
889 |
import ns3_module_ns3tcp__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
890 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
891 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
892 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
893 |
ns3_module_ns3tcp__local.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
894 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
895 |
root_module.end_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
896 |
root_module.begin_section('ns3_module_olsr') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
897 |
ns3_module_olsr.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
898 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
899 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
900 |
import ns3_module_olsr__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
901 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
902 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
903 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
904 |
ns3_module_olsr__local.register_methods(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
905 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
906 |
root_module.end_section('ns3_module_olsr') |
6867 | 907 |
root_module.begin_section('ns3_module_lte') |
908 |
ns3_module_lte.register_methods(root_module) |
|
909 |
||
910 |
try: |
|
911 |
import ns3_module_lte__local |
|
912 |
except ImportError: |
|
913 |
pass |
|
914 |
else: |
|
915 |
ns3_module_lte__local.register_methods(root_module) |
|
916 |
||
917 |
root_module.end_section('ns3_module_lte') |
|
6650 | 918 |
return |
919 |
||
6534 | 920 |
def register_functions(root_module): |
921 |
module = root_module |
|
922 |
root_module.begin_section('ns3_module_core') |
|
923 |
ns3_module_core.register_functions(root_module) |
|
924 |
||
925 |
try: |
|
926 |
import ns3_module_core__local |
|
927 |
except ImportError: |
|
928 |
pass |
|
929 |
else: |
|
930 |
ns3_module_core__local.register_functions(root_module) |
|
931 |
||
932 |
root_module.end_section('ns3_module_core') |
|
6824 | 933 |
root_module.begin_section('ns3_module_network') |
934 |
ns3_module_network.register_functions(root_module) |
|
935 |
||
936 |
try: |
|
937 |
import ns3_module_network__local |
|
938 |
except ImportError: |
|
939 |
pass |
|
940 |
else: |
|
941 |
ns3_module_network__local.register_functions(root_module) |
|
942 |
||
943 |
root_module.end_section('ns3_module_network') |
|
6534 | 944 |
root_module.begin_section('ns3_module_test') |
945 |
ns3_module_test.register_functions(root_module) |
|
946 |
||
947 |
try: |
|
948 |
import ns3_module_test__local |
|
949 |
except ImportError: |
|
950 |
pass |
|
951 |
else: |
|
952 |
ns3_module_test__local.register_functions(root_module) |
|
953 |
||
954 |
root_module.end_section('ns3_module_test') |
|
6677
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
955 |
root_module.begin_section('ns3_module_visualizer') |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
956 |
ns3_module_visualizer.register_functions(root_module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
957 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
958 |
try: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
959 |
import ns3_module_visualizer__local |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
960 |
except ImportError: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
961 |
pass |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
962 |
else: |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
963 |
ns3_module_visualizer__local.register_functions(root_module) |
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
964 |
|
06864ef8c0a1
Python bindings rescan for pyviz
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6675
diff
changeset
|
965 |
root_module.end_section('ns3_module_visualizer') |
6534 | 966 |
root_module.begin_section('ns3_module_bridge') |
967 |
ns3_module_bridge.register_functions(root_module) |
|
968 |
||
969 |
try: |
|
970 |
import ns3_module_bridge__local |
|
971 |
except ImportError: |
|
972 |
pass |
|
973 |
else: |
|
974 |
ns3_module_bridge__local.register_functions(root_module) |
|
975 |
||
976 |
root_module.end_section('ns3_module_bridge') |
|
6824 | 977 |
root_module.begin_section('ns3_module_contrib') |
978 |
ns3_module_contrib.register_functions(root_module) |
|
979 |
||
980 |
try: |
|
981 |
import ns3_module_contrib__local |
|
982 |
except ImportError: |
|
983 |
pass |
|
984 |
else: |
|
985 |
ns3_module_contrib__local.register_functions(root_module) |
|
986 |
||
987 |
root_module.end_section('ns3_module_contrib') |
|
6534 | 988 |
root_module.begin_section('ns3_module_emu') |
989 |
ns3_module_emu.register_functions(root_module) |
|
990 |
||
991 |
try: |
|
992 |
import ns3_module_emu__local |
|
993 |
except ImportError: |
|
994 |
pass |
|
995 |
else: |
|
996 |
ns3_module_emu__local.register_functions(root_module) |
|
997 |
||
998 |
root_module.end_section('ns3_module_emu') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
999 |
root_module.begin_section('ns3_module_mobility') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1000 |
ns3_module_mobility.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1001 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1002 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1003 |
import ns3_module_mobility__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1004 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1005 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1006 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1007 |
ns3_module_mobility__local.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1008 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1009 |
root_module.end_section('ns3_module_mobility') |
6835 | 1010 |
root_module.begin_section('ns3_module_mpi') |
1011 |
ns3_module_mpi.register_functions(root_module) |
|
6534 | 1012 |
|
1013 |
try: |
|
6835 | 1014 |
import ns3_module_mpi__local |
6534 | 1015 |
except ImportError: |
1016 |
pass |
|
1017 |
else: |
|
6835 | 1018 |
ns3_module_mpi__local.register_functions(root_module) |
6534 | 1019 |
|
6835 | 1020 |
root_module.end_section('ns3_module_mpi') |
6534 | 1021 |
root_module.begin_section('ns3_module_stats') |
1022 |
ns3_module_stats.register_functions(root_module) |
|
1023 |
||
1024 |
try: |
|
1025 |
import ns3_module_stats__local |
|
1026 |
except ImportError: |
|
1027 |
pass |
|
1028 |
else: |
|
1029 |
ns3_module_stats__local.register_functions(root_module) |
|
1030 |
||
1031 |
root_module.end_section('ns3_module_stats') |
|
1032 |
root_module.begin_section('ns3_module_topology_read') |
|
1033 |
ns3_module_topology_read.register_functions(root_module) |
|
1034 |
||
1035 |
try: |
|
1036 |
import ns3_module_topology_read__local |
|
1037 |
except ImportError: |
|
1038 |
pass |
|
1039 |
else: |
|
1040 |
ns3_module_topology_read__local.register_functions(root_module) |
|
1041 |
||
1042 |
root_module.end_section('ns3_module_topology_read') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1043 |
root_module.begin_section('ns3_module_propagation') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1044 |
ns3_module_propagation.register_functions(root_module) |
6534 | 1045 |
|
1046 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1047 |
import ns3_module_propagation__local |
6534 | 1048 |
except ImportError: |
1049 |
pass |
|
1050 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1051 |
ns3_module_propagation__local.register_functions(root_module) |
6534 | 1052 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1053 |
root_module.end_section('ns3_module_propagation') |
6835 | 1054 |
root_module.begin_section('ns3_module_internet') |
1055 |
ns3_module_internet.register_functions(root_module) |
|
1056 |
||
1057 |
try: |
|
1058 |
import ns3_module_internet__local |
|
1059 |
except ImportError: |
|
1060 |
pass |
|
1061 |
else: |
|
1062 |
ns3_module_internet__local.register_functions(root_module) |
|
1063 |
||
1064 |
root_module.end_section('ns3_module_internet') |
|
1065 |
root_module.begin_section('ns3_module_point_to_point') |
|
1066 |
ns3_module_point_to_point.register_functions(root_module) |
|
1067 |
||
1068 |
try: |
|
1069 |
import ns3_module_point_to_point__local |
|
1070 |
except ImportError: |
|
1071 |
pass |
|
1072 |
else: |
|
1073 |
ns3_module_point_to_point__local.register_functions(root_module) |
|
1074 |
||
1075 |
root_module.end_section('ns3_module_point_to_point') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1076 |
root_module.begin_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1077 |
ns3_module_wifi.register_functions(root_module) |
6835 | 1078 |
|
1079 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1080 |
import ns3_module_wifi__local |
6835 | 1081 |
except ImportError: |
1082 |
pass |
|
1083 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1084 |
ns3_module_wifi__local.register_functions(root_module) |
6835 | 1085 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1086 |
root_module.end_section('ns3_module_wifi') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1087 |
root_module.begin_section('ns3_module_applications') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1088 |
ns3_module_applications.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1089 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1090 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1091 |
import ns3_module_applications__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1092 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1093 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1094 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1095 |
ns3_module_applications__local.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1096 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1097 |
root_module.end_section('ns3_module_applications') |
6825
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1098 |
root_module.begin_section('ns3_module_click') |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1099 |
ns3_module_click.register_functions(root_module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1100 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1101 |
try: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1102 |
import ns3_module_click__local |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1103 |
except ImportError: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1104 |
pass |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1105 |
else: |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1106 |
ns3_module_click__local.register_functions(root_module) |
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1107 |
|
f9a45d9a10d0
NS-3 Click Integration merge
Lalith Suresh <suresh.lalith@gmail.com>
parents:
6824
diff
changeset
|
1108 |
root_module.end_section('ns3_module_click') |
6534 | 1109 |
root_module.begin_section('ns3_module_flow_monitor') |
1110 |
ns3_module_flow_monitor.register_functions(root_module) |
|
1111 |
||
1112 |
try: |
|
1113 |
import ns3_module_flow_monitor__local |
|
1114 |
except ImportError: |
|
1115 |
pass |
|
1116 |
else: |
|
1117 |
ns3_module_flow_monitor__local.register_functions(root_module) |
|
1118 |
||
1119 |
root_module.end_section('ns3_module_flow_monitor') |
|
1120 |
root_module.begin_section('ns3_module_nix_vector_routing') |
|
1121 |
ns3_module_nix_vector_routing.register_functions(root_module) |
|
1122 |
||
1123 |
try: |
|
1124 |
import ns3_module_nix_vector_routing__local |
|
1125 |
except ImportError: |
|
1126 |
pass |
|
1127 |
else: |
|
1128 |
ns3_module_nix_vector_routing__local.register_functions(root_module) |
|
1129 |
||
1130 |
root_module.end_section('ns3_module_nix_vector_routing') |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1131 |
root_module.begin_section('ns3_module_tap_bridge') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1132 |
ns3_module_tap_bridge.register_functions(root_module) |
6534 | 1133 |
|
1134 |
try: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1135 |
import ns3_module_tap_bridge__local |
6534 | 1136 |
except ImportError: |
1137 |
pass |
|
1138 |
else: |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1139 |
ns3_module_tap_bridge__local.register_functions(root_module) |
6534 | 1140 |
|
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1141 |
root_module.end_section('ns3_module_tap_bridge') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1142 |
root_module.begin_section('ns3_module_virtual_net_device') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1143 |
ns3_module_virtual_net_device.register_functions(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1144 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1145 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1146 |
import ns3_module_virtual_net_device__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1147 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1148 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1149 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1150 |
ns3_module_virtual_net_device__local.register_functions(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1151 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1152 |
root_module.end_section('ns3_module_virtual_net_device') |
6867 | 1153 |
root_module.begin_section('ns3_module_netanim') |
1154 |
ns3_module_netanim.register_functions(root_module) |
|
6806 | 1155 |
|
1156 |
try: |
|
6867 | 1157 |
import ns3_module_netanim__local |
6806 | 1158 |
except ImportError: |
1159 |
pass |
|
1160 |
else: |
|
6867 | 1161 |
ns3_module_netanim__local.register_functions(root_module) |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1162 |
|
6867 | 1163 |
root_module.end_section('ns3_module_netanim') |
6847
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1164 |
root_module.begin_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1165 |
ns3_module_energy.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1166 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1167 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1168 |
import ns3_module_energy__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1169 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1170 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1171 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1172 |
ns3_module_energy__local.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1173 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1174 |
root_module.end_section('ns3_module_energy') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1175 |
root_module.begin_section('ns3_module_mesh') |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1176 |
ns3_module_mesh.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1177 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1178 |
try: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1179 |
import ns3_module_mesh__local |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1180 |
except ImportError: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1181 |
pass |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1182 |
else: |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1183 |
ns3_module_mesh__local.register_functions(root_module) |
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1184 |
|
138f00c56381
Move applications to a single module
Mitch Watrous <watrous@u.washington.edu>
parents:
6835
diff
changeset
|
1185 |
root_module.end_section('ns3_module_mesh') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1186 |
root_module.begin_section('ns3_module_ns3wifi') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1187 |
ns3_module_ns3wifi.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1188 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1189 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1190 |
import ns3_module_ns3wifi__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1191 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1192 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1193 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1194 |
ns3_module_ns3wifi__local.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1195 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1196 |
root_module.end_section('ns3_module_ns3wifi') |
6867 | 1197 |
root_module.begin_section('ns3_module_spectrum') |
1198 |
ns3_module_spectrum.register_functions(root_module) |
|
1199 |
||
1200 |
try: |
|
1201 |
import ns3_module_spectrum__local |
|
1202 |
except ImportError: |
|
1203 |
pass |
|
1204 |
else: |
|
1205 |
ns3_module_spectrum__local.register_functions(root_module) |
|
1206 |
||
1207 |
root_module.end_section('ns3_module_spectrum') |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1208 |
root_module.begin_section('ns3_module_csma') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1209 |
ns3_module_csma.register_functions(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1210 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1211 |
try: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1212 |
import ns3_module_csma__local |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1213 |
except ImportError: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1214 |
pass |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1215 |
else: |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1216 |
ns3_module_csma__local.register_functions(root_module) |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1217 |
|
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1218 |
root_module.end_section('ns3_module_csma') |
6799
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1219 |
root_module.begin_section('ns3_module_uan') |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1220 |
ns3_module_uan.register_functions(root_module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1221 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1222 |
try: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1223 |
import ns3_module_uan__local |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1224 |
except ImportError: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1225 |
pass |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1226 |
else: |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1227 |
ns3_module_uan__local.register_functions(root_module) |
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1228 |
|
3ee37173d39e
Python bindings API rescan, ns3module.cc now 90% smaller.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6776
diff
changeset
|
1229 |
root_module.end_section('ns3_module_uan') |
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1230 |
root_module.begin_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1231 |
ns3_module_aodv.register_functions(root_module) |
6534 | 1232 |
|
1233 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1234 |
import ns3_module_aodv__local |
6534 | 1235 |
except ImportError: |
1236 |
pass |
|
1237 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1238 |
ns3_module_aodv__local.register_functions(root_module) |
6534 | 1239 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1240 |
root_module.end_section('ns3_module_aodv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1241 |
root_module.begin_section('ns3_module_dsdv') |
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1242 |
ns3_module_dsdv.register_functions(root_module) |
6534 | 1243 |
|
1244 |
try: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1245 |
import ns3_module_dsdv__local |
6534 | 1246 |
except ImportError: |
1247 |
pass |
|
1248 |
else: |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1249 |
ns3_module_dsdv__local.register_functions(root_module) |
6534 | 1250 |
|
6882
20221fbd189e
Make mesh, dot11s, and flame modules create only one module
Mitch Watrous <watrous@u.washington.edu>
parents:
6867
diff
changeset
|
1251 |
root_module.end_section('ns3_module_dsdv') |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1252 |
root_module.begin_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1253 |
ns3_module_wimax.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1254 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1255 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1256 |
import ns3_module_wimax__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1257 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1258 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1259 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1260 |
ns3_module_wimax__local.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1261 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1262 |
root_module.end_section('ns3_module_wimax') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1263 |
root_module.begin_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1264 |
ns3_module_ns3tcp.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1265 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1266 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1267 |
import ns3_module_ns3tcp__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1268 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1269 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1270 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1271 |
ns3_module_ns3tcp__local.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1272 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1273 |
root_module.end_section('ns3_module_ns3tcp') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1274 |
root_module.begin_section('ns3_module_olsr') |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1275 |
ns3_module_olsr.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1276 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1277 |
try: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1278 |
import ns3_module_olsr__local |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1279 |
except ImportError: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1280 |
pass |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1281 |
else: |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1282 |
ns3_module_olsr__local.register_functions(root_module) |
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1283 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6882
diff
changeset
|
1284 |
root_module.end_section('ns3_module_olsr') |
6867 | 1285 |
root_module.begin_section('ns3_module_lte') |
1286 |
ns3_module_lte.register_functions(root_module) |
|
1287 |
||
1288 |
try: |
|
1289 |
import ns3_module_lte__local |
|
1290 |
except ImportError: |
|
1291 |
pass |
|
1292 |
else: |
|
1293 |
ns3_module_lte__local.register_functions(root_module) |
|
1294 |
||
1295 |
root_module.end_section('ns3_module_lte') |
|
6534 | 1296 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
1297 |
register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) |
|
1298 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) |
|
1299 |
register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) |
|
1300 |
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) |
|
6718 | 1301 |
register_functions_ns3_dsdv(module.get_submodule('dsdv'), root_module) |
6534 | 1302 |
register_functions_ns3_flame(module.get_submodule('flame'), root_module) |
1303 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
|
1304 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
|
1305 |
return |
|
1306 |
||
1307 |
def register_functions_ns3_Config(module, root_module): |
|
1308 |
return |
|
1309 |
||
1310 |
def register_functions_ns3_FatalImpl(module, root_module): |
|
1311 |
return |
|
1312 |
||
1313 |
def register_functions_ns3_addressUtils(module, root_module): |
|
1314 |
return |
|
1315 |
||
1316 |
def register_functions_ns3_aodv(module, root_module): |
|
1317 |
return |
|
1318 |
||
1319 |
def register_functions_ns3_dot11s(module, root_module): |
|
1320 |
return |
|
1321 |
||
6718 | 1322 |
def register_functions_ns3_dsdv(module, root_module): |
1323 |
return |
|
1324 |
||
6534 | 1325 |
def register_functions_ns3_flame(module, root_module): |
1326 |
return |
|
1327 |
||
1328 |
def register_functions_ns3_internal(module, root_module): |
|
1329 |
return |
|
1330 |
||
1331 |
def register_functions_ns3_olsr(module, root_module): |
|
1332 |
return |
|
1333 |
||
1334 |
def main(): |
|
1335 |
out = FileCodeSink(sys.stdout) |
|
1336 |
root_module = module_init() |
|
1337 |
register_types(root_module) |
|
1338 |
register_methods(root_module) |
|
1339 |
register_functions(root_module) |
|
1340 |
root_module.generate(out) |
|
1341 |
||
1342 |
if __name__ == '__main__': |
|
1343 |
main() |
|
1344 |