21 #ifndef MOBILITY_HELPER_H 22 #define MOBILITY_HELPER_H 25 #include "ns3/object-factory.h" 26 #include "ns3/attribute.h" 27 #include "ns3/output-stream-wrapper.h" 28 #include "ns3/position-allocator.h" 33 class PositionAllocator;
202 void Install (std::string nodeName)
const;
void InstallAll(void)
Perform the work of MobilityHelper::Install on all nodes which exist in the simulation.
Smart pointer class similar to boost::intrusive_ptr.
static double GetDistanceSquaredBetween(Ptr< Node > n1, Ptr< Node > n2)
Hold a value for an Attribute.
~MobilityHelper()
Destroy a Mobility Helper.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the mobility models (inc...
void PushReferenceMobilityModel(Ptr< Object > reference)
Ptr< PositionAllocator > m_position
Position allocator for use in hierarchical mobility model.
A class for an empty attribute value.
static void CourseChanged(Ptr< OutputStreamWrapper > stream, Ptr< const MobilityModel > mobility)
Output course change events from mobility model to output stream.
static void EnableAscii(Ptr< OutputStreamWrapper > stream, uint32_t nodeid)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ObjectFactory m_mobility
Object factory to create mobility objects.
keep track of a set of node pointers.
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())
std::string reference
reference tag
std::string GetMobilityModelType(void) const
void Install(Ptr< Node > node) const
"Layout" a single node according to the current position allocator type.
std::vector< Ptr< MobilityModel > > m_mobilityStack
Internal stack of mobility models.
Helper class used to assign positions and mobility models to nodes.
Instantiate subclasses of ns3::Object.
MobilityHelper()
Construct a Mobility Helper which is used to make life easier when working with mobility models...
static void EnableAsciiAll(Ptr< OutputStreamWrapper > stream)
void PopReferenceMobilityModel(void)
Remove the top item from the top of the stack of "reference mobility models".
void SetPositionAllocator(Ptr< PositionAllocator > allocator)
Set the position allocator which will be used to allocate the initial position of every node initiali...