Add netanim module
This commit is contained in:
1 parent
728b6200d6
commit
344f51c8af
22 files changed
+42
-25
No files matched your search
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/netanim-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "ns3/aodv-module.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/mobility-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/wifi-module.h"
|
||||
|
||||
@@ -4,22 +4,12 @@ def build(bld):
|
||||
helper = bld.create_ns3_module('helper', ['mobility', 'network', 'internet', 'wifi', 'point-to-point', 'spectrum'])
|
||||
helper.source = [
|
||||
'athstats-helper.cc',
|
||||
'animation-interface.cc',
|
||||
'canvas-location.cc',
|
||||
]
|
||||
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'helper'
|
||||
headers.source = [
|
||||
'athstats-helper.h',
|
||||
'animation-interface.h',
|
||||
'canvas-location.h',
|
||||
]
|
||||
|
||||
env = bld.env_of_name('default')
|
||||
|
||||
def configure(conf):
|
||||
conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H')
|
||||
conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H')
|
||||
conf.write_config_header('ns3/net-anim-config.h', top=True)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/netanim-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/netanim-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
#include "ns3/ipv4-global-routing-helper.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/netanim-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
#include "ns3/point-to-point-module.h"
|
||||
#include "ns3/applications-module.h"
|
||||
File renamed without changes.
@@ -2,13 +2,13 @@
|
||||
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_program('dumbbell-animation',
|
||||
['point-to-point', 'internet'])
|
||||
['netanim'])
|
||||
obj.source = 'dumbbell-animation.cc'
|
||||
|
||||
obj = bld.create_ns3_program('grid-animation',
|
||||
['point-to-point', 'internet'])
|
||||
['netanim'])
|
||||
obj.source = 'grid-animation.cc'
|
||||
|
||||
obj = bld.create_ns3_program('star-animation',
|
||||
['point-to-point', 'internet'])
|
||||
['netanim'])
|
||||
obj.source = 'star-animation.cc'
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
@@ -0,0 +1 @@
|
||||
exec "`dirname "$0"`"/../../waf "$@"
|
||||
@@ -0,0 +1,31 @@
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
module = bld.create_ns3_module('netanim', ['internet', 'point-to-point'])
|
||||
module.includes = '.'
|
||||
module.source = [
|
||||
'model/animation-interface.cc',
|
||||
'model/canvas-location.cc',
|
||||
'helper/point-to-point-dumbbell-helper.cc',
|
||||
'helper/point-to-point-grid-helper.cc',
|
||||
'helper/point-to-point-star-helper.cc',
|
||||
]
|
||||
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'netanim'
|
||||
headers.source = [
|
||||
'model/animation-interface.h',
|
||||
'model/canvas-location.h',
|
||||
'helper/point-to-point-dumbbell-helper.h',
|
||||
'helper/point-to-point-grid-helper.h',
|
||||
'helper/point-to-point-star-helper.h',
|
||||
]
|
||||
|
||||
if (bld.env['ENABLE_EXAMPLES']):
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
def configure(conf):
|
||||
conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H')
|
||||
conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H')
|
||||
conf.write_config_header('ns3/net-anim-config.h', top=True)
|
||||
|
||||
@@ -10,9 +10,6 @@ def build(bld):
|
||||
'model/point-to-point-test.cc',
|
||||
'model/ppp-header.cc',
|
||||
'helper/point-to-point-helper.cc',
|
||||
'helper/point-to-point-grid-helper.cc',
|
||||
'helper/point-to-point-dumbbell-helper.cc',
|
||||
'helper/point-to-point-star-helper.cc',
|
||||
]
|
||||
headers = bld.new_task_gen('ns3header')
|
||||
headers.module = 'point-to-point'
|
||||
@@ -22,8 +19,5 @@ def build(bld):
|
||||
'model/point-to-point-remote-channel.h',
|
||||
'model/ppp-header.h',
|
||||
'helper/point-to-point-helper.h',
|
||||
'helper/point-to-point-grid-helper.h',
|
||||
'helper/point-to-point-dumbbell-helper.h',
|
||||
'helper/point-to-point-star-helper.h',
|
||||
]
|
||||
|
||||
+2
-1
@@ -38,6 +38,7 @@ all_modules = (
|
||||
'mobility',
|
||||
'wifi',
|
||||
'helper',
|
||||
'netanim',
|
||||
'stats',
|
||||
'uan',
|
||||
'spectrum',
|
||||
@@ -79,7 +80,7 @@ def configure(conf):
|
||||
conf.sub_config('tap-bridge')
|
||||
conf.sub_config('contrib')
|
||||
conf.sub_config('internet')
|
||||
conf.sub_config('helper')
|
||||
conf.sub_config('netanim')
|
||||
conf.sub_config('test')
|
||||
conf.sub_config('click')
|
||||
|
||||
|
||||
Reference in new issue
Block a user