![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Container for pedestrian state and individual position update function. More...
#include <MSPModel_Striping.h>
Public Member Functions | |
| double | distanceTo (const Obstacle &obs, const bool includeMinGap=true) const |
| double | distToLaneEnd () const |
| the absolute distance to the end of the lane in walking direction (or to the arrivalPos) | |
| double | getAngle (const MSStageMoving &stage, SUMOTime now) const |
| return the current orientation in degrees | |
| virtual const std::string & | getID () const |
| return ID of the person (or sometimes vehicle) being represented | |
| double | getImpatience () const |
| returns the impatience | |
| double | getLatOffset () const |
| return the lateral offset to the lane center | |
| double | getLength () const |
| return the length of the pedestrian | |
| virtual double | getMaxX (const bool includeMinGap=true) const |
| return the maximum position on the lane | |
| double | getMinGap () const |
| return the minimum gap of the pedestrian | |
| virtual double | getMinX (const bool includeMinGap=true) const |
| return the minimum position on the lane | |
| const MSLane * | getNextCrossing () const |
| placeholder function for the accessing the next crossing | |
| const MSEdge * | getNextEdge (const MSStageMoving &stage) const |
| return the list of internal edges if the transportable is on an intersection | |
| virtual ObstacleType | getOType () const |
| double | getPathLength () const |
| return the total length of the current lane (in particular for on a walkingarea) | |
| MSPerson * | getPerson () const |
| return the represented person | |
| Position | getPosition (const MSStageMoving &stage, SUMOTime now) const |
| return the network coordinate of the transportable | |
| double | getPosLat () const |
| const Position & | getRemotePosition () const |
| return the remote position if being controlled by TraCI or JuPedSim | |
| MSStageMoving * | getStage () const |
| return the current stage | |
| virtual double | getWidth () const |
| return the person width | |
| bool | ignoreRed (const MSLink *link) const |
| whether the pedestrian may ignore a red light | |
| virtual bool | isFinished () const |
| whether the transportable has finished walking | |
| bool | isRemoteControlled () const |
| whether the person is currently being controlled via TraCI | |
| bool | isWaitingToEnter () const |
| whether the person still waits to entere the network | |
| void | mergeObstacles (Obstacles &into, const Obstacles &obs2) |
| replace obstacles in the first vector with obstacles from the second if they are closer to me | |
| void | moveTo (MSPerson *p, MSLane *lane, double lanePos, double lanePosLat, SUMOTime t) |
| try to move transportable to the given position | |
| bool | moveToNextLane (SUMOTime currentTime) |
| return whether this pedestrian has passed the end of the current lane and update myRelX if so | |
| void | moveToXY (MSPerson *p, Position pos, MSLane *lane, double lanePos, double lanePosLat, double angle, int routeOffset, const ConstMSEdgeVector &edges, SUMOTime t) |
| try to move transportable to the given position | |
| int | otherStripe () const |
| int | otherStripe (const double relY) const |
| PState (MSPerson *person, MSStageMoving *stage, const MSLane *lane) | |
| PState (MSPerson *person, MSStageMoving *stage, std::istringstream *in=nullptr) | |
| constructor for loading state | |
| void | reset (const double edgePos, const double latPos) |
| void | reverse (const double pathLength, const double usableWidth) |
| void | saveState (std::ostringstream &out) |
| Saves the current state into the given stream. | |
| bool | stopForYellow (const MSLink *link) const |
| whether the pedestrian should stop at a yellow light | |
| int | stripe () const |
| void | walk (const Obstacles &obs) |
| perform position update | |
| ~PState () | |
| double | getEdgePos (SUMOTime) const |
| abstract methods inherited from MSTransportableStateAdapter | |
| int | getDirection () const |
| return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION) | |
| SUMOTime | getWaitingTime () const |
| return the time the transportable spent standing | |
| virtual SUMOTime | getTotalWaitingTime () const |
| double | getSpeed () const |
| return the current speed of the transportable, we need to be able to do this for vehicles as well, so we cannot refer to the stage | |
| double | getSpeed (const MSStageMoving &) const |
| return the current speed of the transportable | |
| bool | isJammed () const |
| whether the transportable is jammed | |
| const MSLane * | getLane () const |
| the current lane of the transportable | |
Static Public Member Functions | |
| static void | mergeObstacles (Obstacles &into, const Obstacles &obs2, int dir, int offset) |
| replace obstacles in the first vector with obstacles from the second if they are closer in the given direction | |
| static int | stripe (const double relY) |
Data Fields | |
| NextLaneInfo | myNLI |
| information about the upcoming lane | |
| const WalkingAreaPath * | myWalkingAreaPath |
| the current walkingAreaPath or 0 | |
Protected Member Functions | |
| PState () | |
| constructor for PStateVehicle | |
Protected Attributes | |
| bool | myAmJammed = false |
| whether the person is jammed | |
| double | myAngle = std::numeric_limits<double>::max() |
| cached angle | |
| int | myDir = MSPModel::UNDEFINED_DIRECTION |
| the walking direction on the current lane (1 forward, -1 backward) | |
| double | myEdgePos = 0. |
| the advancement along the current lane | |
| const MSLane * | myLane = nullptr |
| the current lane of this pedestrian | |
| MSPerson * | myPerson = nullptr |
| the person who is being represented | |
| double | myPosLat = 0. |
| the orthogonal shift on the current lane | |
| Position | myRemoteXYPos = Position::INVALID |
| remote-controlled position | |
| double | mySpeed = 0. |
| the current walking speed | |
| double | mySpeedLat = 0. |
| the current lateral walking speed | |
| MSStageMoving * | myStage = nullptr |
| the current stage of this pedestrian | |
| SUMOTime | myTotalWaitingTime = 0 |
| the total time spent at speed 0 | |
| SUMOTime | myWaitingTime = 0 |
| the consecutive time spent at speed 0 | |
| bool | myWaitingToEnter = false |
| whether the pedestrian is waiting to start its walk | |
Private Member Functions | |
| PState & | operator= (const PState &)=delete |
| Invalidated assignment operator. | |
Container for pedestrian state and individual position update function.
Definition at line 259 of file MSPModel_Striping.h.
| MSPModel_Striping::PState::PState | ( | MSPerson * | person, |
| MSStageMoving * | stage, | ||
| const MSLane * | lane | ||
| ) |
Definition at line 1506 of file MSPModel_Striping.cpp.
References MSPModel::BACKWARD, MSPModel::canTraverse(), PedestrianRouter< E, L, N, V >::compute(), DEBUGCOND, MSPModel::FORWARD, MSPModel_Striping::getArbitraryPath(), MSStage::getArrivalPos(), MSLane::getEdge(), MSEdge::getFromJunction(), MSPModel_InteractingState::getID(), Named::getID(), MSNet::getInstance(), MSStageMoving::getMaxSpeed(), MSPModel_Striping::getNextLane(), MSNet::getPedestrianRouter(), MSLane::getPermissions(), MSStageMoving::getRoute(), MSEdge::getToJunction(), MSLane::getVehicleNumberWithPartials(), MSTransportable::getVTypeParameter(), MSLane::getWidth(), MSPModel_InteractingState::myDir, MSPModel_InteractingState::myEdgePos, MSPModel_Striping::myLegacyPosLat, myNLI, MSPModel_InteractingState::myPerson, MSPModel_InteractingState::myPosLat, MSPModel_InteractingState::myStage, myWalkingAreaPath, NORMAL, MSPModel_Striping::numStripes(), MSPModel_Striping::posLatConversion(), RandHelper::rand(), MSPModel::RANDOM_POS_LAT, SIMTIME, MSPModel_Striping::stripeWidth, SVC_PEDESTRIAN, TL, TLF, toString(), MSPModel::UNDEFINED_DIRECTION, MSPModel::UNSPECIFIED_POS_LAT, and WRITE_WARNINGF.
| MSPModel_Striping::PState::PState | ( | MSPerson * | person, |
| MSStageMoving * | stage, | ||
| std::istringstream * | in = nullptr |
||
| ) |
constructor for loading state
Definition at line 1583 of file MSPModel_Striping.cpp.
References MSLane::dictionary(), Named::getID(), MSLane::getLinkTo(), MSPModel_InteractingState::myAmJammed, MSPModel_InteractingState::myDir, MSPModel_InteractingState::myEdgePos, MSPModel_InteractingState::myLane, myNLI, MSPModel_InteractingState::myPerson, MSPModel_InteractingState::myPosLat, MSPModel_InteractingState::mySpeed, MSPModel_InteractingState::mySpeedLat, MSPModel_InteractingState::myWaitingTime, MSPModel_InteractingState::myWaitingToEnter, myWalkingAreaPath, and MSPModel_Striping::myWalkingAreaPaths.
|
inline |
Definition at line 266 of file MSPModel_Striping.h.
|
protected |
constructor for PStateVehicle
Definition at line 1651 of file MSPModel_Striping.cpp.
| double MSPModel_Striping::PState::distanceTo | ( | const Obstacle & | obs, |
| const bool | includeMinGap = true |
||
| ) | const |
Definition at line 2457 of file MSPModel_Striping.cpp.
References MSPModel_Striping::Obstacle::description, MSPModel_Striping::DIST_BEHIND, MSPModel_Striping::DIST_FAR_AWAY, MSPModel_Striping::DIST_OVERLAP, MSPModel::FORWARD, MSPModel_Striping::OBSTACLE_PED, MSPModel_Striping::Obstacle::type, MSPModel_Striping::Obstacle::xBack, and MSPModel_Striping::Obstacle::xFwd.
Referenced by MSPModel_Striping::getNeighboringObstacles(), and MSPModel_Striping::moveInDirectionOnLane().
| double MSPModel_Striping::PState::distToLaneEnd | ( | ) | const |
the absolute distance to the end of the lane in walking direction (or to the arrivalPos)
Definition at line 1760 of file MSPModel_Striping.cpp.
References DELTA_T, and MSPModel::FORWARD.
Referenced by MSPModel_Striping::arriveAndAdvance(), and MSPModel_Striping::moveInDirectionOnLane().
|
virtual |
return the current orientation in degrees
Reimplemented from MSPModel_InteractingState.
Definition at line 2213 of file MSPModel_Striping.cpp.
References MSPModel::BACKWARD, INVALID_DOUBLE, M_PI, MAX2(), and PositionVector::rotationAtOffset().
|
inlinevirtualinherited |
return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION)
Implements MSTransportableStateAdapter.
Definition at line 148 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myDir.
Referenced by MSPModel_Striping::arriveAndAdvance(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::moveInDirection(), and MSPModel_Striping::moveInDirectionOnLane().
|
inlinevirtualinherited |
abstract methods inherited from MSTransportableStateAdapter
return the offset from the start of the current edge measured in its natural direction
Implements MSTransportableStateAdapter.
Definition at line 143 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myEdgePos.
Referenced by MSPModel_JuPedSim::execute(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), and MSPModel_Striping::by_xpos_sorter::operator()().
|
inlinevirtualinherited |
return ID of the person (or sometimes vehicle) being represented
Reimplemented in MSPModel_Striping::PStateVehicle.
Definition at line 213 of file MSPModel_Interacting.h.
References Named::getID(), and MSPModel_InteractingState::myPerson.
Referenced by MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::by_xpos_sorter::operator()(), PState(), and saveState().
| double MSPModel_Striping::PState::getImpatience | ( | ) | const |
returns the impatience
Definition at line 2172 of file MSPModel_Striping.cpp.
References MAX2(), MSPModel_Striping::MAX_WAIT_TOLERANCE, MIN2(), and STEPS2TIME.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
inlinevirtualinherited |
the current lane of the transportable
Reimplemented from MSTransportableStateAdapter.
Definition at line 177 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myLane.
Referenced by MSPModel_Striping::arriveAndAdvance(), MSPModel_JuPedSim::execute(), MSPModel_Striping::loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::registerCrossingApproach(), and MSPModel_JuPedSim::remove().
|
inlinevirtual |
return the lateral offset to the lane center
Reimplemented from MSPModel_InteractingState.
Definition at line 347 of file MSPModel_Striping.h.
References MSLane::getWidth(), MSPModel_InteractingState::myLane, MSPModel_InteractingState::myPosLat, and MSPModel_Striping::posLatConversion().
| double MSPModel_Striping::PState::getLength | ( | ) | const |
return the length of the pedestrian
Definition at line 1711 of file MSPModel_Striping.cpp.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
virtual |
return the maximum position on the lane
Reimplemented in MSPModel_Striping::PStateVehicle.
Definition at line 1701 of file MSPModel_Striping.cpp.
References MSPModel::FORWARD.
Referenced by MSPModel_Striping::getVehicleObstacles().
| double MSPModel_Striping::PState::getMinGap | ( | ) | const |
return the minimum gap of the pedestrian
Definition at line 1717 of file MSPModel_Striping.cpp.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
virtual |
return the minimum position on the lane
Reimplemented in MSPModel_Striping::PStateVehicle.
Definition at line 1691 of file MSPModel_Striping.cpp.
References MSPModel::FORWARD.
Referenced by MSPModel_Striping::getVehicleObstacles().
|
virtual |
placeholder function for the accessing the next crossing
Reimplemented from MSPModel_InteractingState.
Definition at line 2247 of file MSPModel_Striping.cpp.
References MSLane::isCrossing().
|
virtual |
return the list of internal edges if the transportable is on an intersection
Implements MSTransportableStateAdapter.
Definition at line 2241 of file MSPModel_Striping.cpp.
|
inlinevirtual |
Reimplemented in MSPModel_Striping::PStateVehicle.
Definition at line 333 of file MSPModel_Striping.h.
References MSPModel_Striping::OBSTACLE_PED.
|
virtual |
return the total length of the current lane (in particular for on a walkingarea)
Reimplemented from MSTransportableStateAdapter.
Definition at line 2448 of file MSPModel_Striping.cpp.
|
inlineinherited |
return the represented person
Definition at line 193 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myPerson.
Referenced by MSPModel_Striping::arriveAndAdvance(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_JuPedSim::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getVehicleObstacles(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::registerCrossingApproach(), MSPModel_JuPedSim::tryPedestrianInsertion(), and MSPModel_Interacting::unregisterCrossingApproach().
|
virtual |
return the network coordinate of the transportable
Implements MSTransportableStateAdapter.
Definition at line 2179 of file MSPModel_Striping.cpp.
References DEG2RAD, MSPModel::FORWARD, MSStage::getLanePosition(), Position::INVALID, and INVALID_DOUBLE.
Referenced by MSPModel_Striping::getNextLaneObstacles(), and MSPModel_Striping::moveInDirection().
|
inline |
Definition at line 351 of file MSPModel_Striping.h.
References MSPModel_InteractingState::myPosLat.
Referenced by MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirection().
|
inlineinherited |
return the remote position if being controlled by TraCI or JuPedSim
Definition at line 208 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myRemoteXYPos.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
inlineinherited |
return the current speed of the transportable, we need to be able to do this for vehicles as well, so we cannot refer to the stage
Definition at line 162 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::mySpeed.
Referenced by MSPModel_JuPedSim::execute(), and MSPModel_Striping::moveInDirectionOnLane().
|
inlinevirtualinherited |
return the current speed of the transportable
Implements MSTransportableStateAdapter.
Definition at line 167 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::mySpeed.
|
inlineinherited |
return the current stage
Definition at line 198 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myStage.
Referenced by MSPModel_JuPedSim::add(), MSPModel_Striping::arriveAndAdvance(), MSPModel_JuPedSim::execute(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::registerCrossingApproach(), MSPModel_JuPedSim::remove(), and MSPModel_JuPedSim::tryPedestrianInsertion().
|
inlinevirtualinherited |
Reimplemented from MSTransportableStateAdapter.
Definition at line 157 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myTotalWaitingTime.
|
inlinevirtualinherited |
return the time the transportable spent standing
Implements MSTransportableStateAdapter.
Definition at line 153 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myWaitingTime.
|
virtual |
return the person width
Reimplemented in MSPModel_Striping::PStateVehicle.
Definition at line 2556 of file MSPModel_Striping.cpp.
| bool MSPModel_Striping::PState::ignoreRed | ( | const MSLink * | link | ) | const |
whether the pedestrian may ignore a red light
Definition at line 2518 of file MSPModel_Striping.cpp.
References DEBUGCOND, MSNet::getInstance(), MSLink::getLastStateChange(), MSLink::haveRed(), SIMTIME, STEPS2TIME, and SUMO_ATTR_JM_DRIVE_AFTER_RED_TIME.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
inlinevirtualinherited |
whether the transportable has finished walking
Reimplemented in MSPModel_JuPedSim::PState.
Definition at line 215 of file MSPModel.h.
Referenced by MSStageMoving::~MSStageMoving().
|
inlinevirtualinherited |
whether the transportable is jammed
Reimplemented from MSTransportableStateAdapter.
Definition at line 172 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myAmJammed.
Referenced by MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLaneObstacles(), and MSPModel_Striping::moveInDirectionOnLane().
| bool MSPModel_Striping::PState::isRemoteControlled | ( | ) | const |
whether the person is currently being controlled via TraCI
Definition at line 2562 of file MSPModel_Striping.cpp.
Referenced by MSPModel_Striping::arriveAndAdvance().
|
inlineinherited |
whether the person still waits to entere the network
Definition at line 203 of file MSPModel_Interacting.h.
References MSPModel_InteractingState::myWaitingToEnter.
Referenced by MSPModel_JuPedSim::add(), MSPModel_JuPedSim::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::moveInDirectionOnLane(), and MSPModel_Striping::Obstacle::Obstacle().
replace obstacles in the first vector with obstacles from the second if they are closer to me
Definition at line 2477 of file MSPModel_Striping.cpp.
References gDebugFlag1, MSPModel_Striping::OBSTACLE_PED, and MSPModel_Striping::OBSTACLE_VEHICLE.
Referenced by MSPModel_Striping::getNextLaneObstacles(), and MSPModel_Striping::moveInDirectionOnLane().
|
static |
replace obstacles in the first vector with obstacles from the second if they are closer in the given direction
Definition at line 2499 of file MSPModel_Striping.cpp.
References MSPModel::FORWARD.
|
virtual |
try to move transportable to the given position
Reimplemented from MSTransportableStateAdapter.
Definition at line 2272 of file MSPModel_Striping.cpp.
References Position::angleTo2D(), MSPModel_Striping::WalkingAreaPath::from, MSLane::geometryPositionAtOffset(), MSLane::getEdge(), Named::getID(), MSTransportable::getPosition(), MSEdge::getToJunction(), MSPModel_Striping::guessPath(), MSLane::isNormal(), MSLane::isWalkingArea(), PositionVector::length(), MAX2(), MIN2(), GeomHelper::naviDegree(), PositionVector::positionAtOffset(), MSPModel_Striping::WalkingAreaPath::shape, time2string(), MSPModel_Striping::WalkingAreaPath::to, and toString().
| bool MSPModel_Striping::PState::moveToNextLane | ( | SUMOTime | currentTime | ) |
return whether this pedestrian has passed the end of the current lane and update myRelX if so
Definition at line 1774 of file MSPModel_Striping.cpp.
References MSPModel::BACKWARD, DEBUGCOND, MSPModel::FORWARD, MSEdge::getFromJunction(), Named::getID(), Named::getIDSecure(), MSPModel_Striping::getNextLane(), OptionsCont::getOptions(), MSPModel_Striping::getStripeOffset(), MSEdge::getToJunction(), MSPModel_Striping::getWalkingAreaPath(), NORMAL, MSPModel_Striping::numStripes(), SIMTIME, MSPModel_Striping::stripeWidth, TLF, MSPModel::UNDEFINED_DIRECTION, and UNUSED_PARAMETER.
Referenced by MSPModel_Striping::arriveAndAdvance().
|
virtual |
try to move transportable to the given position
Reimplemented from MSTransportableStateAdapter.
Definition at line 2311 of file MSPModel_Striping.cpp.
References MSPModel::BACKWARD, MSPModel_Striping::NextLaneInfo::dir, DIST2SPEED, Position::distanceTo2D(), MSPModel::FORWARD, GeomHelper::fromNaviDegree(), MSLane::getEdge(), Named::getID(), Named::getIDSecure(), MSNet::getInstance(), GeomHelper::getMinAngleDiff(), MSTransportableControl::getMovementModel(), MSPModel_Striping::getNextLane(), MSNet::getPersonControl(), MSTransportable::getVClass(), MSTransportable::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), MSPModel_Striping::guessPath(), Position::INVALID, MSEdge::isNormal(), MSLane::isWalkingArea(), MSPModel_Interacting::myActiveLanes, GeomHelper::naviDegree(), MSPModel_Interacting::registerActive(), MSPModel_Interacting::remove(), MSLane::requireCollisionCheck(), MSPModel::SIDEWALK_OFFSET, SIMTIME, SPEED2DIST, MSPModel_Striping::stripeWidth, time2string(), toString(), MSPModel::UNDEFINED_DIRECTION, WRITE_WARNING, Position::x(), and Position::y().
Invalidated assignment operator.
| int MSPModel_Striping::PState::otherStripe | ( | ) | const |
Definition at line 1754 of file MSPModel_Striping.cpp.
References MAX2(), MIN2(), and MSPModel_Striping::numStripes().
Referenced by MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLaneObstacles(), and MSPModel_Striping::moveInDirectionOnLane().
| int MSPModel_Striping::PState::otherStripe | ( | const double | relY | ) | const |
Definition at line 1729 of file MSPModel_Striping.cpp.
References MAX2(), MSPModel_Striping::SQUEEZE, and MSPModel_Striping::stripeWidth.
| void MSPModel_Striping::PState::reset | ( | const double | edgePos, |
| const double | latPos | ||
| ) |
Definition at line 2262 of file MSPModel_Striping.cpp.
References MSPModel::UNDEFINED_DIRECTION.
Referenced by MSPModel_Striping::moveInDirection().
| void MSPModel_Striping::PState::reverse | ( | const double | pathLength, |
| const double | usableWidth | ||
| ) |
Definition at line 2253 of file MSPModel_Striping.cpp.
Referenced by MSPModel_Striping::moveInDirection().
|
virtual |
Saves the current state into the given stream.
Reimplemented from MSTransportableStateAdapter.
Definition at line 1656 of file MSPModel_Striping.cpp.
References MSPModel_InteractingState::getID().
| bool MSPModel_Striping::PState::stopForYellow | ( | const MSLink * | link | ) | const |
whether the pedestrian should stop at a yellow light
Definition at line 2537 of file MSPModel_Striping.cpp.
References DEBUGCOND, MSNet::getInstance(), MSLink::getLastStateChange(), MSLink::haveYellow(), SIMTIME, STEPS2TIME, and SUMO_ATTR_JM_DRIVE_AFTER_YELLOW_TIME.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
| int MSPModel_Striping::PState::stripe | ( | ) | const |
Definition at line 1748 of file MSPModel_Striping.cpp.
References MAX2(), MIN2(), and MSPModel_Striping::numStripes().
Referenced by MSPModel_Striping::addCrossingVehs(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirectionOnLane().
|
static |
Definition at line 1723 of file MSPModel_Striping.cpp.
References MSPModel_Striping::stripeWidth.
| void MSPModel_Striping::PState::walk | ( | const Obstacles & | obs | ) |
perform position update
Definition at line 1913 of file MSPModel_Striping.cpp.
References MSPModel::BACKWARD, MSPModel_Striping::dawdling, DEBUGCOND, DELTA_T, MSPModel_Striping::Obstacle::description, DIST2SPEED, MSPModel_Striping::DIST_OVERLAP, MSPModel::FORWARD, Named::getIDSecure(), MSNet::getInstance(), MSNet::getPersonControl(), MSPModel_Striping::getReserved(), MSPModel_Striping::INAPPROPRIATE_PENALTY, MSPModel_Striping::jamFactor, MSPModel_Striping::jamTime, MSPModel_Striping::jamTimeCrossing, MSPModel_Striping::jamTimeNarrow, MSPModel_Striping::LATERAL_PENALTY, MSPModel_Striping::LATERAL_SPEED_FACTOR, MSPModel_Striping::LOOKAHEAD_ONCOMING, MSPModel_Striping::LOOKAHEAD_SAMEDIR, MAX2(), MIN2(), MIN3(), MSPModel_Striping::MIN_STARTUP_DIST, MSPModel_Striping::myWalkingAreaFoes, MSPModel_Striping::numStripes(), MSPModel_Striping::OBSTACLE_END, MSPModel_Striping::OBSTACLE_PED, MSPModel_Striping::OBSTACLE_VEHICLE, MSPModel_Striping::OBSTRUCTED_PENALTY, MSPModel_Striping::OBSTRUCTION_THRESHOLD, MSPModel_Striping::ONCOMING_CONFLICT_PENALTY, RandHelper::rand(), MSTransportableControl::registerJammed(), MSPModel_Striping::RESERVE_FOR_ONCOMING_FACTOR, MSPModel_Striping::RESERVE_FOR_ONCOMING_FACTOR_JUNCTIONS, SIMSTEP, SIMTIME, MSPModel_Striping::Obstacle::speed, SPEED2DIST, STEPS2TIME, MSPModel_Striping::stripeWidth, SUMO_const_haltingSpeed, SVC_PEDESTRIAN, time2string(), TL, MSPModel_Striping::USE_NET_SPEEDS, WRITE_WARNINGF, MSPModel_Striping::Obstacle::xBack, and MSPModel_Striping::Obstacle::xFwd.
Referenced by MSPModel_Striping::moveInDirectionOnLane().
|
protectedinherited |
whether the person is jammed
Definition at line 246 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::isJammed(), and PState().
|
mutableprotectedinherited |
cached angle
Definition at line 250 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getAngle(), and MSPModel_JuPedSim::PState::setAngle().
|
protectedinherited |
the walking direction on the current lane (1 forward, -1 backward)
Definition at line 234 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getDirection(), PState(), MSPModel_JuPedSim::PState::PState(), and PState().
|
protectedinherited |
the advancement along the current lane
Definition at line 230 of file MSPModel_Interacting.h.
Referenced by MSPModel_Striping::MovePedestrians::execute(), MSPModel_InteractingState::getEdgePos(), PState(), PState(), MSPModel_Striping::PStateVehicle::PStateVehicle(), and MSPModel_JuPedSim::PState::setLanePosition().
|
protectedinherited |
the current lane of this pedestrian
Definition at line 228 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getLane(), getLatOffset(), PState(), MSPModel_Striping::PStateVehicle::PStateVehicle(), and MSPModel_JuPedSim::PState::setLane().
| NextLaneInfo MSPModel_Striping::PState::myNLI |
information about the upcoming lane
Definition at line 276 of file MSPModel_Striping.h.
Referenced by MSPModel_Striping::moveInDirectionOnLane(), PState(), and PState().
|
protectedinherited |
the person who is being represented
Definition at line 224 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getID(), MSPModel_InteractingState::getPerson(), PState(), and PState().
|
protectedinherited |
the orthogonal shift on the current lane
Definition at line 232 of file MSPModel_Interacting.h.
Referenced by MSPModel_Striping::MovePedestrians::execute(), MSPModel_InteractingState::getLatOffset(), getLatOffset(), getPosLat(), PState(), PState(), and MSPModel_Striping::PStateVehicle::PStateVehicle().
|
protectedinherited |
remote-controlled position
Definition at line 248 of file MSPModel_Interacting.h.
Referenced by MSPModel_JuPedSim::PState::getPosition(), and MSPModel_InteractingState::getRemotePosition().
|
protectedinherited |
the current walking speed
Definition at line 236 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getSpeed(), MSPModel_InteractingState::getSpeed(), and PState().
|
protectedinherited |
the current lateral walking speed
Definition at line 238 of file MSPModel_Interacting.h.
Referenced by PState().
|
protectedinherited |
the current stage of this pedestrian
Definition at line 226 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getStage(), PState(), and MSPModel_JuPedSim::PState::setStage().
|
protectedinherited |
the total time spent at speed 0
Definition at line 244 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getTotalWaitingTime().
|
protectedinherited |
the consecutive time spent at speed 0
Definition at line 242 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::getWaitingTime(), and PState().
|
protectedinherited |
whether the pedestrian is waiting to start its walk
Definition at line 240 of file MSPModel_Interacting.h.
Referenced by MSPModel_InteractingState::isWaitingToEnter(), PState(), and MSPModel_JuPedSim::PState::setAgentId().
| const WalkingAreaPath* MSPModel_Striping::PState::myWalkingAreaPath |
the current walkingAreaPath or 0
Definition at line 278 of file MSPModel_Striping.h.
Referenced by GUIPerson::drawAction_drawWalkingareaPath(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), PState(), and PState().