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