#include <building-position-allocator.h>
 Inheritance diagram for ns3::RandomBuildingPositionAllocator:
 Inheritance diagram for ns3::RandomBuildingPositionAllocator: Collaboration diagram for ns3::RandomBuildingPositionAllocator:
 Collaboration diagram for ns3::RandomBuildingPositionAllocator:| Public Member Functions | |
| RandomBuildingPositionAllocator () | |
| int64_t | AssignStreams (int64_t stream) | 
| virtual Vector | GetNext (void) const | 
|  Public Member Functions inherited from ns3::PositionAllocator | |
| PositionAllocator () | |
| virtual | ~PositionAllocator () | 
|  Public Member Functions inherited from ns3::Object | |
| Object () | |
| virtual | ~Object () | 
| void | AggregateObject (Ptr< Object > other) | 
| void | Dispose (void) | 
| AggregateIterator | GetAggregateIterator (void) const | 
| virtual TypeId | GetInstanceTypeId (void) const | 
| template<typename T > | |
| Ptr< T > | GetObject (void) const | 
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const | 
| void | Start (void) | 
|  Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| SimpleRefCount (const SimpleRefCount &o) | |
| uint32_t | GetReferenceCount (void) const | 
| SimpleRefCount & | operator= (const SimpleRefCount &o) | 
| void | Ref (void) const | 
| void | Unref (void) const | 
|  Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () | 
| void | GetAttribute (std::string name, AttributeValue &value) const | 
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const | 
| void | SetAttribute (std::string name, const AttributeValue &value) | 
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) | 
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) | 
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) | 
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) | 
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) | 
| Static Public Member Functions | |
| static TypeId | GetTypeId (void) | 
| Private Attributes | |
| std::vector< Ptr< Building > > | m_buildingListWithoutReplacement | 
| Ptr< UniformRandomVariable > | m_rand | 
| Provides uniform random variables. | |
| bool | m_withReplacement | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| virtual void | DoDispose (void) | 
| virtual void | DoStart (void) | 
| virtual void | NotifyNewAggregate (void) | 
Allocate each position by randomly chosing a building from the list of all buildings, and then randomly chosing a position inside the building.
ns3::RandomBuildingPositionAllocator is accessible through the following paths with Config::Set and Config::Connect:
No TraceSources are defined for this type.
 
Definition at line 39 of file building-position-allocator.h.
| ns3::RandomBuildingPositionAllocator::RandomBuildingPositionAllocator | ( | ) | 
Definition at line 42 of file building-position-allocator.cc.
References m_rand.
| 
 | virtual | 
Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.
| stream | first stream index to use | 
Implements ns3::PositionAllocator.
Definition at line 99 of file building-position-allocator.cc.
References m_rand, and ns3::RandomVariableStream::SetStream().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
This method must be implement in subclasses.
Implements ns3::PositionAllocator.
Definition at line 66 of file building-position-allocator.cc.
References ns3::BuildingList::Begin(), ns3::BuildingList::End(), ns3::ObjectBase::GetAttribute(), ns3::BuildingList::GetBuilding(), ns3::UniformRandomVariable::GetInteger(), ns3::BuildingList::GetNBuildings(), ns3::UniformRandomVariable::GetValue(), m_buildingListWithoutReplacement, m_rand, m_withReplacement, NS_ASSERT_MSG, and sample-rng-plot::x.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Reimplemented from ns3::PositionAllocator.
Definition at line 48 of file building-position-allocator.cc.
References m_withReplacement, and ns3::TypeId::SetParent().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | mutableprivate | 
Definition at line 63 of file building-position-allocator.h.
Referenced by GetNext().
| 
 | private | 
Provides uniform random variables.
Definition at line 66 of file building-position-allocator.h.
Referenced by AssignStreams(), GetNext(), and RandomBuildingPositionAllocator().
| 
 | private | 
Definition at line 62 of file building-position-allocator.h.
Referenced by GetNext(), and GetTypeId().