User Manual, Developers Guide and API Documentation

rise::scenario::mobility::roadmap::Map Class Reference

Class reading, storing and managing a RoadMap.

#include <scenario/mobility/roadmap/Map.hpp>

Collaboration diagram for rise::scenario::mobility::roadmap::Map:

Collaboration graph
[legend]

List of all members.

Public Member Functions

MapUsercreateNewUser (double velocity)
 This method returns a MapUser Object for a new User with a given velocity.
wns::Position getNextPosition (MapUser *user, simTimeType dt)
 This method returns an updated position for a mobile user based on its previous parameters. Contrary to the pospar concept used in the past, the responsibilty for the parameters is exclusively with the map. For the user it's like a sealed envelope.
MapObjectgetObject (const MapObject::ID id)
 returns the MapObject Ptr for the object with the given id
wns::Position getPosition (MapUser *user)
 This method returns the current position of a mobile user based on its current parameters.
 Map (const wns::pyconfig::View &roadmapView)
 pyconfig::Parser constructor
 ~Map ()
 Destructor.

Private Types

typedef std::vector< MapObject * > MapObjectContainer
typedef std::vector
< MapObject::ID
StreetIDContainer

Private Member Functions

void checkConsistency ()
 checks whether all streets and crossings are fully connected

Private Attributes

wns::distribution::StandardUniformentryPointDist
wns::distribution::DiscreteUniformheadingDist
RISELogger log
MapObjectContainer mapObjectContainer
wns::distribution::DiscreteUniformstreetDist
 the distributions required for the creation of new users
StreetIDContainer streetIDContainer


Detailed Description

Definition at line 49 of file Map.hpp.


Member Typedef Documentation

Definition at line 51 of file Map.hpp.

Definition at line 52 of file Map.hpp.


Constructor & Destructor Documentation

Map::Map ( const wns::pyconfig::View roadmapView  ) 

Definition at line 40 of file Map.cpp.

Map::~Map (  ) 

Definition at line 80 of file Map.cpp.


Member Function Documentation

void Map::checkConsistency (  )  [private]

Definition at line 89 of file Map.cpp.

MapUser * Map::createNewUser ( double  velocity  ) 

This method assigns a user type, initial coordinates and an initial speed to a mobile user. Used Parameters: aMsId, aMobUser, msXCoord, msYCoord, msZCoord, velocity, direction

Definition at line 133 of file Map.cpp.

wns::Position Map::getNextPosition ( MapUser user,
simTimeType  dt 
)

This method performs a location update of a mobile user depending on his previous coordinates and his previous speed.

Definition at line 165 of file Map.cpp.

MapObject * Map::getObject ( const MapObject::ID  id  ) 

returns the MapObject (Street or Crossing) with the given ID

Definition at line 185 of file Map.cpp.

wns::Position Map::getPosition ( MapUser user  ) 

Definition at line 177 of file Map.cpp.


Member Data Documentation

Definition at line 87 of file Map.hpp.

Definition at line 86 of file Map.hpp.

Definition at line 89 of file Map.hpp.

Definition at line 81 of file Map.hpp.

Definition at line 85 of file Map.hpp.

Definition at line 82 of file Map.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:39 2012 for openWNS by  doxygen 1.5.5