Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSPerson::Influencer Class Reference

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

#include <MSPerson.h>

Collaboration diagram for MSPerson::Influencer:
[legend]

Public Member Functions

SUMOTime getLastAccessTimeStep () const
 Influencer ()
 Constructor.
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.

Private Attributes

SUMOTime myLastRemoteAccess
double myRemoteAngle
int myRemoteEdgeOffset
MSLanemyRemoteLane
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 187 of file MSPerson.h.

Constructor & Destructor Documentation

◆ Influencer()

MSPerson::Influencer::Influencer ( )

Constructor.

Definition at line 326 of file MSPerson.cpp.

◆ ~Influencer()

MSPerson::Influencer::~Influencer ( )

Destructor.

Definition at line 329 of file MSPerson.cpp.

Member Function Documentation

◆ getLastAccessTimeStep()

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

Definition at line 199 of file MSPerson.h.

References myLastRemoteAccess.

◆ isRemoteAffected()

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

Definition at line 352 of file MSPerson.cpp.

References myLastRemoteAccess, and TIME2STEPS.

◆ isRemoteControlled()

bool MSPerson::Influencer::isRemoteControlled ( ) const

Definition at line 346 of file MSPerson.cpp.

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

Referenced by MSStageWalking::moveToNextEdge().

Here is the caller graph for this function:

◆ postProcessRemoteControl()

◆ setRemoteControlled()

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

Definition at line 333 of file MSPerson.cpp.

References myLastRemoteAccess, myRemoteAngle, myRemoteEdgeOffset, myRemoteLane, myRemotePos, myRemotePosLat, myRemoteRoute, and myRemoteXYPos.

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

Here is the caller graph for this function:

Field Documentation

◆ myLastRemoteAccess

SUMOTime MSPerson::Influencer::myLastRemoteAccess
private

◆ myRemoteAngle

double MSPerson::Influencer::myRemoteAngle
private

Definition at line 214 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemoteEdgeOffset

int MSPerson::Influencer::myRemoteEdgeOffset
private

Definition at line 215 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemoteLane

MSLane* MSPerson::Influencer::myRemoteLane
private

Definition at line 211 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemotePos

double MSPerson::Influencer::myRemotePos
private

Definition at line 212 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemotePosLat

double MSPerson::Influencer::myRemotePosLat
private

Definition at line 213 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemoteRoute

ConstMSEdgeVector MSPerson::Influencer::myRemoteRoute
private

Definition at line 216 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().

◆ myRemoteXYPos

Position MSPerson::Influencer::myRemoteXYPos
private

Definition at line 210 of file MSPerson.h.

Referenced by postProcessRemoteControl(), and setRemoteControlled().


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