equal
deleted
inserted
replaced
179 RandomVariable m_x; |
179 RandomVariable m_x; |
180 RandomVariable m_y; |
180 RandomVariable m_y; |
181 }; |
181 }; |
182 |
182 |
183 /** |
183 /** |
|
184 * \brief allocate random positions within a 3D box |
|
185 * according to a set of three random variables. |
|
186 */ |
|
187 class RandomBoxPositionAllocator : public PositionAllocator |
|
188 { |
|
189 public: |
|
190 static TypeId GetTypeId (void); |
|
191 RandomBoxPositionAllocator (); |
|
192 virtual ~RandomBoxPositionAllocator (); |
|
193 |
|
194 void SetX (RandomVariable x); |
|
195 void SetY (RandomVariable y); |
|
196 void SetZ (RandomVariable z); |
|
197 |
|
198 virtual Vector GetNext (void) const; |
|
199 private: |
|
200 RandomVariable m_x; |
|
201 RandomVariable m_y; |
|
202 RandomVariable m_z; |
|
203 }; |
|
204 |
|
205 /** |
184 * \brief allocate random positions within a disc |
206 * \brief allocate random positions within a disc |
185 * according to a given distribution for the polar coordinates of each |
207 * according to a given distribution for the polar coordinates of each |
186 * node with respect to the provided center of the disc |
208 * node with respect to the provided center of the disc |
187 */ |
209 */ |
188 class RandomDiscPositionAllocator : public PositionAllocator |
210 class RandomDiscPositionAllocator : public PositionAllocator |