69 const std::string model = oc.
getString(
"pedestrian.model");
70 if (model ==
"striping") {
72 }
else if (model ==
"nonInteracting") {
75 throw ProcessError(
"Unknown pedestrian model '" + model +
"'");
98 const std::vector<MSLane*>& lanes = edge->
getLanes();
99 for (std::vector<MSLane*>::const_iterator it = lanes.begin(); it != lanes.end(); ++it) {
104 return lanes.front();
111 for (ConstMSEdgeVector::const_iterator it = route.begin(); it != route.end(); ++it) {
virtual void cleanupHelper()
static const SUMOReal SAFETY_GAP
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
The pedestrian following model.
The base class for an intersection.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static MSLane * getSidewalk(const MSEdge *edge)
return the appropriate lane to walk on
std::vector< const MSEdge * > ConstMSEdgeVector
static MSPModel * myModel
The simulated network and simulation perfomer.
static OptionsCont & getOptions()
Retrieves the options.
The pedestrian following model.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
A road/street connecting two junctions.
static const int UNDEFINED_DIRECTION
The pedestrian following model.
static MSPModel * getModel()
static const SUMOReal SIDEWALK_OFFSET
the offset for computing person positions when walking on edges without a sidewalk ...
static void cleanup()
remove state at simulation end
A storage for options typed value containers)
static const int BACKWARD
const MSJunction * getFromJunction() const
Representation of a lane in the micro simulation.
const MSJunction * getToJunction() const
static bool canTraverse(int dir, const ConstMSEdgeVector &route)
return whether the route may traversed with the given starting direction