OverSim
|
hotspotRoaming class More...
#include <hotspotRoaming.h>
Classes | |
struct | Hotspot |
Public Member Functions | |
hotspotRoaming (double areaDimension, double speed, NeighborMap *Neighbors, GlobalCoordinator *coordinator, CollisionList *CollisionRect) | |
double | getDistanceFromHotspot () |
virtual | ~hotspotRoaming () |
virtual void | move () |
Defined in subclasses only. | |
Public Member Functions inherited from MovementGenerator | |
MovementGenerator (double areaDimension, double speed, NeighborMap *Neighbors, GlobalCoordinator *coordinator, CollisionList *CollisionRect) | |
Initialize the generator with the movement area dimensions and node movement speed. | |
virtual | ~MovementGenerator () |
Vector2D | getPosition () |
Get the nodes current position. |
Protected Attributes | |
std::vector< Hotspot > | hotspots |
std::vector< Hotspot >::iterator | curHotspot |
simtime_t | hotspotStayTime |
bool | stayInHotspot |
Protected Attributes inherited from MovementGenerator | |
double | areaDimension |
double | speed |
Vector2D | direction |
Vector2D | position |
Vector2D | target |
NeighborMap * | Neighbors |
NeighborMap::iterator | itNeighbors |
GlobalCoordinator * | coordinator |
CollisionList * | CollisionRect |
Additional Inherited Members | |
Protected Member Functions inherited from MovementGenerator | |
bool | testBounds () |
Prevents the node from leaving the defined area and checks for obstacle hits. | |
void | flock () |
Simple flocking algorithm. | |
void | generateScenery (unsigned int seed) |
Generates scenery objects. |
hotspotRoaming class
Simulates nodes roaming an area with hotpots.
Definition at line 34 of file hotspotRoaming.h.
hotspotRoaming::hotspotRoaming | ( | double | areaDimension, |
double | speed, | ||
NeighborMap * | Neighbors, | ||
GlobalCoordinator * | coordinator, | ||
CollisionList * | CollisionRect | ||
) |
Definition at line 27 of file hotspotRoaming.cc.
|
inlinevirtual |
Definition at line 49 of file hotspotRoaming.h.
double hotspotRoaming::getDistanceFromHotspot | ( | ) |
Definition at line 68 of file hotspotRoaming.cc.
|
virtual |
Defined in subclasses only.
Implements MovementGenerator.
Definition at line 79 of file hotspotRoaming.cc.
|
protected |
Definition at line 43 of file hotspotRoaming.h.
Referenced by hotspotRoaming(), and move().
|
protected |
Definition at line 42 of file hotspotRoaming.h.
Referenced by getDistanceFromHotspot(), hotspotRoaming(), and move().
|
protected |
Definition at line 44 of file hotspotRoaming.h.
Referenced by move().
|
protected |
Definition at line 45 of file hotspotRoaming.h.
Referenced by hotspotRoaming(), and move().