Eclipse SUMO - Simulation of Urban MObility
|
Changes the wished person speed and position. More...
#include <MSPerson.h>
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 |
MSLane * | myRemoteLane |
double | myRemotePos |
double | myRemotePosLat |
ConstMSEdgeVector | myRemoteRoute |
Position | myRemoteXYPos |
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 179 of file MSPerson.h.
MSPerson::Influencer::Influencer | ( | ) |
Constructor.
Definition at line 292 of file MSPerson.cpp.
MSPerson::Influencer::~Influencer | ( | ) |
Destructor.
Definition at line 295 of file MSPerson.cpp.
|
inline |
Definition at line 191 of file MSPerson.h.
References myLastRemoteAccess.
bool MSPerson::Influencer::isRemoteAffected | ( | SUMOTime | t | ) | const |
Definition at line 318 of file MSPerson.cpp.
References TIME2STEPS.
bool MSPerson::Influencer::isRemoteControlled | ( | ) | const |
Definition at line 312 of file MSPerson.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by MSStageWalking::moveToNextEdge().
void MSPerson::Influencer::postProcessRemoteControl | ( | MSPerson * | p | ) |
Definition at line 324 of file MSPerson.cpp.
References MSTransportable::getCurrentStage(), MSNet::getInstance(), MSStageMoving::getPState(), MSTransportable::getStageType(), MSTransportableStateAdapter::moveToXY(), and WALKING.
void MSPerson::Influencer::setRemoteControlled | ( | Position | xyPos, |
MSLane * | l, | ||
double | pos, | ||
double | posLat, | ||
double | angle, | ||
int | edgeOffset, | ||
const ConstMSEdgeVector & | route, | ||
SUMOTime | t | ||
) |
Definition at line 299 of file MSPerson.cpp.
Referenced by libsumo::Helper::setRemoteControlled().
|
private |
Definition at line 209 of file MSPerson.h.
Referenced by getLastAccessTimeStep().
|
private |
Definition at line 206 of file MSPerson.h.
|
private |
Definition at line 207 of file MSPerson.h.
|
private |
Definition at line 203 of file MSPerson.h.
|
private |
Definition at line 204 of file MSPerson.h.
|
private |
Definition at line 205 of file MSPerson.h.
|
private |
Definition at line 208 of file MSPerson.h.
|
private |
Definition at line 202 of file MSPerson.h.