 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef NWWriter_SUMO_h
20 #define NWWriter_SUMO_h
142 double startOffset,
double endOffset,
143 std::map<SVCPermissions, double> stopOffsets,
double width,
PositionVector shape,
145 const std::string& oppositeID,
const std::string& type,
146 bool accelRamp =
false,
147 bool customShape =
false);
178 const std::string& from,
const std::string& to,
179 int fromLane,
int toLane,
const std::string& via,
181 const std::string& tlID =
"",
static void writeEdge(OutputDevice &into, const NBEdge &e, bool noNames)
Writes an edge (<edge ...)
static void writeTrafficLights(OutputDevice &into, const NBTrafficLightLogicCont &tllCont)
writes the traffic light logics to the given device
An upper class for objects with additional parameters.
Storage for edges, including some functionality operating on multiple edges.
Instance responsible for building networks.
A container for traffic light definitions and built programs.
Static storage of an output device and its base (abstract) implementation.
static std::string prohibitionConnection(const NBConnection &c)
the attribute value for a prohibition
static void writeJunction(OutputDevice &into, const NBNode &n)
Writes a junction (<junction ...)
static bool writeInternalEdges(OutputDevice &into, const NBEdgeCont &ec, const NBNode &n)
Writes internal edges (<edge ... with id[0]==':') of the given node.
const static int InvalidTlIndex
static void writeLane(OutputDevice &into, const std::string &lID, double speed, SVCPermissions permissions, SVCPermissions preferred, double startOffset, double endOffset, std::map< SVCPermissions, double > stopOffsets, double width, PositionVector shape, const Parameterised *params, double length, int index, const std::string &oppositeID, const std::string &type, bool accelRamp=false, bool customShape=false)
Writes a lane (<lane ...) of an edge.
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)....
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a SUMO-file.
The representation of a single edge during network building.
static void writeProhibitions(OutputDevice &into, const NBConnectionProhibits &prohibitions)
writes the given prohibitions
static std::string getOppositeInternalID(const NBEdgeCont &ec, const NBEdge *from, const NBEdge::Connection &con, double &oppositeLength)
retrieve the id of the opposite direction internal lane if it exists
The link is a straight direction.
static std::string writeSUMOTime(SUMOTime time)
writes a SUMOTime as int if possible, otherwise as a float
static bool writeInternalNodes(OutputDevice &into, const NBNode &n)
Writes internal junctions (<junction with id[0]==':' ...) of the given node.
static void writeRoundabout(OutputDevice &into, const std::vector< std::string > &r, const NBEdgeCont &ec)
Writes a roundabout.
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
static void writeConnection(OutputDevice &into, const NBEdge &from, const NBEdge::Connection &c, bool includeInternal, ConnectionStyle style=SUMONET, bool geoAccuracy=false)
Writes connections outgoing from the given edge (also used in NWWriter_XML)
A storage for options typed value containers)
static bool writeInternalConnections(OutputDevice &into, const NBNode &n)
Writes inner connections within the node.
std::map< NBConnection, NBConnectionVector > NBConnectionProhibits
Definition of a container for connection block dependencies Includes a list of all connections which ...
static void writeDistrict(OutputDevice &into, const NBDistrict &d)
Writes a district.
Exporter writing networks using the SUMO format.
static void writeStopOffsets(OutputDevice &into, const std::map< SVCPermissions, double > &stopOffsets)
Write a stopOffset element into output device.
static void writeInternalConnection(OutputDevice &into, const std::string &from, const std::string &to, int fromLane, int toLane, const std::string &via, LinkDirection dir=LINKDIR_STRAIGHT, const std::string &tlID="", int linkIndex=NBConnection::InvalidTlIndex)
Writes a single internal connection.
static void writeRoundabouts(OutputDevice &into, const std::set< EdgeSet > &roundabouts, const NBEdgeCont &ec)
Writes roundabouts.
Represents a single node (junction) during network building.
A structure which describes a connection between edges or lanes.
A class representing a single district.