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