|
FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
|
#include <fnss-node.h>
Inheritance diagram for fnss::Node:Classes | |
| class | ApplicationNotFoundException |
Public Member Functions | |
| Node (const ProtocolStack &stack=ProtocolStack()) | |
| ProtocolStack | getProtocolStack () const |
| void | setProtocolStack (const ProtocolStack &stack) |
| Application | getApplication (const std::string &name) const |
| void | setApplication (const Application &application) |
| Application | removeApplication (const std::string &name) |
| std::set< std::string > | getAllApplications () const |
Public Member Functions inherited from fnss::PropertyContainer | |
| std::string | getProperty (const std::string &name) const |
| void | setProperty (const std::string &name, const std::string &value="") |
| bool | hasProperty (const std::string &name) const |
| void | addProperties (const PropertyContainer &other) |
| std::string | removeProperty (const std::string &name) |
| std::set< std::string > | getAllProperties () const |
Represent a node of a topology
Each node comprises a set of properties (e.g. if the node is a router/switch or host), a protocol stack and multiple applications.
| fnss::Node::Node | ( | const ProtocolStack & | stack = ProtocolStack() | ) |
Constructor.
| stack | the ProtocolStack to be deployed on the node. |
| std::set< std::string > fnss::Node::getAllApplications | ( | ) | const |
Remove the specified Application from the node.
| name | name of the application to remove. |
| found | set to true if the Application with the specified name was found, false otherwise. |
Application object if present or Application() otherwise. Get a std::set containing the names of all the application deployed on the node.| Application fnss::Node::getApplication | ( | const std::string & | name | ) | const |
Get a a copy of the application with the specified name.
Throws an exception if the specified application was not found.
| name | name of the application |
Application object. | ProtocolStack fnss::Node::getProtocolStack | ( | ) | const |
Get a copy of the ProtocolStack currently deployed on the node.
ProtocolStack. | Application fnss::Node::removeApplication | ( | const std::string & | name | ) |
Remove the specified Application from the node.
Throws an exception if the specified application was not found.
| name | name of the application to remove. |
Application object. | void fnss::Node::setApplication | ( | const Application & | application | ) |
Get a a copy of the application with the specified name.
| name | name of the application. |
| found | set to true if the Application with the specified name was found, false otherwise. |
Application object if present or Application() otherwise. Deploy or overwrite the given Application on the node.| application | the Application to deploy. |
| void fnss::Node::setProtocolStack | ( | const ProtocolStack & | stack | ) |
Overwrite the currently deployed ProtocolStack.
| stack | the ProtocolStack to deploy. |
1.8.6