Make examples runable as tests

This commit is contained in:
Tim Schubert 2020-08-29 21:11:55 +02:00
parent fccc05f6c2
commit 3f4ba0a8c1
5 changed files with 107 additions and 26 deletions

View file

@ -9,6 +9,7 @@
#include "ns3/node-container.h"
#include "ns3/leo-circular-orbit-mobility-model.h"
#include "ns3/leo-circular-orbit-position-allocator.h"
#include "ns3/leo-orbit.h"
/**
* \brief Builds a node container of nodes with LEO positions using a list of
@ -33,6 +34,20 @@ public:
*/
NodeContainer Install (const std::string &orbitFile);
/**
*
* \param orbits orbit definitions
* \returns a node container containing nodes using the specified attributes
*/
NodeContainer Install (const std::vector<LeoOrbit> &orbits);
/**
*
* \param orbit orbit definition
* \returns a node container containing nodes using the specified attributes
*/
NodeContainer Install (const LeoOrbit &orbit);
/**
* Set an attribute for each node
*