tomh@4474
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
|
gjc@3408
|
2 |
|
gjc@3408
|
3 |
|
gjc@3408
|
4 |
import pybindgen.settings
|
gjc@3408
|
5 |
import warnings
|
gjc@3408
|
6 |
|
gjc@3408
|
7 |
class ErrorHandler(pybindgen.settings.ErrorHandler):
|
gjc@3408
|
8 |
def handle_error(self, wrapper, exception, traceback_):
|
gjc@3408
|
9 |
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
|
gjc@3408
|
10 |
return True
|
gjc@3408
|
11 |
pybindgen.settings.error_handler = ErrorHandler()
|
gjc@3408
|
12 |
|
gjc@3408
|
13 |
|
gjc@3408
|
14 |
import sys
|
gjc@3408
|
15 |
import ns3_module_core
|
gjc@3408
|
16 |
import ns3_module_simulator
|
gjc@3408
|
17 |
import ns3_module_mobility
|
gjc@3408
|
18 |
import ns3_module_common
|
mathieu@4552
|
19 |
import ns3_module_contrib
|
craigdo@3972
|
20 |
import ns3_module_node
|
mathieu@4552
|
21 |
import ns3_module_tap_bridge
|
mathieu@4552
|
22 |
import ns3_module_v4ping
|
mathieu@4552
|
23 |
import ns3_module_packet_sink
|
mathieu@4552
|
24 |
import ns3_module_stats
|
mathieu@4552
|
25 |
import ns3_module_onoff
|
mathieu@4552
|
26 |
import ns3_module_internet_stack
|
gjc@3408
|
27 |
import ns3_module_point_to_point
|
mathieu@4552
|
28 |
import ns3_module_csma
|
tomh@4574
|
29 |
import ns3_module_list_routing
|
tomh@4574
|
30 |
import ns3_module_static_routing
|
tomh@4574
|
31 |
import ns3_module_virtual_net_device
|
gjc@3408
|
32 |
import ns3_module_wifi
|
vincent@3842
|
33 |
import ns3_module_emu
|
tomh@4574
|
34 |
import ns3_module_bridge
|
gjc@3408
|
35 |
import ns3_module_global_routing
|
gjc@4204
|
36 |
import ns3_module_udp_echo
|
gjc@3408
|
37 |
import ns3_module_olsr
|
gjc@3408
|
38 |
import ns3_module_helper
|
gjc@3408
|
39 |
|
gjc@3408
|
40 |
def module_init():
|
gjc@3408
|
41 |
root_module = Module('ns3', cpp_namespace='::ns3')
|
gjc@3408
|
42 |
return root_module
|
gjc@3408
|
43 |
|
gjc@3408
|
44 |
def register_types(module):
|
gjc@3408
|
45 |
root_module = module.get_root()
|
gjc@3408
|
46 |
|
gjc@3408
|
47 |
root_module.begin_section('ns3_module_core')
|
gjc@3408
|
48 |
ns3_module_core.register_types(module)
|
gjc@3408
|
49 |
|
gjc@3408
|
50 |
try:
|
gjc@3408
|
51 |
import ns3_module_core__local
|
gjc@3408
|
52 |
except ImportError:
|
gjc@3408
|
53 |
pass
|
gjc@3408
|
54 |
else:
|
gjc@3408
|
55 |
ns3_module_core__local.register_types(module)
|
gjc@3408
|
56 |
|
gjc@3408
|
57 |
root_module.end_section('ns3_module_core')
|
gjc@3408
|
58 |
root_module.begin_section('ns3_module_simulator')
|
gjc@3408
|
59 |
ns3_module_simulator.register_types(module)
|
gjc@3408
|
60 |
|
gjc@3408
|
61 |
try:
|
gjc@3408
|
62 |
import ns3_module_simulator__local
|
gjc@3408
|
63 |
except ImportError:
|
gjc@3408
|
64 |
pass
|
gjc@3408
|
65 |
else:
|
gjc@3408
|
66 |
ns3_module_simulator__local.register_types(module)
|
gjc@3408
|
67 |
|
gjc@3408
|
68 |
root_module.end_section('ns3_module_simulator')
|
gjc@3408
|
69 |
root_module.begin_section('ns3_module_mobility')
|
gjc@3408
|
70 |
ns3_module_mobility.register_types(module)
|
gjc@3408
|
71 |
|
gjc@3408
|
72 |
try:
|
gjc@3408
|
73 |
import ns3_module_mobility__local
|
gjc@3408
|
74 |
except ImportError:
|
gjc@3408
|
75 |
pass
|
gjc@3408
|
76 |
else:
|
gjc@3408
|
77 |
ns3_module_mobility__local.register_types(module)
|
gjc@3408
|
78 |
|
gjc@3408
|
79 |
root_module.end_section('ns3_module_mobility')
|
gjc@3408
|
80 |
root_module.begin_section('ns3_module_common')
|
gjc@3408
|
81 |
ns3_module_common.register_types(module)
|
gjc@3408
|
82 |
|
gjc@3408
|
83 |
try:
|
gjc@3408
|
84 |
import ns3_module_common__local
|
gjc@3408
|
85 |
except ImportError:
|
gjc@3408
|
86 |
pass
|
gjc@3408
|
87 |
else:
|
gjc@3408
|
88 |
ns3_module_common__local.register_types(module)
|
gjc@3408
|
89 |
|
gjc@3408
|
90 |
root_module.end_section('ns3_module_common')
|
mathieu@4552
|
91 |
root_module.begin_section('ns3_module_contrib')
|
mathieu@4552
|
92 |
ns3_module_contrib.register_types(module)
|
mathieu@4552
|
93 |
|
mathieu@4552
|
94 |
try:
|
mathieu@4552
|
95 |
import ns3_module_contrib__local
|
mathieu@4552
|
96 |
except ImportError:
|
mathieu@4552
|
97 |
pass
|
mathieu@4552
|
98 |
else:
|
mathieu@4552
|
99 |
ns3_module_contrib__local.register_types(module)
|
mathieu@4552
|
100 |
|
mathieu@4552
|
101 |
root_module.end_section('ns3_module_contrib')
|
craigdo@3972
|
102 |
root_module.begin_section('ns3_module_node')
|
craigdo@3972
|
103 |
ns3_module_node.register_types(module)
|
craigdo@3972
|
104 |
|
craigdo@3972
|
105 |
try:
|
craigdo@3972
|
106 |
import ns3_module_node__local
|
craigdo@3972
|
107 |
except ImportError:
|
craigdo@3972
|
108 |
pass
|
craigdo@3972
|
109 |
else:
|
craigdo@3972
|
110 |
ns3_module_node__local.register_types(module)
|
craigdo@3972
|
111 |
|
craigdo@3972
|
112 |
root_module.end_section('ns3_module_node')
|
mathieu@4552
|
113 |
root_module.begin_section('ns3_module_tap_bridge')
|
mathieu@4552
|
114 |
ns3_module_tap_bridge.register_types(module)
|
gjc@3408
|
115 |
|
gjc@3408
|
116 |
try:
|
mathieu@4552
|
117 |
import ns3_module_tap_bridge__local
|
gjc@3408
|
118 |
except ImportError:
|
gjc@3408
|
119 |
pass
|
gjc@3408
|
120 |
else:
|
mathieu@4552
|
121 |
ns3_module_tap_bridge__local.register_types(module)
|
gjc@3408
|
122 |
|
mathieu@4552
|
123 |
root_module.end_section('ns3_module_tap_bridge')
|
mathieu@4552
|
124 |
root_module.begin_section('ns3_module_v4ping')
|
mathieu@4552
|
125 |
ns3_module_v4ping.register_types(module)
|
mathieu@4552
|
126 |
|
mathieu@4552
|
127 |
try:
|
mathieu@4552
|
128 |
import ns3_module_v4ping__local
|
mathieu@4552
|
129 |
except ImportError:
|
mathieu@4552
|
130 |
pass
|
mathieu@4552
|
131 |
else:
|
mathieu@4552
|
132 |
ns3_module_v4ping__local.register_types(module)
|
mathieu@4552
|
133 |
|
mathieu@4552
|
134 |
root_module.end_section('ns3_module_v4ping')
|
mathieu@4552
|
135 |
root_module.begin_section('ns3_module_packet_sink')
|
mathieu@4552
|
136 |
ns3_module_packet_sink.register_types(module)
|
mathieu@4552
|
137 |
|
mathieu@4552
|
138 |
try:
|
mathieu@4552
|
139 |
import ns3_module_packet_sink__local
|
mathieu@4552
|
140 |
except ImportError:
|
mathieu@4552
|
141 |
pass
|
mathieu@4552
|
142 |
else:
|
mathieu@4552
|
143 |
ns3_module_packet_sink__local.register_types(module)
|
mathieu@4552
|
144 |
|
mathieu@4552
|
145 |
root_module.end_section('ns3_module_packet_sink')
|
mathieu@4552
|
146 |
root_module.begin_section('ns3_module_stats')
|
mathieu@4552
|
147 |
ns3_module_stats.register_types(module)
|
mathieu@4552
|
148 |
|
mathieu@4552
|
149 |
try:
|
mathieu@4552
|
150 |
import ns3_module_stats__local
|
mathieu@4552
|
151 |
except ImportError:
|
mathieu@4552
|
152 |
pass
|
mathieu@4552
|
153 |
else:
|
mathieu@4552
|
154 |
ns3_module_stats__local.register_types(module)
|
mathieu@4552
|
155 |
|
mathieu@4552
|
156 |
root_module.end_section('ns3_module_stats')
|
mathieu@4552
|
157 |
root_module.begin_section('ns3_module_onoff')
|
mathieu@4552
|
158 |
ns3_module_onoff.register_types(module)
|
mathieu@4552
|
159 |
|
mathieu@4552
|
160 |
try:
|
mathieu@4552
|
161 |
import ns3_module_onoff__local
|
mathieu@4552
|
162 |
except ImportError:
|
mathieu@4552
|
163 |
pass
|
mathieu@4552
|
164 |
else:
|
mathieu@4552
|
165 |
ns3_module_onoff__local.register_types(module)
|
mathieu@4552
|
166 |
|
mathieu@4552
|
167 |
root_module.end_section('ns3_module_onoff')
|
mathieu@4552
|
168 |
root_module.begin_section('ns3_module_internet_stack')
|
mathieu@4552
|
169 |
ns3_module_internet_stack.register_types(module)
|
mathieu@4552
|
170 |
|
mathieu@4552
|
171 |
try:
|
mathieu@4552
|
172 |
import ns3_module_internet_stack__local
|
mathieu@4552
|
173 |
except ImportError:
|
mathieu@4552
|
174 |
pass
|
mathieu@4552
|
175 |
else:
|
mathieu@4552
|
176 |
ns3_module_internet_stack__local.register_types(module)
|
mathieu@4552
|
177 |
|
mathieu@4552
|
178 |
root_module.end_section('ns3_module_internet_stack')
|
gjc@3408
|
179 |
root_module.begin_section('ns3_module_point_to_point')
|
gjc@3408
|
180 |
ns3_module_point_to_point.register_types(module)
|
gjc@3408
|
181 |
|
gjc@3408
|
182 |
try:
|
gjc@3408
|
183 |
import ns3_module_point_to_point__local
|
gjc@3408
|
184 |
except ImportError:
|
gjc@3408
|
185 |
pass
|
gjc@3408
|
186 |
else:
|
gjc@3408
|
187 |
ns3_module_point_to_point__local.register_types(module)
|
gjc@3408
|
188 |
|
gjc@3408
|
189 |
root_module.end_section('ns3_module_point_to_point')
|
mathieu@4552
|
190 |
root_module.begin_section('ns3_module_csma')
|
mathieu@4552
|
191 |
ns3_module_csma.register_types(module)
|
gjc@3574
|
192 |
|
gjc@3574
|
193 |
try:
|
mathieu@4552
|
194 |
import ns3_module_csma__local
|
gjc@3574
|
195 |
except ImportError:
|
gjc@3574
|
196 |
pass
|
gjc@3574
|
197 |
else:
|
mathieu@4552
|
198 |
ns3_module_csma__local.register_types(module)
|
gjc@3574
|
199 |
|
mathieu@4552
|
200 |
root_module.end_section('ns3_module_csma')
|
tomh@4574
|
201 |
root_module.begin_section('ns3_module_list_routing')
|
tomh@4574
|
202 |
ns3_module_list_routing.register_types(module)
|
gjc@4204
|
203 |
|
gjc@4204
|
204 |
try:
|
tomh@4574
|
205 |
import ns3_module_list_routing__local
|
gjc@4204
|
206 |
except ImportError:
|
gjc@4204
|
207 |
pass
|
gjc@4204
|
208 |
else:
|
tomh@4574
|
209 |
ns3_module_list_routing__local.register_types(module)
|
gjc@4204
|
210 |
|
tomh@4574
|
211 |
root_module.end_section('ns3_module_list_routing')
|
tomh@4574
|
212 |
root_module.begin_section('ns3_module_static_routing')
|
tomh@4574
|
213 |
ns3_module_static_routing.register_types(module)
|
tomh@4574
|
214 |
|
tomh@4574
|
215 |
try:
|
tomh@4574
|
216 |
import ns3_module_static_routing__local
|
tomh@4574
|
217 |
except ImportError:
|
tomh@4574
|
218 |
pass
|
tomh@4574
|
219 |
else:
|
tomh@4574
|
220 |
ns3_module_static_routing__local.register_types(module)
|
tomh@4574
|
221 |
|
tomh@4574
|
222 |
root_module.end_section('ns3_module_static_routing')
|
tomh@4574
|
223 |
root_module.begin_section('ns3_module_virtual_net_device')
|
tomh@4574
|
224 |
ns3_module_virtual_net_device.register_types(module)
|
tomh@4574
|
225 |
|
tomh@4574
|
226 |
try:
|
tomh@4574
|
227 |
import ns3_module_virtual_net_device__local
|
tomh@4574
|
228 |
except ImportError:
|
tomh@4574
|
229 |
pass
|
tomh@4574
|
230 |
else:
|
tomh@4574
|
231 |
ns3_module_virtual_net_device__local.register_types(module)
|
tomh@4574
|
232 |
|
tomh@4574
|
233 |
root_module.end_section('ns3_module_virtual_net_device')
|
gjc@3408
|
234 |
root_module.begin_section('ns3_module_wifi')
|
gjc@3408
|
235 |
ns3_module_wifi.register_types(module)
|
gjc@3408
|
236 |
|
gjc@3408
|
237 |
try:
|
gjc@3408
|
238 |
import ns3_module_wifi__local
|
gjc@3408
|
239 |
except ImportError:
|
gjc@3408
|
240 |
pass
|
gjc@3408
|
241 |
else:
|
gjc@3408
|
242 |
ns3_module_wifi__local.register_types(module)
|
gjc@3408
|
243 |
|
gjc@3408
|
244 |
root_module.end_section('ns3_module_wifi')
|
vincent@3842
|
245 |
root_module.begin_section('ns3_module_emu')
|
vincent@3842
|
246 |
ns3_module_emu.register_types(module)
|
vincent@3842
|
247 |
|
vincent@3842
|
248 |
try:
|
vincent@3842
|
249 |
import ns3_module_emu__local
|
vincent@3842
|
250 |
except ImportError:
|
vincent@3842
|
251 |
pass
|
vincent@3842
|
252 |
else:
|
vincent@3842
|
253 |
ns3_module_emu__local.register_types(module)
|
vincent@3842
|
254 |
|
vincent@3842
|
255 |
root_module.end_section('ns3_module_emu')
|
tomh@4574
|
256 |
root_module.begin_section('ns3_module_bridge')
|
tomh@4574
|
257 |
ns3_module_bridge.register_types(module)
|
tomh@4574
|
258 |
|
tomh@4574
|
259 |
try:
|
tomh@4574
|
260 |
import ns3_module_bridge__local
|
tomh@4574
|
261 |
except ImportError:
|
tomh@4574
|
262 |
pass
|
tomh@4574
|
263 |
else:
|
tomh@4574
|
264 |
ns3_module_bridge__local.register_types(module)
|
tomh@4574
|
265 |
|
tomh@4574
|
266 |
root_module.end_section('ns3_module_bridge')
|
gjc@3408
|
267 |
root_module.begin_section('ns3_module_global_routing')
|
gjc@3408
|
268 |
ns3_module_global_routing.register_types(module)
|
gjc@3408
|
269 |
|
gjc@3408
|
270 |
try:
|
gjc@3408
|
271 |
import ns3_module_global_routing__local
|
gjc@3408
|
272 |
except ImportError:
|
gjc@3408
|
273 |
pass
|
gjc@3408
|
274 |
else:
|
gjc@3408
|
275 |
ns3_module_global_routing__local.register_types(module)
|
gjc@3408
|
276 |
|
gjc@3408
|
277 |
root_module.end_section('ns3_module_global_routing')
|
gjc@4204
|
278 |
root_module.begin_section('ns3_module_udp_echo')
|
gjc@4204
|
279 |
ns3_module_udp_echo.register_types(module)
|
gjc@3408
|
280 |
|
gjc@3408
|
281 |
try:
|
gjc@4204
|
282 |
import ns3_module_udp_echo__local
|
gjc@3408
|
283 |
except ImportError:
|
gjc@3408
|
284 |
pass
|
gjc@3408
|
285 |
else:
|
gjc@4204
|
286 |
ns3_module_udp_echo__local.register_types(module)
|
gjc@3408
|
287 |
|
gjc@4204
|
288 |
root_module.end_section('ns3_module_udp_echo')
|
gjc@3408
|
289 |
root_module.begin_section('ns3_module_olsr')
|
gjc@3408
|
290 |
ns3_module_olsr.register_types(module)
|
gjc@3408
|
291 |
|
gjc@3408
|
292 |
try:
|
gjc@3408
|
293 |
import ns3_module_olsr__local
|
gjc@3408
|
294 |
except ImportError:
|
gjc@3408
|
295 |
pass
|
gjc@3408
|
296 |
else:
|
gjc@3408
|
297 |
ns3_module_olsr__local.register_types(module)
|
gjc@3408
|
298 |
|
gjc@3408
|
299 |
root_module.end_section('ns3_module_olsr')
|
gjc@3408
|
300 |
root_module.begin_section('ns3_module_helper')
|
gjc@3408
|
301 |
ns3_module_helper.register_types(module)
|
gjc@3408
|
302 |
|
gjc@3408
|
303 |
try:
|
gjc@3408
|
304 |
import ns3_module_helper__local
|
gjc@3408
|
305 |
except ImportError:
|
gjc@3408
|
306 |
pass
|
gjc@3408
|
307 |
else:
|
gjc@3408
|
308 |
ns3_module_helper__local.register_types(module)
|
gjc@3408
|
309 |
|
gjc@3408
|
310 |
root_module.end_section('ns3_module_helper')
|
gjc@3731
|
311 |
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector')
|
gjc@3731
|
312 |
module.add_container('std::list< unsigned int >', 'unsigned int', container_type='list')
|
mathieu@4422
|
313 |
module.add_container('std::list< std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader > >', 'std::pair< ns3::Ptr< ns3::Packet >, ns3::AmsduSubframeHeader >', container_type='list')
|
gjc@3408
|
314 |
|
gjc@3855
|
315 |
## Register a nested module for the namespace Config
|
gjc@3408
|
316 |
|
gjc@3855
|
317 |
nested_module = module.add_cpp_namespace('Config')
|
gjc@3855
|
318 |
register_types_ns3_Config(nested_module)
|
gjc@3408
|
319 |
|
gjc@3408
|
320 |
|
gjc@3408
|
321 |
## Register a nested module for the namespace TimeStepPrecision
|
gjc@3408
|
322 |
|
gjc@3408
|
323 |
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
gjc@3408
|
324 |
register_types_ns3_TimeStepPrecision(nested_module)
|
gjc@3408
|
325 |
|
gjc@3408
|
326 |
|
tomh@4474
|
327 |
## Register a nested module for the namespace addressUtils
|
tomh@4474
|
328 |
|
tomh@4474
|
329 |
nested_module = module.add_cpp_namespace('addressUtils')
|
tomh@4474
|
330 |
register_types_ns3_addressUtils(nested_module)
|
tomh@4474
|
331 |
|
tomh@4474
|
332 |
|
gjc@3855
|
333 |
## Register a nested module for the namespace internal
|
gjc@3408
|
334 |
|
gjc@3855
|
335 |
nested_module = module.add_cpp_namespace('internal')
|
gjc@3855
|
336 |
register_types_ns3_internal(nested_module)
|
gjc@3408
|
337 |
|
gjc@3408
|
338 |
|
gjc@3408
|
339 |
## Register a nested module for the namespace olsr
|
gjc@3408
|
340 |
|
gjc@3408
|
341 |
nested_module = module.add_cpp_namespace('olsr')
|
gjc@3408
|
342 |
register_types_ns3_olsr(nested_module)
|
gjc@3408
|
343 |
|
gjc@3408
|
344 |
|
gjc@3855
|
345 |
def register_types_ns3_Config(module):
|
gjc@3408
|
346 |
root_module = module.get_root()
|
gjc@3408
|
347 |
|
gjc@3855
|
348 |
module.add_container('std::vector< std::string >', 'std::string', container_type='vector')
|
gjc@3408
|
349 |
|
gjc@3408
|
350 |
def register_types_ns3_TimeStepPrecision(module):
|
gjc@3408
|
351 |
root_module = module.get_root()
|
gjc@3408
|
352 |
|
gjc@3408
|
353 |
|
tomh@4474
|
354 |
def register_types_ns3_addressUtils(module):
|
tomh@4474
|
355 |
root_module = module.get_root()
|
tomh@4474
|
356 |
|
tomh@4474
|
357 |
|
gjc@3855
|
358 |
def register_types_ns3_internal(module):
|
gjc@3408
|
359 |
root_module = module.get_root()
|
gjc@3408
|
360 |
|
gjc@3408
|
361 |
|
gjc@3408
|
362 |
def register_types_ns3_olsr(module):
|
gjc@3408
|
363 |
root_module = module.get_root()
|
gjc@3408
|
364 |
|
gjc@3408
|
365 |
|
gjc@3408
|
366 |
def register_methods(root_module):
|
gjc@3408
|
367 |
root_module.begin_section('ns3_module_core')
|
gjc@3408
|
368 |
ns3_module_core.register_methods(root_module)
|
gjc@3408
|
369 |
|
gjc@3408
|
370 |
try:
|
gjc@3408
|
371 |
import ns3_module_core__local
|
gjc@3408
|
372 |
except ImportError:
|
gjc@3408
|
373 |
pass
|
gjc@3408
|
374 |
else:
|
gjc@3408
|
375 |
ns3_module_core__local.register_methods(root_module)
|
gjc@3408
|
376 |
|
gjc@3408
|
377 |
root_module.end_section('ns3_module_core')
|
gjc@3408
|
378 |
root_module.begin_section('ns3_module_simulator')
|
gjc@3408
|
379 |
ns3_module_simulator.register_methods(root_module)
|
gjc@3408
|
380 |
|
gjc@3408
|
381 |
try:
|
gjc@3408
|
382 |
import ns3_module_simulator__local
|
gjc@3408
|
383 |
except ImportError:
|
gjc@3408
|
384 |
pass
|
gjc@3408
|
385 |
else:
|
gjc@3408
|
386 |
ns3_module_simulator__local.register_methods(root_module)
|
gjc@3408
|
387 |
|
gjc@3408
|
388 |
root_module.end_section('ns3_module_simulator')
|
gjc@3408
|
389 |
root_module.begin_section('ns3_module_mobility')
|
gjc@3408
|
390 |
ns3_module_mobility.register_methods(root_module)
|
gjc@3408
|
391 |
|
gjc@3408
|
392 |
try:
|
gjc@3408
|
393 |
import ns3_module_mobility__local
|
gjc@3408
|
394 |
except ImportError:
|
gjc@3408
|
395 |
pass
|
gjc@3408
|
396 |
else:
|
gjc@3408
|
397 |
ns3_module_mobility__local.register_methods(root_module)
|
gjc@3408
|
398 |
|
gjc@3408
|
399 |
root_module.end_section('ns3_module_mobility')
|
gjc@3408
|
400 |
root_module.begin_section('ns3_module_common')
|
gjc@3408
|
401 |
ns3_module_common.register_methods(root_module)
|
gjc@3408
|
402 |
|
gjc@3408
|
403 |
try:
|
gjc@3408
|
404 |
import ns3_module_common__local
|
gjc@3408
|
405 |
except ImportError:
|
gjc@3408
|
406 |
pass
|
gjc@3408
|
407 |
else:
|
gjc@3408
|
408 |
ns3_module_common__local.register_methods(root_module)
|
gjc@3408
|
409 |
|
gjc@3408
|
410 |
root_module.end_section('ns3_module_common')
|
mathieu@4552
|
411 |
root_module.begin_section('ns3_module_contrib')
|
mathieu@4552
|
412 |
ns3_module_contrib.register_methods(root_module)
|
mathieu@4552
|
413 |
|
mathieu@4552
|
414 |
try:
|
mathieu@4552
|
415 |
import ns3_module_contrib__local
|
mathieu@4552
|
416 |
except ImportError:
|
mathieu@4552
|
417 |
pass
|
mathieu@4552
|
418 |
else:
|
mathieu@4552
|
419 |
ns3_module_contrib__local.register_methods(root_module)
|
mathieu@4552
|
420 |
|
mathieu@4552
|
421 |
root_module.end_section('ns3_module_contrib')
|
craigdo@3972
|
422 |
root_module.begin_section('ns3_module_node')
|
craigdo@3972
|
423 |
ns3_module_node.register_methods(root_module)
|
craigdo@3972
|
424 |
|
craigdo@3972
|
425 |
try:
|
craigdo@3972
|
426 |
import ns3_module_node__local
|
craigdo@3972
|
427 |
except ImportError:
|
craigdo@3972
|
428 |
pass
|
craigdo@3972
|
429 |
else:
|
craigdo@3972
|
430 |
ns3_module_node__local.register_methods(root_module)
|
craigdo@3972
|
431 |
|
craigdo@3972
|
432 |
root_module.end_section('ns3_module_node')
|
mathieu@4552
|
433 |
root_module.begin_section('ns3_module_tap_bridge')
|
mathieu@4552
|
434 |
ns3_module_tap_bridge.register_methods(root_module)
|
gjc@3408
|
435 |
|
gjc@3408
|
436 |
try:
|
mathieu@4552
|
437 |
import ns3_module_tap_bridge__local
|
gjc@3408
|
438 |
except ImportError:
|
gjc@3408
|
439 |
pass
|
gjc@3408
|
440 |
else:
|
mathieu@4552
|
441 |
ns3_module_tap_bridge__local.register_methods(root_module)
|
gjc@3408
|
442 |
|
mathieu@4552
|
443 |
root_module.end_section('ns3_module_tap_bridge')
|
mathieu@4552
|
444 |
root_module.begin_section('ns3_module_v4ping')
|
mathieu@4552
|
445 |
ns3_module_v4ping.register_methods(root_module)
|
mathieu@4552
|
446 |
|
mathieu@4552
|
447 |
try:
|
mathieu@4552
|
448 |
import ns3_module_v4ping__local
|
mathieu@4552
|
449 |
except ImportError:
|
mathieu@4552
|
450 |
pass
|
mathieu@4552
|
451 |
else:
|
mathieu@4552
|
452 |
ns3_module_v4ping__local.register_methods(root_module)
|
mathieu@4552
|
453 |
|
mathieu@4552
|
454 |
root_module.end_section('ns3_module_v4ping')
|
mathieu@4552
|
455 |
root_module.begin_section('ns3_module_packet_sink')
|
mathieu@4552
|
456 |
ns3_module_packet_sink.register_methods(root_module)
|
mathieu@4552
|
457 |
|
mathieu@4552
|
458 |
try:
|
mathieu@4552
|
459 |
import ns3_module_packet_sink__local
|
mathieu@4552
|
460 |
except ImportError:
|
mathieu@4552
|
461 |
pass
|
mathieu@4552
|
462 |
else:
|
mathieu@4552
|
463 |
ns3_module_packet_sink__local.register_methods(root_module)
|
mathieu@4552
|
464 |
|
mathieu@4552
|
465 |
root_module.end_section('ns3_module_packet_sink')
|
mathieu@4552
|
466 |
root_module.begin_section('ns3_module_stats')
|
mathieu@4552
|
467 |
ns3_module_stats.register_methods(root_module)
|
mathieu@4552
|
468 |
|
mathieu@4552
|
469 |
try:
|
mathieu@4552
|
470 |
import ns3_module_stats__local
|
mathieu@4552
|
471 |
except ImportError:
|
mathieu@4552
|
472 |
pass
|
mathieu@4552
|
473 |
else:
|
mathieu@4552
|
474 |
ns3_module_stats__local.register_methods(root_module)
|
mathieu@4552
|
475 |
|
mathieu@4552
|
476 |
root_module.end_section('ns3_module_stats')
|
mathieu@4552
|
477 |
root_module.begin_section('ns3_module_onoff')
|
mathieu@4552
|
478 |
ns3_module_onoff.register_methods(root_module)
|
mathieu@4552
|
479 |
|
mathieu@4552
|
480 |
try:
|
mathieu@4552
|
481 |
import ns3_module_onoff__local
|
mathieu@4552
|
482 |
except ImportError:
|
mathieu@4552
|
483 |
pass
|
mathieu@4552
|
484 |
else:
|
mathieu@4552
|
485 |
ns3_module_onoff__local.register_methods(root_module)
|
mathieu@4552
|
486 |
|
mathieu@4552
|
487 |
root_module.end_section('ns3_module_onoff')
|
mathieu@4552
|
488 |
root_module.begin_section('ns3_module_internet_stack')
|
mathieu@4552
|
489 |
ns3_module_internet_stack.register_methods(root_module)
|
mathieu@4552
|
490 |
|
mathieu@4552
|
491 |
try:
|
mathieu@4552
|
492 |
import ns3_module_internet_stack__local
|
mathieu@4552
|
493 |
except ImportError:
|
mathieu@4552
|
494 |
pass
|
mathieu@4552
|
495 |
else:
|
mathieu@4552
|
496 |
ns3_module_internet_stack__local.register_methods(root_module)
|
mathieu@4552
|
497 |
|
mathieu@4552
|
498 |
root_module.end_section('ns3_module_internet_stack')
|
gjc@3408
|
499 |
root_module.begin_section('ns3_module_point_to_point')
|
gjc@3408
|
500 |
ns3_module_point_to_point.register_methods(root_module)
|
gjc@3408
|
501 |
|
gjc@3408
|
502 |
try:
|
gjc@3408
|
503 |
import ns3_module_point_to_point__local
|
gjc@3408
|
504 |
except ImportError:
|
gjc@3408
|
505 |
pass
|
gjc@3408
|
506 |
else:
|
gjc@3408
|
507 |
ns3_module_point_to_point__local.register_methods(root_module)
|
gjc@3408
|
508 |
|
gjc@3408
|
509 |
root_module.end_section('ns3_module_point_to_point')
|
mathieu@4552
|
510 |
root_module.begin_section('ns3_module_csma')
|
mathieu@4552
|
511 |
ns3_module_csma.register_methods(root_module)
|
gjc@3574
|
512 |
|
gjc@3574
|
513 |
try:
|
mathieu@4552
|
514 |
import ns3_module_csma__local
|
gjc@3574
|
515 |
except ImportError:
|
gjc@3574
|
516 |
pass
|
gjc@3574
|
517 |
else:
|
mathieu@4552
|
518 |
ns3_module_csma__local.register_methods(root_module)
|
gjc@3574
|
519 |
|
mathieu@4552
|
520 |
root_module.end_section('ns3_module_csma')
|
tomh@4574
|
521 |
root_module.begin_section('ns3_module_list_routing')
|
tomh@4574
|
522 |
ns3_module_list_routing.register_methods(root_module)
|
gjc@4204
|
523 |
|
gjc@4204
|
524 |
try:
|
tomh@4574
|
525 |
import ns3_module_list_routing__local
|
gjc@4204
|
526 |
except ImportError:
|
gjc@4204
|
527 |
pass
|
gjc@4204
|
528 |
else:
|
tomh@4574
|
529 |
ns3_module_list_routing__local.register_methods(root_module)
|
gjc@4204
|
530 |
|
tomh@4574
|
531 |
root_module.end_section('ns3_module_list_routing')
|
tomh@4574
|
532 |
root_module.begin_section('ns3_module_static_routing')
|
tomh@4574
|
533 |
ns3_module_static_routing.register_methods(root_module)
|
tomh@4574
|
534 |
|
tomh@4574
|
535 |
try:
|
tomh@4574
|
536 |
import ns3_module_static_routing__local
|
tomh@4574
|
537 |
except ImportError:
|
tomh@4574
|
538 |
pass
|
tomh@4574
|
539 |
else:
|
tomh@4574
|
540 |
ns3_module_static_routing__local.register_methods(root_module)
|
tomh@4574
|
541 |
|
tomh@4574
|
542 |
root_module.end_section('ns3_module_static_routing')
|
tomh@4574
|
543 |
root_module.begin_section('ns3_module_virtual_net_device')
|
tomh@4574
|
544 |
ns3_module_virtual_net_device.register_methods(root_module)
|
tomh@4574
|
545 |
|
tomh@4574
|
546 |
try:
|
tomh@4574
|
547 |
import ns3_module_virtual_net_device__local
|
tomh@4574
|
548 |
except ImportError:
|
tomh@4574
|
549 |
pass
|
tomh@4574
|
550 |
else:
|
tomh@4574
|
551 |
ns3_module_virtual_net_device__local.register_methods(root_module)
|
tomh@4574
|
552 |
|
tomh@4574
|
553 |
root_module.end_section('ns3_module_virtual_net_device')
|
gjc@3408
|
554 |
root_module.begin_section('ns3_module_wifi')
|
gjc@3408
|
555 |
ns3_module_wifi.register_methods(root_module)
|
gjc@3408
|
556 |
|
gjc@3408
|
557 |
try:
|
gjc@3408
|
558 |
import ns3_module_wifi__local
|
gjc@3408
|
559 |
except ImportError:
|
gjc@3408
|
560 |
pass
|
gjc@3408
|
561 |
else:
|
gjc@3408
|
562 |
ns3_module_wifi__local.register_methods(root_module)
|
gjc@3408
|
563 |
|
gjc@3408
|
564 |
root_module.end_section('ns3_module_wifi')
|
vincent@3842
|
565 |
root_module.begin_section('ns3_module_emu')
|
vincent@3842
|
566 |
ns3_module_emu.register_methods(root_module)
|
vincent@3842
|
567 |
|
vincent@3842
|
568 |
try:
|
vincent@3842
|
569 |
import ns3_module_emu__local
|
vincent@3842
|
570 |
except ImportError:
|
vincent@3842
|
571 |
pass
|
vincent@3842
|
572 |
else:
|
vincent@3842
|
573 |
ns3_module_emu__local.register_methods(root_module)
|
vincent@3842
|
574 |
|
vincent@3842
|
575 |
root_module.end_section('ns3_module_emu')
|
tomh@4574
|
576 |
root_module.begin_section('ns3_module_bridge')
|
tomh@4574
|
577 |
ns3_module_bridge.register_methods(root_module)
|
tomh@4574
|
578 |
|
tomh@4574
|
579 |
try:
|
tomh@4574
|
580 |
import ns3_module_bridge__local
|
tomh@4574
|
581 |
except ImportError:
|
tomh@4574
|
582 |
pass
|
tomh@4574
|
583 |
else:
|
tomh@4574
|
584 |
ns3_module_bridge__local.register_methods(root_module)
|
tomh@4574
|
585 |
|
tomh@4574
|
586 |
root_module.end_section('ns3_module_bridge')
|
gjc@3408
|
587 |
root_module.begin_section('ns3_module_global_routing')
|
gjc@3408
|
588 |
ns3_module_global_routing.register_methods(root_module)
|
gjc@3408
|
589 |
|
gjc@3408
|
590 |
try:
|
gjc@3408
|
591 |
import ns3_module_global_routing__local
|
gjc@3408
|
592 |
except ImportError:
|
gjc@3408
|
593 |
pass
|
gjc@3408
|
594 |
else:
|
gjc@3408
|
595 |
ns3_module_global_routing__local.register_methods(root_module)
|
gjc@3408
|
596 |
|
gjc@3408
|
597 |
root_module.end_section('ns3_module_global_routing')
|
gjc@4204
|
598 |
root_module.begin_section('ns3_module_udp_echo')
|
gjc@4204
|
599 |
ns3_module_udp_echo.register_methods(root_module)
|
gjc@3408
|
600 |
|
gjc@3408
|
601 |
try:
|
gjc@4204
|
602 |
import ns3_module_udp_echo__local
|
gjc@3408
|
603 |
except ImportError:
|
gjc@3408
|
604 |
pass
|
gjc@3408
|
605 |
else:
|
gjc@4204
|
606 |
ns3_module_udp_echo__local.register_methods(root_module)
|
gjc@3408
|
607 |
|
gjc@4204
|
608 |
root_module.end_section('ns3_module_udp_echo')
|
gjc@3408
|
609 |
root_module.begin_section('ns3_module_olsr')
|
gjc@3408
|
610 |
ns3_module_olsr.register_methods(root_module)
|
gjc@3408
|
611 |
|
gjc@3408
|
612 |
try:
|
gjc@3408
|
613 |
import ns3_module_olsr__local
|
gjc@3408
|
614 |
except ImportError:
|
gjc@3408
|
615 |
pass
|
gjc@3408
|
616 |
else:
|
gjc@3408
|
617 |
ns3_module_olsr__local.register_methods(root_module)
|
gjc@3408
|
618 |
|
gjc@3408
|
619 |
root_module.end_section('ns3_module_olsr')
|
gjc@3408
|
620 |
root_module.begin_section('ns3_module_helper')
|
gjc@3408
|
621 |
ns3_module_helper.register_methods(root_module)
|
gjc@3408
|
622 |
|
gjc@3408
|
623 |
try:
|
gjc@3408
|
624 |
import ns3_module_helper__local
|
gjc@3408
|
625 |
except ImportError:
|
gjc@3408
|
626 |
pass
|
gjc@3408
|
627 |
else:
|
gjc@3408
|
628 |
ns3_module_helper__local.register_methods(root_module)
|
gjc@3408
|
629 |
|
gjc@3408
|
630 |
root_module.end_section('ns3_module_helper')
|
gjc@3408
|
631 |
return
|
gjc@3408
|
632 |
|
gjc@3408
|
633 |
def register_functions(root_module):
|
gjc@3408
|
634 |
module = root_module
|
gjc@3408
|
635 |
root_module.begin_section('ns3_module_core')
|
gjc@3408
|
636 |
ns3_module_core.register_functions(root_module)
|
gjc@3408
|
637 |
|
gjc@3408
|
638 |
try:
|
gjc@3408
|
639 |
import ns3_module_core__local
|
gjc@3408
|
640 |
except ImportError:
|
gjc@3408
|
641 |
pass
|
gjc@3408
|
642 |
else:
|
gjc@3408
|
643 |
ns3_module_core__local.register_functions(root_module)
|
gjc@3408
|
644 |
|
gjc@3408
|
645 |
root_module.end_section('ns3_module_core')
|
gjc@3408
|
646 |
root_module.begin_section('ns3_module_simulator')
|
gjc@3408
|
647 |
ns3_module_simulator.register_functions(root_module)
|
gjc@3408
|
648 |
|
gjc@3408
|
649 |
try:
|
gjc@3408
|
650 |
import ns3_module_simulator__local
|
gjc@3408
|
651 |
except ImportError:
|
gjc@3408
|
652 |
pass
|
gjc@3408
|
653 |
else:
|
gjc@3408
|
654 |
ns3_module_simulator__local.register_functions(root_module)
|
gjc@3408
|
655 |
|
gjc@3408
|
656 |
root_module.end_section('ns3_module_simulator')
|
gjc@3408
|
657 |
root_module.begin_section('ns3_module_mobility')
|
gjc@3408
|
658 |
ns3_module_mobility.register_functions(root_module)
|
gjc@3408
|
659 |
|
gjc@3408
|
660 |
try:
|
gjc@3408
|
661 |
import ns3_module_mobility__local
|
gjc@3408
|
662 |
except ImportError:
|
gjc@3408
|
663 |
pass
|
gjc@3408
|
664 |
else:
|
gjc@3408
|
665 |
ns3_module_mobility__local.register_functions(root_module)
|
gjc@3408
|
666 |
|
gjc@3408
|
667 |
root_module.end_section('ns3_module_mobility')
|
gjc@3408
|
668 |
root_module.begin_section('ns3_module_common')
|
gjc@3408
|
669 |
ns3_module_common.register_functions(root_module)
|
gjc@3408
|
670 |
|
gjc@3408
|
671 |
try:
|
gjc@3408
|
672 |
import ns3_module_common__local
|
gjc@3408
|
673 |
except ImportError:
|
gjc@3408
|
674 |
pass
|
gjc@3408
|
675 |
else:
|
gjc@3408
|
676 |
ns3_module_common__local.register_functions(root_module)
|
gjc@3408
|
677 |
|
gjc@3408
|
678 |
root_module.end_section('ns3_module_common')
|
mathieu@4552
|
679 |
root_module.begin_section('ns3_module_contrib')
|
mathieu@4552
|
680 |
ns3_module_contrib.register_functions(root_module)
|
mathieu@4552
|
681 |
|
mathieu@4552
|
682 |
try:
|
mathieu@4552
|
683 |
import ns3_module_contrib__local
|
mathieu@4552
|
684 |
except ImportError:
|
mathieu@4552
|
685 |
pass
|
mathieu@4552
|
686 |
else:
|
mathieu@4552
|
687 |
ns3_module_contrib__local.register_functions(root_module)
|
mathieu@4552
|
688 |
|
mathieu@4552
|
689 |
root_module.end_section('ns3_module_contrib')
|
craigdo@3972
|
690 |
root_module.begin_section('ns3_module_node')
|
craigdo@3972
|
691 |
ns3_module_node.register_functions(root_module)
|
craigdo@3972
|
692 |
|
craigdo@3972
|
693 |
try:
|
craigdo@3972
|
694 |
import ns3_module_node__local
|
craigdo@3972
|
695 |
except ImportError:
|
craigdo@3972
|
696 |
pass
|
craigdo@3972
|
697 |
else:
|
craigdo@3972
|
698 |
ns3_module_node__local.register_functions(root_module)
|
craigdo@3972
|
699 |
|
craigdo@3972
|
700 |
root_module.end_section('ns3_module_node')
|
mathieu@4552
|
701 |
root_module.begin_section('ns3_module_tap_bridge')
|
mathieu@4552
|
702 |
ns3_module_tap_bridge.register_functions(root_module)
|
gjc@3408
|
703 |
|
gjc@3408
|
704 |
try:
|
mathieu@4552
|
705 |
import ns3_module_tap_bridge__local
|
gjc@3408
|
706 |
except ImportError:
|
gjc@3408
|
707 |
pass
|
gjc@3408
|
708 |
else:
|
mathieu@4552
|
709 |
ns3_module_tap_bridge__local.register_functions(root_module)
|
gjc@3408
|
710 |
|
mathieu@4552
|
711 |
root_module.end_section('ns3_module_tap_bridge')
|
mathieu@4552
|
712 |
root_module.begin_section('ns3_module_v4ping')
|
mathieu@4552
|
713 |
ns3_module_v4ping.register_functions(root_module)
|
mathieu@4552
|
714 |
|
mathieu@4552
|
715 |
try:
|
mathieu@4552
|
716 |
import ns3_module_v4ping__local
|
mathieu@4552
|
717 |
except ImportError:
|
mathieu@4552
|
718 |
pass
|
mathieu@4552
|
719 |
else:
|
mathieu@4552
|
720 |
ns3_module_v4ping__local.register_functions(root_module)
|
mathieu@4552
|
721 |
|
mathieu@4552
|
722 |
root_module.end_section('ns3_module_v4ping')
|
mathieu@4552
|
723 |
root_module.begin_section('ns3_module_packet_sink')
|
mathieu@4552
|
724 |
ns3_module_packet_sink.register_functions(root_module)
|
mathieu@4552
|
725 |
|
mathieu@4552
|
726 |
try:
|
mathieu@4552
|
727 |
import ns3_module_packet_sink__local
|
mathieu@4552
|
728 |
except ImportError:
|
mathieu@4552
|
729 |
pass
|
mathieu@4552
|
730 |
else:
|
mathieu@4552
|
731 |
ns3_module_packet_sink__local.register_functions(root_module)
|
mathieu@4552
|
732 |
|
mathieu@4552
|
733 |
root_module.end_section('ns3_module_packet_sink')
|
mathieu@4552
|
734 |
root_module.begin_section('ns3_module_stats')
|
mathieu@4552
|
735 |
ns3_module_stats.register_functions(root_module)
|
mathieu@4552
|
736 |
|
mathieu@4552
|
737 |
try:
|
mathieu@4552
|
738 |
import ns3_module_stats__local
|
mathieu@4552
|
739 |
except ImportError:
|
mathieu@4552
|
740 |
pass
|
mathieu@4552
|
741 |
else:
|
mathieu@4552
|
742 |
ns3_module_stats__local.register_functions(root_module)
|
mathieu@4552
|
743 |
|
mathieu@4552
|
744 |
root_module.end_section('ns3_module_stats')
|
mathieu@4552
|
745 |
root_module.begin_section('ns3_module_onoff')
|
mathieu@4552
|
746 |
ns3_module_onoff.register_functions(root_module)
|
mathieu@4552
|
747 |
|
mathieu@4552
|
748 |
try:
|
mathieu@4552
|
749 |
import ns3_module_onoff__local
|
mathieu@4552
|
750 |
except ImportError:
|
mathieu@4552
|
751 |
pass
|
mathieu@4552
|
752 |
else:
|
mathieu@4552
|
753 |
ns3_module_onoff__local.register_functions(root_module)
|
mathieu@4552
|
754 |
|
mathieu@4552
|
755 |
root_module.end_section('ns3_module_onoff')
|
mathieu@4552
|
756 |
root_module.begin_section('ns3_module_internet_stack')
|
mathieu@4552
|
757 |
ns3_module_internet_stack.register_functions(root_module)
|
mathieu@4552
|
758 |
|
mathieu@4552
|
759 |
try:
|
mathieu@4552
|
760 |
import ns3_module_internet_stack__local
|
mathieu@4552
|
761 |
except ImportError:
|
mathieu@4552
|
762 |
pass
|
mathieu@4552
|
763 |
else:
|
mathieu@4552
|
764 |
ns3_module_internet_stack__local.register_functions(root_module)
|
mathieu@4552
|
765 |
|
mathieu@4552
|
766 |
root_module.end_section('ns3_module_internet_stack')
|
gjc@3408
|
767 |
root_module.begin_section('ns3_module_point_to_point')
|
gjc@3408
|
768 |
ns3_module_point_to_point.register_functions(root_module)
|
gjc@3408
|
769 |
|
gjc@3408
|
770 |
try:
|
gjc@3408
|
771 |
import ns3_module_point_to_point__local
|
gjc@3408
|
772 |
except ImportError:
|
gjc@3408
|
773 |
pass
|
gjc@3408
|
774 |
else:
|
gjc@3408
|
775 |
ns3_module_point_to_point__local.register_functions(root_module)
|
gjc@3408
|
776 |
|
gjc@3408
|
777 |
root_module.end_section('ns3_module_point_to_point')
|
mathieu@4552
|
778 |
root_module.begin_section('ns3_module_csma')
|
mathieu@4552
|
779 |
ns3_module_csma.register_functions(root_module)
|
gjc@3574
|
780 |
|
gjc@3574
|
781 |
try:
|
mathieu@4552
|
782 |
import ns3_module_csma__local
|
gjc@3574
|
783 |
except ImportError:
|
gjc@3574
|
784 |
pass
|
gjc@3574
|
785 |
else:
|
mathieu@4552
|
786 |
ns3_module_csma__local.register_functions(root_module)
|
gjc@3574
|
787 |
|
mathieu@4552
|
788 |
root_module.end_section('ns3_module_csma')
|
tomh@4574
|
789 |
root_module.begin_section('ns3_module_list_routing')
|
tomh@4574
|
790 |
ns3_module_list_routing.register_functions(root_module)
|
gjc@4204
|
791 |
|
gjc@4204
|
792 |
try:
|
tomh@4574
|
793 |
import ns3_module_list_routing__local
|
gjc@4204
|
794 |
except ImportError:
|
gjc@4204
|
795 |
pass
|
gjc@4204
|
796 |
else:
|
tomh@4574
|
797 |
ns3_module_list_routing__local.register_functions(root_module)
|
gjc@4204
|
798 |
|
tomh@4574
|
799 |
root_module.end_section('ns3_module_list_routing')
|
tomh@4574
|
800 |
root_module.begin_section('ns3_module_static_routing')
|
tomh@4574
|
801 |
ns3_module_static_routing.register_functions(root_module)
|
tomh@4574
|
802 |
|
tomh@4574
|
803 |
try:
|
tomh@4574
|
804 |
import ns3_module_static_routing__local
|
tomh@4574
|
805 |
except ImportError:
|
tomh@4574
|
806 |
pass
|
tomh@4574
|
807 |
else:
|
tomh@4574
|
808 |
ns3_module_static_routing__local.register_functions(root_module)
|
tomh@4574
|
809 |
|
tomh@4574
|
810 |
root_module.end_section('ns3_module_static_routing')
|
tomh@4574
|
811 |
root_module.begin_section('ns3_module_virtual_net_device')
|
tomh@4574
|
812 |
ns3_module_virtual_net_device.register_functions(root_module)
|
tomh@4574
|
813 |
|
tomh@4574
|
814 |
try:
|
tomh@4574
|
815 |
import ns3_module_virtual_net_device__local
|
tomh@4574
|
816 |
except ImportError:
|
tomh@4574
|
817 |
pass
|
tomh@4574
|
818 |
else:
|
tomh@4574
|
819 |
ns3_module_virtual_net_device__local.register_functions(root_module)
|
tomh@4574
|
820 |
|
tomh@4574
|
821 |
root_module.end_section('ns3_module_virtual_net_device')
|
gjc@3408
|
822 |
root_module.begin_section('ns3_module_wifi')
|
gjc@3408
|
823 |
ns3_module_wifi.register_functions(root_module)
|
gjc@3408
|
824 |
|
gjc@3408
|
825 |
try:
|
gjc@3408
|
826 |
import ns3_module_wifi__local
|
gjc@3408
|
827 |
except ImportError:
|
gjc@3408
|
828 |
pass
|
gjc@3408
|
829 |
else:
|
gjc@3408
|
830 |
ns3_module_wifi__local.register_functions(root_module)
|
gjc@3408
|
831 |
|
gjc@3408
|
832 |
root_module.end_section('ns3_module_wifi')
|
vincent@3842
|
833 |
root_module.begin_section('ns3_module_emu')
|
vincent@3842
|
834 |
ns3_module_emu.register_functions(root_module)
|
vincent@3842
|
835 |
|
vincent@3842
|
836 |
try:
|
vincent@3842
|
837 |
import ns3_module_emu__local
|
vincent@3842
|
838 |
except ImportError:
|
vincent@3842
|
839 |
pass
|
vincent@3842
|
840 |
else:
|
vincent@3842
|
841 |
ns3_module_emu__local.register_functions(root_module)
|
vincent@3842
|
842 |
|
vincent@3842
|
843 |
root_module.end_section('ns3_module_emu')
|
tomh@4574
|
844 |
root_module.begin_section('ns3_module_bridge')
|
tomh@4574
|
845 |
ns3_module_bridge.register_functions(root_module)
|
tomh@4574
|
846 |
|
tomh@4574
|
847 |
try:
|
tomh@4574
|
848 |
import ns3_module_bridge__local
|
tomh@4574
|
849 |
except ImportError:
|
tomh@4574
|
850 |
pass
|
tomh@4574
|
851 |
else:
|
tomh@4574
|
852 |
ns3_module_bridge__local.register_functions(root_module)
|
tomh@4574
|
853 |
|
tomh@4574
|
854 |
root_module.end_section('ns3_module_bridge')
|
gjc@3408
|
855 |
root_module.begin_section('ns3_module_global_routing')
|
gjc@3408
|
856 |
ns3_module_global_routing.register_functions(root_module)
|
gjc@3408
|
857 |
|
gjc@3408
|
858 |
try:
|
gjc@3408
|
859 |
import ns3_module_global_routing__local
|
gjc@3408
|
860 |
except ImportError:
|
gjc@3408
|
861 |
pass
|
gjc@3408
|
862 |
else:
|
gjc@3408
|
863 |
ns3_module_global_routing__local.register_functions(root_module)
|
gjc@3408
|
864 |
|
gjc@3408
|
865 |
root_module.end_section('ns3_module_global_routing')
|
gjc@4204
|
866 |
root_module.begin_section('ns3_module_udp_echo')
|
gjc@4204
|
867 |
ns3_module_udp_echo.register_functions(root_module)
|
gjc@3408
|
868 |
|
gjc@3408
|
869 |
try:
|
gjc@4204
|
870 |
import ns3_module_udp_echo__local
|
gjc@3408
|
871 |
except ImportError:
|
gjc@3408
|
872 |
pass
|
gjc@3408
|
873 |
else:
|
gjc@4204
|
874 |
ns3_module_udp_echo__local.register_functions(root_module)
|
gjc@3408
|
875 |
|
gjc@4204
|
876 |
root_module.end_section('ns3_module_udp_echo')
|
gjc@3408
|
877 |
root_module.begin_section('ns3_module_olsr')
|
gjc@3408
|
878 |
ns3_module_olsr.register_functions(root_module)
|
gjc@3408
|
879 |
|
gjc@3408
|
880 |
try:
|
gjc@3408
|
881 |
import ns3_module_olsr__local
|
gjc@3408
|
882 |
except ImportError:
|
gjc@3408
|
883 |
pass
|
gjc@3408
|
884 |
else:
|
gjc@3408
|
885 |
ns3_module_olsr__local.register_functions(root_module)
|
gjc@3408
|
886 |
|
gjc@3408
|
887 |
root_module.end_section('ns3_module_olsr')
|
gjc@3408
|
888 |
root_module.begin_section('ns3_module_helper')
|
gjc@3408
|
889 |
ns3_module_helper.register_functions(root_module)
|
gjc@3408
|
890 |
|
gjc@3408
|
891 |
try:
|
gjc@3408
|
892 |
import ns3_module_helper__local
|
gjc@3408
|
893 |
except ImportError:
|
gjc@3408
|
894 |
pass
|
gjc@3408
|
895 |
else:
|
gjc@3408
|
896 |
ns3_module_helper__local.register_functions(root_module)
|
gjc@3408
|
897 |
|
gjc@3408
|
898 |
root_module.end_section('ns3_module_helper')
|
gjc@3855
|
899 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
gjc@3855
|
900 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
tomh@4474
|
901 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
gjc@3408
|
902 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
gjc@3408
|
903 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
gjc@3408
|
904 |
return
|
gjc@3408
|
905 |
|
gjc@3855
|
906 |
def register_functions_ns3_Config(module, root_module):
|
gjc@3408
|
907 |
return
|
gjc@3408
|
908 |
|
gjc@3408
|
909 |
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
gjc@3408
|
910 |
return
|
gjc@3408
|
911 |
|
tomh@4474
|
912 |
def register_functions_ns3_addressUtils(module, root_module):
|
tomh@4474
|
913 |
return
|
tomh@4474
|
914 |
|
gjc@3855
|
915 |
def register_functions_ns3_internal(module, root_module):
|
gjc@3408
|
916 |
return
|
gjc@3408
|
917 |
|
gjc@3408
|
918 |
def register_functions_ns3_olsr(module, root_module):
|
gjc@3408
|
919 |
return
|
gjc@3408
|
920 |
|
gjc@3408
|
921 |
def main():
|
gjc@3408
|
922 |
out = FileCodeSink(sys.stdout)
|
gjc@3408
|
923 |
root_module = module_init()
|
gjc@3408
|
924 |
register_types(root_module)
|
gjc@3408
|
925 |
register_methods(root_module)
|
gjc@3408
|
926 |
register_functions(root_module)
|
gjc@3408
|
927 |
root_module.generate(out)
|
gjc@3408
|
928 |
|
gjc@3408
|
929 |
if __name__ == '__main__':
|
gjc@3408
|
930 |
main()
|
gjc@3408
|
931 |
|