SUMO - Simulation of Urban MObility
MSPushButton.cpp File Reference
#include <utils/common/SwarmDebug.h>
#include "MSPushButton.h"
#include "MSPhaseDefinition.h"
#include "../MSEdge.h"
#include "../MSLane.h"
#include "../MSVehicle.h"
#include <microsim/pedestrians/MSPerson.h>
Include dependency graph for MSPushButton.cpp:

Go to the source code of this file.

Macros

#define SWARM_DEBUG
 

Functions

void getWalking (const std::vector< MSEdge * > &edges, std::vector< MSEdge * > &walkingEdges)
 Checks if any of the edges is a walking area. More...
 
const std::vector< MSEdge * > getWalkingAreas (const MSEdge *crossing)
 Get the walking areas adjacent to the crossing. More...
 

Macro Definition Documentation

#define SWARM_DEBUG

Definition at line 21 of file MSPushButton.cpp.

Function Documentation

void getWalking ( const std::vector< MSEdge * > &  edges,
std::vector< MSEdge * > &  walkingEdges 
)

Checks if any of the edges is a walking area.

Definition at line 122 of file MSPushButton.cpp.

References MSEdge::getPermissions(), MSEdge::isWalkingArea(), and SVC_PEDESTRIAN.

Referenced by getWalkingAreas().

const std::vector<MSEdge*> getWalkingAreas ( const MSEdge crossing)

Get the walking areas adjacent to the crossing.

Definition at line 132 of file MSPushButton.cpp.

References MSEdge::getIncomingEdges(), MSEdge::getOutgoingEdges(), and getWalking().

Referenced by MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), and MSPedestrianPushButton::loadPushButtons().