SUMO - Simulation of Urban MObility
MSPerson::Influencer Class Reference

Changes the wished person speed and position. More...

#include <MSPerson.h>

Collaboration diagram for MSPerson::Influencer:
Collaboration graph

Public Member Functions

SUMOTime getLastAccessTimeStep () const
 
 Influencer ()
 Constructor. More...
 
bool isRemoteAffected (SUMOTime t) const
 
bool isRemoteControlled () const
 
void postProcessRemoteControl (MSPerson *p)
 
void setRemoteControlled (Position xyPos, MSLane *l, double pos, double posLat, double angle, int edgeOffset, const ConstMSEdgeVector &route, SUMOTime t)
 
 ~Influencer ()
 Destructor. More...
 

Private Attributes

SUMOTime myLastRemoteAccess
 
double myRemoteAngle
 
int myRemoteEdgeOffset
 
MSLane * myRemoteLane
 
double myRemotePos
 
double myRemotePosLat
 
ConstMSEdgeVector myRemoteRoute
 
Position myRemoteXYPos
 

Detailed Description

Changes the wished person speed and position.

The class is used for passing velocities or positions obtained via TraCI to the person.

Definition at line 316 of file MSPerson.h.

Constructor & Destructor Documentation

MSPerson::Influencer::Influencer ( )

Constructor.

Definition at line 532 of file MSPerson.cpp.

MSPerson::Influencer::~Influencer ( )

Destructor.

Definition at line 535 of file MSPerson.cpp.

Member Function Documentation

SUMOTime MSPerson::Influencer::getLastAccessTimeStep ( ) const
inline

Definition at line 328 of file MSPerson.h.

bool MSPerson::Influencer::isRemoteAffected ( SUMOTime  t) const

Definition at line 558 of file MSPerson.cpp.

References TIME2STEPS.

bool MSPerson::Influencer::isRemoteControlled ( ) const

Definition at line 552 of file MSPerson.cpp.

References MSNet::getCurrentTimeStep(), and MSNet::getInstance().

void MSPerson::Influencer::setRemoteControlled ( Position  xyPos,
MSLane *  l,
double  pos,
double  posLat,
double  angle,
int  edgeOffset,
const ConstMSEdgeVector &  route,
SUMOTime  t 
)

Definition at line 539 of file MSPerson.cpp.

Referenced by libsumo::Helper::setRemoteControlled().

Field Documentation

SUMOTime MSPerson::Influencer::myLastRemoteAccess
private

Definition at line 346 of file MSPerson.h.

double MSPerson::Influencer::myRemoteAngle
private

Definition at line 343 of file MSPerson.h.

int MSPerson::Influencer::myRemoteEdgeOffset
private

Definition at line 344 of file MSPerson.h.

MSLane* MSPerson::Influencer::myRemoteLane
private

Definition at line 340 of file MSPerson.h.

double MSPerson::Influencer::myRemotePos
private

Definition at line 341 of file MSPerson.h.

double MSPerson::Influencer::myRemotePosLat
private

Definition at line 342 of file MSPerson.h.

ConstMSEdgeVector MSPerson::Influencer::myRemoteRoute
private

Definition at line 345 of file MSPerson.h.

Position MSPerson::Influencer::myRemoteXYPos
private

Definition at line 339 of file MSPerson.h.


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