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