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