19 #include "ns3/core-module.h"
20 #include "ns3/network-module.h"
21 #include "ns3/mobility-module.h"
26 int main (
int argc,
char *argv[])
29 cmd.
Parse (argc, argv);
60 j != nodes.
End (); ++j)
66 std::cout <<
"x=" << pos.
x <<
", y=" << pos.
y <<
", z=" << pos.
z << std::endl;
double x
x coordinate of vector
std::vector< Ptr< Node > >::const_iterator Iterator
hold variables of type string
#define NS_ASSERT(condition)
Vector GetPosition(void) const
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
Keep track of the current position and velocity of an object.
int main(int argc, char *argv[])
void Install(Ptr< Node > node) const
"Layout" a single node according to the current position allocator type.
Hold an unsigned integer type.
Parse command-line arguments.
static void Destroy(void)
Every event scheduled by the Simulator::insertAtDestroy method is invoked.
keep track of a set of node pointers.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
void SetMobilityModel(std::string type, std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue(), std::string n8="", const AttributeValue &v8=EmptyAttributeValue(), std::string n9="", const AttributeValue &v9=EmptyAttributeValue())
double y
y coordinate of vector
Helper class used to assign positions and mobility models to nodes.
void Parse(int argc, char *argv[])
Parse the program arguments.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
void SetPositionAllocator(Ptr< PositionAllocator > allocator)
Set the position allocator which will be used to allocate the initial position of every node initiali...
Hold a floating point type.
Ptr< T > GetObject(void) const
double z
z coordinate of vector