FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
|
#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 |
Helps with setting up a FNSS-based simulation.
ns3::FNSSSimulation::FNSSSimulation | ( | const std::string & | file | ) |
Create the simulation from a XML topology file.
file | the XML topology file to parse. |
ns3::FNSSSimulation::FNSSSimulation | ( | const fnss::Topology & | topology | ) |
Create the simulation from a fnss::Topology object.
the | fnss::Topology object to use. |
void ns3::FNSSSimulation::assignIPv4Addresses | ( | const Ipv4Address & | base = Ipv4Address("10.0.0.0") | ) |
Assign ipv4 addresses to the crated links, one /30 subnet per link.
base | the 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.
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.
id | the id of the node. |
Ptr< Node > ns3::FNSSSimulation::getNode | ( | const std::string & | id | ) | const |
Get a ns3::Ptr to the specified node.
id | the id of the requested node. |
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.
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.
file | the 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.
schedule | the fnss::EventSchedule object to use. |