48 const int cornerDistance = 5;
49 int capacity = (int)((e->
getFinalLength() - 2 * cornerDistance) / 7.5);
79 if (oc.
exists(
"parking-output") && oc.
isSet(
"parking-output")) {
81 into.insert(p.getEdgeID());
#define WRITE_WARNINGF(...)
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SUMO_TAG_PARKING_AREA
A parking area.
@ SUMO_ATTR_ROADSIDE_CAPACITY
Storage for edges, including some functionality operating on multiple edges.
NBEdge * retrieve(const std::string &id, bool retrieveExtracted=false) const
Returns the edge that has the given id.
The representation of a single edge during network building.
SVCPermissions getPermissions(int lane=-1) const
get the union of allowed classes over all lanes or for a specific lane
const std::string & getID() const
int getNumLanes() const
Returns the number of lanes.
std::string getLaneID(int lane) const
get lane ID
double getFinalLength() const
get length that will be assigned to the lanes in the final network
void addEdges2Keep(const OptionsCont &oc, std::set< std::string > &into)
add edges that must be kept
The representation of an imported parking area.
void write(OutputDevice &device, NBEdgeCont &ec) const
NBParking(const std::string &id, const std::string &edgeID, const std::string &name="")
Constructor.
Base class for objects which have an id.
const std::string & getID() const
Returns the id.
A storage for options typed value containers)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
bool exists(const std::string &name) const
Returns the information whether the named option is known.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.