FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Files Functions Typedefs Pages
Classes | Public Member Functions | List of all members
ns3::FNSSSimulation Class Reference

#include <fnss-simulation.h>

Public Member Functions

 FNSSSimulation (const std::string &file)
 
 FNSSSimulation (const fnss::Topology &topology)
 
void scheduleEvents (const std::string &file)
 
void scheduleEvents (const fnss::EventSchedule &schedule)
 
void assignIPv4Addresses (const Ipv4Address &base=Ipv4Address("10.0.0.0"))
 
PointToPointHelper & getP2PHHelper ()
 
Ptr< Node > getNode (const std::string &id) const
 
std::list< NetDeviceContainer > getAllEdgeDevices () const
 
std::map< std::string, Ptr
< Application > > 
getApplications (const std::string &id) const
 

Detailed Description

Helps with setting up a FNSS-based simulation.

Constructor & Destructor Documentation

ns3::FNSSSimulation::FNSSSimulation ( const std::string &  file)

Create the simulation from a XML topology file.

Parameters
filethe XML topology file to parse.
ns3::FNSSSimulation::FNSSSimulation ( const fnss::Topology topology)

Create the simulation from a fnss::Topology object.

Parameters
thefnss::Topology object to use.

Member Function Documentation

void ns3::FNSSSimulation::assignIPv4Addresses ( const Ipv4Address &  base = Ipv4Address("10.0.0.0"))

Assign ipv4 addresses to the crated links, one /30 subnet per link.

Parameters
basethe address base.
std::list< NetDeviceContainer > ns3::FNSSSimulation::getAllEdgeDevices ( ) const

Get a std::list of ns3::NetDeviceContainers. Each NetDeviceContainer has two elements, the end points of a link.

Returns
the set of NetDeviceContainers.
std::map< std::string, Ptr< Application > > ns3::FNSSSimulation::getApplications ( const std::string &  id) const

Get a std::map from application name to ns3::Application pointer of all the applications installed on the specified node.

Parameters
idthe id of the node.
Returns
the application map.
Ptr< Node > ns3::FNSSSimulation::getNode ( const std::string &  id) const

Get a ns3::Ptr to the specified node.

Parameters
idthe id of the requested node.
Returns
a Ptr<Node> to the requested node object.
PointToPointHelper & ns3::FNSSSimulation::getP2PHHelper ( )

Get a reference to the ns3::PointToPointHelper that was used when creating the links. Useful for enabling PCAP capture form the main simulation.

Returns
reference to the helper object.
void ns3::FNSSSimulation::scheduleEvents ( const std::string &  file)

Create events from a XML event schedule file. Every event must have a event_type property that must match an existing class name deriving from ns3::FNSSEvent.

Parameters
filethe XML event schedule file to parse.
void ns3::FNSSSimulation::scheduleEvents ( const fnss::EventSchedule schedule)

Create events from a fnss::EventSchedule object. Every event must have a event_type property that must match an existing class name deriving from ns3::FNSSEvent.

Parameters
schedulethe fnss::EventSchedule object to use.

The documentation for this class was generated from the following files: