author | Mitch Watrous <watrous@u.washington.edu> |
Thu, 07 Apr 2011 10:07:46 -0700 | |
changeset 7007 | 4010b8f3872c |
parent 6949 | 8167c9e2a12d |
child 7028 | 3963d3678649 |
permissions | -rw-r--r-- |
968
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
2 |
|
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
3 |
def build(bld): |
6839
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
4 |
mobility = bld.create_ns3_module('mobility', ['network']) |
968
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
5 |
mobility.source = [ |
6839
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
6 |
'model/box.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
7 |
'model/constant-acceleration-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
8 |
'model/constant-position-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
9 |
'model/constant-velocity-helper.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
10 |
'model/constant-velocity-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
11 |
'model/gauss-markov-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
12 |
'model/hierarchical-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
13 |
'model/mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
14 |
'model/position-allocator.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
15 |
'model/random-direction-2d-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
16 |
'model/random-walk-2d-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
17 |
'model/random-waypoint-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
18 |
'model/rectangle.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
19 |
'model/steady-state-random-waypoint-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
20 |
'model/waypoint.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
21 |
'model/waypoint-mobility-model.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
22 |
'helper/mobility-helper.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
23 |
'helper/ns2-mobility-helper.cc', |
6949
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6893
diff
changeset
|
24 |
] |
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6893
diff
changeset
|
25 |
|
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6893
diff
changeset
|
26 |
mobility_test = bld.create_ns3_module_test_library('mobility') |
8167c9e2a12d
Create test module libraries for some modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6893
diff
changeset
|
27 |
mobility_test.source = [ |
7007
4010b8f3872c
Move tests from mobility module to its test library
Mitch Watrous <watrous@u.washington.edu>
parents:
6949
diff
changeset
|
28 |
'test/ns2-mobility-helper-test-suite.cc', |
6839
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
29 |
'test/steady-state-random-waypoint-mobility-model-test.cc', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
30 |
'test/waypoint-mobility-model-test.cc', |
968
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
31 |
] |
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
32 |
|
4064
10222f483860
Upgrade to new WAF, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3021
diff
changeset
|
33 |
headers = bld.new_task_gen('ns3header') |
2609
931d59bb1303
Add a 'module' attribute to the ns3header object specifying which module each set of headers belongs to.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
2603
diff
changeset
|
34 |
headers.module = 'mobility' |
968
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
35 |
headers.source = [ |
6839
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
36 |
'model/box.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
37 |
'model/constant-acceleration-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
38 |
'model/constant-position-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
39 |
'model/constant-velocity-helper.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
40 |
'model/constant-velocity-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
41 |
'model/gauss-markov-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
42 |
'model/hierarchical-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
43 |
'model/mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
44 |
'model/position-allocator.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
45 |
'model/rectangle.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
46 |
'model/random-direction-2d-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
47 |
'model/random-walk-2d-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
48 |
'model/random-waypoint-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
49 |
'model/steady-state-random-waypoint-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
50 |
'model/waypoint.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
51 |
'model/waypoint-mobility-model.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
52 |
'helper/mobility-helper.h', |
34074e4ed93b
mobility module to new directory structure
Tom Henderson <tomh@tomh.org>
parents:
6821
diff
changeset
|
53 |
'helper/ns2-mobility-helper.h', |
968
70d02500c9d5
mobility models
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
54 |
] |
6893
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6839
diff
changeset
|
55 |
|
5dccd86f90cf
Modular Python bindings work (many bug fixes, more modules tested)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
6839
diff
changeset
|
56 |
bld.ns3_python_bindings() |