|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #ifndef GROUP_MOBILITY_HELPER_H
24 #define GROUP_MOBILITY_HELPER_H
27 #include "ns3/object-factory.h"
28 #include "ns3/attribute.h"
29 #include "ns3/node-container.h"
33 class PositionAllocator;
245 void Install (std::string nodeName);
void SetReferenceMobilityModel(Ptr< MobilityModel > mobility)
Set the reference mobility model which will be installed as the parent mobility model during GroupMob...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Install(Ptr< Node > node)
Install and configure a hierarchical mobility model to the given node, based on the configured refere...
ObjectFactory m_memberMobilityFactory
Object factory to create member mobility models.
void SetMemberPositionAllocator(Ptr< PositionAllocator > allocator)
Set the position allocator which will be used to allocate the initial position of the member mobility...
Hold a value for an Attribute.
Ptr< MobilityModel > m_referenceMobility
Reference mobility model.
Smart pointer class similar to boost::intrusive_ptr.
Instantiate subclasses of ns3::Object.
void SetReferencePositionAllocator(Ptr< PositionAllocator > allocator)
Set the position allocator which will be used to allocate the initial position of the reference mobil...
Ptr< PositionAllocator > m_memberPosition
Position allocator for use as member position allocator.
GroupMobilityHelper()
Construct a group mobility helper.
void SetMemberMobilityModel(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())
Configure the mobility model which will be installed as the member (child) mobility model during Grou...
Ptr< PositionAllocator > m_referencePosition
Position allocator for use as reference position allocator.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the mobility models on t...
A class for an empty attribute value.
bool m_referencePositionSet
flag for avoiding multiple SetPosition calls on the reference model
Helper class used to assign positions and mobility models to nodes for a group mobility configuration...
keep track of a set of node pointers.
~GroupMobilityHelper()
Destroy a group mobility helper.