20 #ifndef NIImporter_ITSUMO_h 21 #define NIImporter_ITSUMO_h 116 void myCharacters(
int element,
const std::string& chars);
151 :
id(_id), lanes(_lanes),
v(_v), position(_pos), from(_from), to(_to) {}
165 Section(
const std::string& _id,
const std::vector<LaneSet*>& _laneSets)
166 :
id(_id), laneSets(_laneSets) {}
std::vector< LaneSet * > laneSets
std::vector< Lane > lanes
Lane(const std::string &_id, unsigned int _idx, SUMOReal _v)
std::vector< Section * > mySections
A container for traffic light definitions and built programs.
std::vector< Lane > myCurrentLanes
The representation of a single edge during network building.
Handler & operator=(const Handler &s)
invalidated assignment operator
std::vector< LaneSet * > myCurrentLaneSets
static StringBijection< int >::Entry itsumoAttrs[]
The names of MATSIM-XML attributes (for passing to GenericSAXHandler)
Section(const std::string &_id, const std::vector< LaneSet * > &_laneSets)
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
A handler which converts occuring elements and attributes into enums.
ItsumoXMLTag
Numbers representing ITSUMO-XML - element names.
static StringBijection< int >::Entry itsumoTags[]
The names of MATSIM-XML elements (for passing to GenericSAXHandler)
Encapsulated SAX-Attributes.
void myCharacters(int element, const std::string &chars)
Callback method for characters to implement by derived classes.
Storage for edges, including some functionality operating on multiple edges.
std::map< std::string, std::string > myParameter
A temporary parameter map.
Importer for networks stored in ITSUMO format.
LaneSet(const std::string &_id, const std::vector< Lane > &_lanes, SUMOReal _v, int _pos, NBNode *_from, NBNode *_to)
Instance responsible for building networks.
A storage for options typed value containers)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ITSUMO network files.
Represents a single node (junction) during network building.
ItsumoXMLAttr
Numbers representing MATSIM-XML - attributes.
NBNetBuilder & myNetBuilder
The container to fill.
Container for nodes during the netbuilding process.
std::map< std::string, LaneSet * > myLaneSets
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Handler(NBNetBuilder &toFill)
Contructor.
A storage for available types of edges.