Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalHandler Class Reference

Builds additional objects for GNENet (busStops, chargingStations, detectors, etc..) More...

#include <GNEAdditionalHandler.h>

Inheritance diagram for GNEAdditionalHandler:
[legend]
Collaboration diagram for GNEAdditionalHandler:
[legend]

Data Structures

class  LastInsertedElement
 Stack used to save the last inserted element. More...
 

Public Member Functions

void characters (const XMLCh *const chars, const XERCES3_SIZE_t length)
 The inherited method called when characters occurred. More...
 
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 The inherited method called when a tag is being closed. More...
 
const std::string & getFileName () const
 returns the current file name More...
 
 GNEAdditionalHandler (const std::string &file, GNENet *net, GNEAdditional *additionalParent=nullptr)
 Constructor. More...
 
void registerParent (const int tag, GenericSAXHandler *handler)
 Assigning a parent handler which is enabled when the specified tag is closed. More...
 
void setFileName (const std::string &name)
 Sets the current file name. More...
 
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs)
 The inherited method called when a new tag opens. More...
 
 ~GNEAdditionalHandler ()
 Destructor. More...
 
inherited from ShapeHandler
void myStartElement (int element, const SUMOSAXAttributes &attrs)
 Called on the opening of a tag;. More...
 
void myEndElement (int element)
 Called when a closing tag occurs. More...
 
Position getLanePos (const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
 get lane position More...
 

Static Public Member Functions

static bool loadFiles (const std::vector< std::string > &files, ShapeHandler &sh)
 loads all of the given files More...
 

Static Protected Member Functions

parsing methods

These methods parse the attributes for each of the described additional and call the according methods to build the additional

static bool parseAndBuildVaporizer (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Builds a Vaporizer. More...
 
static bool parseAndBuildTAZ (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Builds a TAZ. More...
 
static bool parseAndBuildTAZSource (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Builds a TAZ Source. More...
 
static bool parseAndBuildTAZSink (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Builds a TAZ Sink. More...
 
static bool parseAndBuildVariableSpeedSign (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Variable Speed Signal (GNENet *net, bool allowUndoRedo, lane speed additional) More...
 
static bool parseAndBuildVariableSpeedSignStep (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Variable Speed Signal Step. More...
 
static bool parseAndBuildRerouter (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a rerouter. More...
 
static bool parseAndBuildRerouterInterval (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Rerouter Interval. More...
 
static bool parseAndBuildRerouterClosingLaneReroute (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Closing Lane reroute. More...
 
static bool parseAndBuildRerouterClosingReroute (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Closing Reroute. More...
 
static bool parseAndBuildRerouterDestProbReroute (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Destiny Prob Reroute. More...
 
static bool parseAndBuildRerouterParkingAreaReroute (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a parkingAreaReroute. More...
 
static bool parseAndBuildRerouterRouteProbReroute (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Route Prob Reroute. More...
 
static bool parseAndBuildBusStop (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a bus stop. More...
 
static bool parseAndBuildAccess (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses values and adds access to the current bus stop. More...
 
static bool parseAndBuildContainerStop (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a container stop. More...
 
static bool parseAndBuildChargingStation (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a charging station. More...
 
static bool parseAndBuildParkingArea (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a parking area. More...
 
static bool parseAndBuildParkingSpace (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a parking space. More...
 
static bool parseAndBuildCalibrator (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a mesoscopic or microscopic calibrator. More...
 
static bool parseAndBuildDetectorE1 (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a induction loop detector (GNENet *net, bool allowUndoRedo, E1) More...
 
static bool parseAndBuildDetectorE2 (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a lane area detector (GNENet *net, bool allowUndoRedo, E2) More...
 
static bool parseAndBuildDetectorE3 (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a multi entry exit detector (GNENet *net, bool allowUndoRedo, E3) More...
 
static bool parseAndBuildDetectorEntry (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Entry detector. More...
 
static bool parseAndBuildDetectorExit (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Exit detector. More...
 
static bool parseAndBuildDetectorE1Instant (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds a Instant induction loop detector (GNENet *net, bool allowUndoRedo, E1Instant) More...
 
static bool parseAndBuildRouteProbe (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses his values and builds routeProbe. More...
 
static bool parseAndBuildCalibratorFlow (GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Parses flow values of Calibrators. More...
 

Private Member Functions

 GNEAdditionalHandler (const GNEAdditionalHandler &s)=delete
 invalidate copy constructor More...
 
GNEAdditionalHandleroperator= (const GNEAdditionalHandler &s)=delete
 invalidate assignment operator More...
 
void parseAndBuildPOI (const SUMOSAXAttributes &attrs)
 Parses his values and builds a POI. More...
 
void parseAndBuildPoly (const SUMOSAXAttributes &attrs)
 Parses his values and builds a Poly. More...
 
void parseParameter (const SUMOSAXAttributes &attrs)
 Parse parameter and insert it in the last created additional. More...
 

Private Attributes

LastInsertedElementmyLastInsertedElement
 LastInsertedElement used for insert children. More...
 
GNENetmyNet
 pointer to net More...
 

attributes parsing

AttrMap myPredefinedTags
 
std::vector< std::string > myPredefinedTagsMML
 the map from ids to their string representation More...
 
typedef std::vector< XMLCh * > AttrMap
 

elements parsing

TagMap myTagMap
 
std::vector< std::string > myCharactersVector
 A list of character strings obtained so far to build the complete characters string at the end. More...
 
GenericSAXHandlermyParentHandler
 The handler to give control back to. More...
 
int myParentIndicator
 The tag indicating that control should be given back. More...
 
std::string myFileName
 The name of the currently parsed file. More...
 
std::string myExpectedRoot
 The root element to expect, empty string disables the check. More...
 
bool myRootSeen
 whether the reader has already seen the root element More...
 
typedef std::map< std::string, int > TagMap
 

building methods

Called with parsed values, these methods build the additional.

double getPosition (double pos, GNELane &lane, bool friendlyPos, const std::string &additionalID)
 extracts the position, checks whether it shall be mirrored and checks whether it is within the lane. More...
 
static bool buildAdditional (GNENet *net, bool allowUndoRedo, SumoXMLTag tag, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
 Build additionals. More...
 
static GNEAdditionalbuildBusStop (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, int personCapacity, double parkingLength, bool friendlyPosition, bool blockMovement)
 Builds a bus stop. More...
 
static GNEAdditionalbuildAccess (GNENet *net, bool allowUndoRedo, GNEAdditional *busStop, GNELane *lane, double pos, const std::string &length, bool friendlyPos, bool blockMovement)
 Builds an Access. More...
 
static GNEAdditionalbuildContainerStop (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, bool friendlyPosition, bool blockMovement)
 Builds a container stop. More...
 
static GNEAdditionalbuildChargingStation (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, SUMOTime chargeDelay, bool friendlyPosition, bool blockMovement)
 Builds a charging Station. More...
 
static GNEAdditionalbuildParkingArea (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, bool friendlyPosition, int roadSideCapacity, bool onRoad, double width, const std::string &length, double angle, bool blockMovement)
 Builds a Parking Area. More...
 
static GNEAdditionalbuildParkingSpace (GNENet *net, bool allowUndoRedo, GNEAdditional *parkingAreaParent, Position pos, double width, double length, double angle, bool blockMovement)
 Builds a Parking Space. More...
 
static GNEAdditionalbuildDetectorE1 (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
 Builds a induction loop detector (E1) More...
 
static GNEAdditionalbuildSingleLaneDetectorE2 (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, double length, const std::string &freq, const std::string &trafficLight, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
 Builds a single-lane Area Detector (E2) More...
 
static GNEAdditionalbuildMultiLaneDetectorE2 (GNENet *net, bool allowUndoRedo, const std::string &id, const std::vector< GNELane * > &lanes, double pos, double endPos, const std::string &freq, const std::string &trafficLight, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
 Builds a multi-lane Area Detector (E2) More...
 
static GNEAdditionalbuildDetectorE3 (GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement)
 Builds a multi entry exit detector (E3) More...
 
static GNEAdditionalbuildDetectorEntry (GNENet *net, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
 Builds a entry detector (E3) More...
 
static GNEAdditionalbuildDetectorExit (GNENet *net, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
 Builds a exit detector (E3) More...
 
static GNEAdditionalbuildDetectorE1Instant (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
 Builds a Instant Induction Loop Detector (E1Instant) More...
 
static GNEAdditionalbuildCalibrator (GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &name, const std::string &outfile, SUMOTime freq, const std::string &routeprobe, bool centerAfterCreation)
 builds a microscopic calibrator over a lane More...
 
static GNEAdditionalbuildCalibrator (GNENet *net, bool allowUndoRedo, const std::string &id, GNEEdge *edge, double pos, const std::string &name, const std::string &outfile, SUMOTime freq, const std::string &routeprobe, bool centerAfterCreation)
 builds a microscopic calibrator over an edge More...
 
static GNEAdditionalbuildCalibratorFlow (GNENet *net, bool allowUndoRedo, GNEAdditional *calibratorParent, GNEDemandElement *route, GNEDemandElement *vType, const std::string &vehsPerHour, const std::string &speed, const RGBColor &color, const std::string &departLane, const std::string &departPos, const std::string &departSpeed, const std::string &arrivalLane, const std::string &arrivalPos, const std::string &arrivalSpeed, const std::string &line, int personNumber, int containerNumber, bool reroute, const std::string &departPosLat, const std::string &arrivalPosLat, SUMOTime begin, SUMOTime end)
 builds a calibrator flow More...
 
static GNEAdditionalbuildRerouter (GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, const std::vector< GNEEdge * > &edges, double prob, const std::string &name, const std::string &file, bool off, SUMOTime timeThreshold, const std::string &vTypes, bool blockMovement)
 builds a rerouter More...
 
static GNEAdditionalbuildRerouterInterval (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterParent, SUMOTime begin, SUMOTime end)
 builds a rerouter interval More...
 
static GNEAdditionalbuildClosingLaneReroute (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNELane *closedLane, SVCPermissions permissions)
 
static GNEAdditionalbuildClosingReroute (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *closedEdge, SVCPermissions permissions)
 
static GNEAdditionalbuilDestProbReroute (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability)
 
static GNEAdditionalbuilParkingAreaReroute (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEAdditional *newParkignArea, double probability, bool visible)
 
static GNEAdditionalbuildRouteProbReroute (GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, const std::string &newRouteId, double probability)
 
static GNEAdditionalbuildRouteProbe (GNENet *net, bool allowUndoRedo, const std::string &id, GNEEdge *edge, const std::string &freq, const std::string &name, const std::string &file, SUMOTime begin, bool centerAfterCreation)
 builds a Route probe More...
 
static GNEAdditionalbuildVariableSpeedSign (GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, const std::vector< GNELane * > &destLanes, const std::string &name, bool blockMovement)
 Builds a VariableSpeedSign (lane speed additional) More...
 
static GNEAdditionalbuildVariableSpeedSignStep (GNENet *net, bool allowUndoRedo, GNEAdditional *VSSParent, double time, double speed)
 Builds a VariableSpeedSign Step. More...
 
static GNEAdditionalbuildVaporizer (GNENet *net, bool allowUndoRedo, GNEEdge *edge, SUMOTime start, SUMOTime endTime, const std::string &name, bool centerAfterCreation)
 Builds a vaporizer (lane speed additional) More...
 
static GNETAZElementbuildTAZ (GNENet *net, bool allowUndoRedo, const std::string &id, const PositionVector &shape, const RGBColor &color, const std::vector< GNEEdge * > &edges, bool blockMovement)
 Builds a TAZ (Traffic Assignment Zone) More...
 
static GNETAZElementbuildTAZSource (GNENet *net, bool allowUndoRedo, GNETAZElement *TAZ, GNEEdge *edge, double departWeight)
 Builds a TAZSource (Traffic Assignment Zone) More...
 
static GNETAZElementbuildTAZSink (GNENet *net, bool allowUndoRedo, GNETAZElement *TAZ, GNEEdge *edge, double arrivalWeight)
 Builds a TAZSink (Traffic Assignment Zone) More...
 
static bool checkAndFixDetectorPosition (double &pos, const double laneLength, const bool friendlyPos)
 check if the position of a detector over a lane is valid More...
 
static bool fixE2DetectorPosition (double &pos, double &length, const double laneLength, const bool friendlyPos)
 check if the position of a detector over a lane is valid More...
 
static bool accessCanBeCreated (GNEAdditional *busStopParent, GNEEdge *edge)
 check if a GNEAccess can be created in a certain Edge More...
 
static bool checkOverlappingRerouterIntervals (GNEAdditional *rerouter, SUMOTime newBegin, SUMOTime newEnd)
 check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted More...
 

SAX ErrorHandler callbacks

void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-warnings. More...
 
void error (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 
XMLCh * convert (const std::string &name) const
 converts from c++-string into unicode More...
 
int convertTag (const std::string &tag) const
 Converts a tag from its string into its numerical representation. More...
 
std::string buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Builds an error message. More...
 
virtual void myCharacters (int element, const std::string &chars)
 Callback method for characters to implement by derived classes. More...
 

inherited from GenericSAXHandler

ShapeContainermyShapeContainer
 reference to shape container in which all Shares are being added More...
 
std::string myPrefix
 The prefix to use. More...
 
RGBColor myDefaultColor
 The default color to use. More...
 
double myDefaultLayer
 The default layer to use. More...
 
bool myDefaultFill
 Information whether polygons should be filled. More...
 
ParameterisedmyLastParameterised
 element to receive parameters More...
 
const GeoConvHelpermyGeoConvHelper
 geo-conversion to use during loading More...
 
virtual bool addLanePosParams ()
 Whether some input attributes shall be automatically added as params (Can be implemented in all child) More...
 
void setDefaults (const std::string &prefix, const RGBColor &color, const double layer, const bool fill=false)
 set default values More...
 
void addPOI (const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing)
 adds a POI More...
 
void addPoly (const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing)
 adds a polygon More...
 
ParameterisedgetLastParameterised () const
 get last parameterised object More...
 

Detailed Description

Builds additional objects for GNENet (busStops, chargingStations, detectors, etc..)

Definition at line 47 of file GNEAdditionalHandler.h.

Member Typedef Documentation

◆ AttrMap

typedef std::vector<XMLCh*> GenericSAXHandler::AttrMap
privateinherited

Definition at line 279 of file GenericSAXHandler.h.

◆ TagMap

typedef std::map<std::string, int> GenericSAXHandler::TagMap
privateinherited

Definition at line 293 of file GenericSAXHandler.h.

Constructor & Destructor Documentation

◆ GNEAdditionalHandler() [1/2]

◆ ~GNEAdditionalHandler()

GNEAdditionalHandler::~GNEAdditionalHandler ( )

Destructor.

Definition at line 79 of file GNEAdditionalHandler.cpp.

References myLastInsertedElement.

◆ GNEAdditionalHandler() [2/2]

GNEAdditionalHandler::GNEAdditionalHandler ( const GNEAdditionalHandler s)
privatedelete

invalidate copy constructor

Member Function Documentation

◆ accessCanBeCreated()

bool GNEAdditionalHandler::accessCanBeCreated ( GNEAdditional busStopParent,
GNEEdge edge 
)
static

check if a GNEAccess can be created in a certain Edge

Definition at line 1047 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::getChildAdditionals(), GNEEdge::getLanes(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), SUMO_ATTR_LANE, and SUMO_TAG_BUS_STOP.

Referenced by buildAccess(), GNEAccess::isValid(), and parseAndBuildAccess().

Here is the caller graph for this function:

◆ addLanePosParams()

bool ShapeHandler::addLanePosParams ( )
protectedvirtualinherited

Whether some input attributes shall be automatically added as params (Can be implemented in all child)

Reimplemented in NLShapeHandler, and NIXMLShapeHandler.

Definition at line 293 of file ShapeHandler.cpp.

Referenced by ShapeHandler::addPOI().

Here is the caller graph for this function:

◆ addPOI()

void ShapeHandler::addPOI ( const SUMOSAXAttributes attrs,
const bool  ignorePruning,
const bool  useProcessing 
)
protectedinherited

adds a POI

Definition at line 111 of file ShapeHandler.cpp.

References ShapeHandler::addLanePosParams(), ShapeContainer::addPOI(), Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_IMG_HEIGHT, Shape::DEFAULT_IMG_WIDTH, Shape::DEFAULT_RELATIVEPATH, NamedObjectCont< T >::get(), SUMOSAXAttributes::get(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), GeoConvHelper::getFinal(), ShapeHandler::getLanePos(), SUMOSAXAttributes::getOpt(), ShapeContainer::getPOIs(), GeoConvHelper::getProcessing(), SUMOSAXAttributes::hasAttribute(), INVALID_POSITION, FileHelpers::isAbsolute(), SUMOXMLDefinitions::isValidTypeID(), ShapeHandler::myDefaultColor, ShapeHandler::myDefaultLayer, ShapeHandler::myGeoConvHelper, ShapeHandler::myLastParameterised, ShapeHandler::myPrefix, ShapeHandler::myShapeContainer, Position::set(), Parameterised::setParameter(), SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LANE, SUMO_ATTR_LAT, SUMO_ATTR_LAYER, SUMO_ATTR_LON, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, toString(), GeoConvHelper::usingGeoProjection(), WRITE_ERROR, WRITE_WARNING, GeoConvHelper::x2cartesian(), and GeoConvHelper::x2cartesian_const().

Referenced by PCLoaderXML::myStartElement(), and ShapeHandler::myStartElement().

Here is the caller graph for this function:

◆ addPoly()

◆ buildAccess()

GNEAdditional * GNEAdditionalHandler::buildAccess ( GNENet net,
bool  allowUndoRedo,
GNEAdditional busStop,
GNELane lane,
double  pos,
const std::string &  length,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds an Access.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]busStopGNEAdditional of this Access belongs
[in]laneThe lane the Access is placed on
[in]posposition of the Access on the lane
[in[length length of the Access
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 267 of file GNEAdditionalHandler.cpp.

References accessCanBeCreated(), GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNENetworkElement::getID(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_LANE, and toString().

Referenced by parseAndBuildAccess().

Here is the caller graph for this function:

◆ buildAdditional()

bool GNEAdditionalHandler::buildAdditional ( GNENet net,
bool  allowUndoRedo,
SumoXMLTag  tag,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
static

Build additionals.

Parameters
[in]netpointer to net in wich additional will be created
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]tagtag of the additiona lto create
[in]attrsSUMOSAXAttributes with attributes
[in]LastInsertedElementpointer to LastInsertedElement (can be null)
Returns
true if was sucesfully created, false in other case

Definition at line 172 of file GNEAdditionalHandler.cpp.

References parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildTAZ(), parseAndBuildTAZSink(), parseAndBuildTAZSource(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), parseAndBuildVariableSpeedSignStep(), SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E2DETECTOR_MULTILANE, SUMO_TAG_E3DETECTOR, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_FLOW_CALIBRATOR, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_LANECALIBRATOR, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_PARKING_ZONE_REROUTE, SUMO_TAG_REROUTER, SUMO_TAG_ROUTE_PROB_REROUTE, SUMO_TAG_ROUTEPROBE, SUMO_TAG_STEP, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VAPORIZER, and SUMO_TAG_VSS.

Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::E2MultilaneLaneSelector::createPath(), myStartElement(), GNETAZFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector().

Here is the caller graph for this function:

◆ buildBusStop()

GNEAdditional * GNEAdditionalHandler::buildBusStop ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const double  startPos,
const double  endPos,
const int  parametersSet,
const std::string &  name,
const std::vector< std::string > &  lines,
int  personCapacity,
double  parkingLength,
bool  friendlyPosition,
bool  blockMovement 
)
static

Builds a bus stop.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the bus stop
[in]laneThe lane the bus stop is placed on
[in]startPosBegin position of the bus stop on the lane
[in]endPosEnd position of the bus stop on the lane
[in]nameName of busStop
[in]linesNames of the bus lines that halt on this bus stop
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the bus stop can not be added to the net (is duplicate)

Definition at line 244 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_BUS_STOP, and toString().

Referenced by parseAndBuildBusStop().

Here is the caller graph for this function:

◆ buildCalibrator() [1/2]

GNEAdditional * GNEAdditionalHandler::buildCalibrator ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNEEdge edge,
double  pos,
const std::string &  name,
const std::string &  outfile,
SUMOTime  freq,
const std::string &  routeprobe,
bool  centerAfterCreation 
)
static

builds a microscopic calibrator over an edge

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the calibrator
[in]edgeThe edge the calibrator is placed at
[in]posThe position on the edge the calibrator lies at
[in]nameCalibrator name
[in]outfilete file in which write results
[in]centerAfterCreationcenter camera after creation
[in]routeProberoute probe vinculated with this calibrator
Returns
true if was sucesfully created, false in other case
Todo:
Is the position correct/needed
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the entry detector can not be added to the net (is duplicate)

Definition at line 552 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GUISUMOAbstractView::centerTo(), GNENet::getAttributeCarriers(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().

◆ buildCalibrator() [2/2]

GNEAdditional * GNEAdditionalHandler::buildCalibrator ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
double  pos,
const std::string &  name,
const std::string &  outfile,
SUMOTime  freq,
const std::string &  routeprobe,
bool  centerAfterCreation 
)
static

builds a microscopic calibrator over a lane

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the calibrator
[in]laneThe lane the calibrator is placed at
[in]posThe position on the edge the calibrator lies at
[in]nameCalibrator name
[in]outfilete file in which write results
[in]centerAfterCreationcenter camera after creation
Returns
true if was sucesfully created, false in other case
Todo:
Is the position correct/needed
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the entry detector can not be added to the net (is duplicate)

Definition at line 528 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GUISUMOAbstractView::centerTo(), GNENet::getAttributeCarriers(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().

Referenced by parseAndBuildCalibrator().

Here is the caller graph for this function:

◆ buildCalibratorFlow()

GNEAdditional * GNEAdditionalHandler::buildCalibratorFlow ( GNENet net,
bool  allowUndoRedo,
GNEAdditional calibratorParent,
GNEDemandElement route,
GNEDemandElement vType,
const std::string &  vehsPerHour,
const std::string &  speed,
const RGBColor color,
const std::string &  departLane,
const std::string &  departPos,
const std::string &  departSpeed,
const std::string &  arrivalLane,
const std::string &  arrivalPos,
const std::string &  arrivalSpeed,
const std::string &  line,
int  personNumber,
int  containerNumber,
bool  reroute,
const std::string &  departPosLat,
const std::string &  arrivalPosLat,
SUMOTime  begin,
SUMOTime  end 
)
static

builds a calibrator flow

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]typeThe id of the vehicle's flow type to use for this vehicle's flow.
[in]routeThe id of the route the vehicle's flow shall drive along
[in]vehsPerHournumber of vehicles per hour, equally spaced (not together with period or probability)
[in]speedThe speed with which the vehicles shall enter the network. NOTE: this attribute is exclusive of CalibratorFlows!
[in]colorThis vehicle's flow's color
[in]departLaneThe lane on which the vehicle's flow shall be inserted; see #departLane. default: "first"
[in]departPosThe position at which the vehicle's flow shall enter the net; see #departPos. default: "base"
[in]departSpeedThe speed with which the vehicle's flow shall enter the network; see #departSpeed. default: 0
[in]arrivalLaneThe lane at which the vehicle's flow shall leave the network; see #arrivalLane. default: "current"
[in]arrivalPosThe position at which the vehicle's flow shall leave the network; see #arrivalPos. default: "max"
[in]arrivalSpeedThe speed with which the vehicle's flow shall leave the network; see #arrivalSpeed. default: "current"
[in]lineA string specifying the id of a public transport line which can be used when specifying person rides
[in]personNumberThe number of occupied seats when the vehicle's flow is inserted. default: 0
[in]containerNumberThe number of occupied container places when the vehicle's flow is inserted. default: 0
[in]rerouteList of intermediate edges that shall be passed on rerouting.
[in]viaList of intermediate edges that shall be passed on rerouting.
[in]departPosLatThe lateral position on the departure lane at which the vehicle's flow shall enter the net; see Simulation/SublaneModel. default: "center"
[in]arrivalPosLatThe lateral position on the arrival lane at which the vehicle's flow shall arrive; see Simulation/SublaneModel. by default the vehicle's flow does not care about lateral arrival position
[in]beginfirst vehicle's flow departure time
[in]endend of departure interval (if undefined, defaults to 24 hours)
Returns
true if was sucesfully created, false in other case

Definition at line 576 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildCalibratorFlow().

Here is the caller graph for this function:

◆ buildChargingStation()

GNEAdditional * GNEAdditionalHandler::buildChargingStation ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const double  startPos,
const double  endPos,
const int  parametersSet,
const std::string &  name,
double  chargingPower,
double  efficiency,
bool  chargeInTransit,
SUMOTime  chargeDelay,
bool  friendlyPosition,
bool  blockMovement 
)
static

Builds a charging Station.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the charging Station
[in]laneThe lane the charging Station is placed on
[in]startPosBegin position of the charging Station on the lane
[in]endPosEnd position of the charging Station on the lane
[in]nameName of charging station
[in]chargingPowerpower charged in every timeStep
[in]efficiencyefficiency of the charge
[in]chargeInTransitenable or disable charge in transit
[in]chargeDelaydelay in the charge
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the charging Station can not be added to the net (is duplicate)

Definition at line 314 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CHARGING_STATION, and toString().

Referenced by parseAndBuildChargingStation().

Here is the caller graph for this function:

◆ buildClosingLaneReroute()

GNEAdditional * GNEAdditionalHandler::buildClosingLaneReroute ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterIntervalParent,
GNELane closedLane,
SVCPermissions  permissions 
)
static

DOCUMENTAR

Definition at line 667 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildRerouterClosingLaneReroute().

Here is the caller graph for this function:

◆ buildClosingReroute()

GNEAdditional * GNEAdditionalHandler::buildClosingReroute ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterIntervalParent,
GNEEdge closedEdge,
SVCPermissions  permissions 
)
static

DOCUMENTAR

Definition at line 684 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildRerouterClosingReroute().

Here is the caller graph for this function:

◆ buildContainerStop()

GNEAdditional * GNEAdditionalHandler::buildContainerStop ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const double  startPos,
const double  endPos,
const int  parametersSet,
const std::string &  name,
const std::vector< std::string > &  lines,
bool  friendlyPosition,
bool  blockMovement 
)
static

Builds a container stop.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the container stop
[in]laneThe lane the container stop is placed on
[in]startPosBegin position of the container stop on the lane
[in]endPosEnd position of the container stop on the lane
[in]nameName of container stop
[in]linesNames of the bus lines that halt on this container stop
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the container stop can not be added to the net (is duplicate)

Definition at line 293 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CONTAINER_STOP, and toString().

Referenced by parseAndBuildContainerStop().

Here is the caller graph for this function:

◆ buildDetectorE1()

GNEAdditional * GNEAdditionalHandler::buildDetectorE1 ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
double  pos,
SUMOTime  freq,
const std::string &  filename,
const std::string &  vehicleTypes,
const std::string &  name,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a induction loop detector (E1)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the detector
[in]laneThe lane the detector is placed on
[in]posposition of the detector on the lane
[in]freqthe aggregation period the values the detector collects shall be summed up.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nameE2 detector name
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 374 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E1DETECTOR, and toString().

Referenced by parseAndBuildDetectorE1().

Here is the caller graph for this function:

◆ buildDetectorE1Instant()

GNEAdditional * GNEAdditionalHandler::buildDetectorE1Instant ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
double  pos,
const std::string &  filename,
const std::string &  vehicleTypes,
const std::string &  name,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a Instant Induction Loop Detector (E1Instant)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the detector
[in]laneThe lane the detector is placed on
[in]posposition of the detector on the lane
[in]filenameThe path to the output file.
[in]nameE2 detector name
[in]vtypeslist of vehicle types to be reported
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 508 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_INSTANT_INDUCTION_LOOP, and toString().

Referenced by parseAndBuildDetectorE1Instant().

Here is the caller graph for this function:

◆ buildDetectorE3()

GNEAdditional * GNEAdditionalHandler::buildDetectorE3 ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
Position  pos,
SUMOTime  freq,
const std::string &  filename,
const std::string &  vehicleTypes,
const std::string &  name,
SUMOTime  timeThreshold,
double  speedThreshold,
bool  blockMovement 
)
static

Builds a multi entry exit detector (E3)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the detector
[in]posposition of the detector in the map
[in]freqthe aggregation period the values the detector collects shall be summed up.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 440 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E3DETECTOR, and toString().

Referenced by parseAndBuildDetectorE3().

Here is the caller graph for this function:

◆ buildDetectorEntry()

GNEAdditional * GNEAdditionalHandler::buildDetectorEntry ( GNENet net,
bool  allowUndoRedo,
GNEAdditional E3Parent,
GNELane lane,
double  pos,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a entry detector (E3)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]E3Parentpointer to E3 detector parent
[in]laneThe lane in which the entry detector is placed on
[in]posposition of the entry detector on the lane
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the entry detector can not be added to the net (invalid parent or lane)

Definition at line 460 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_DET_ENTRY, SUMO_TAG_E3DETECTOR, SUMO_TAG_LANE, and toString().

Referenced by parseAndBuildDetectorEntry().

Here is the caller graph for this function:

◆ buildDetectorExit()

GNEAdditional * GNEAdditionalHandler::buildDetectorExit ( GNENet net,
bool  allowUndoRedo,
GNEAdditional E3Parent,
GNELane lane,
double  pos,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a exit detector (E3)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]E3Parentpointer to E3 detector parent
[in]laneThe lane in which the exit detector is placed on
[in]posposition of the exit detector on the lane
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the exit detector can not be added to the net (invalid parent or lane

Definition at line 484 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, SUMO_TAG_LANE, and toString().

Referenced by parseAndBuildDetectorExit().

Here is the caller graph for this function:

◆ buildErrorMessage()

std::string GenericSAXHandler::buildErrorMessage ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
protectedinherited

Builds an error message.

The error message includes the file name and the line/column information as supported by the given SAXParseException

Parameters
[in]exceptionThe name of the currently processed file
Returns
A string describing the given exception

Definition at line 188 of file GenericSAXHandler.cpp.

References GenericSAXHandler::getFileName(), and transcode().

Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().

Here is the caller graph for this function:

◆ builDestProbReroute()

GNEAdditional * GNEAdditionalHandler::builDestProbReroute ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterIntervalParent,
GNEEdge newEdgeDestination,
double  probability 
)
static

DOCUMENTAR

Definition at line 701 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildRerouterDestProbReroute().

Here is the caller graph for this function:

◆ buildMultiLaneDetectorE2()

GNEAdditional * GNEAdditionalHandler::buildMultiLaneDetectorE2 ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
const std::vector< GNELane * > &  lanes,
double  pos,
double  endPos,
const std::string &  freq,
const std::string &  trafficLight,
const std::string &  filename,
const std::string &  vehicleTypes,
const std::string &  name,
SUMOTime  timeThreshold,
double  speedThreshold,
double  jamThreshold,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a multi-lane Area Detector (E2)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the detector
[in]lanesThe lanes the detector is placed on
[in]posposition of the detector on the first lane
[in]endPosposition of the detector on the last lane
[in]freqthe aggregation period the values the detector collects shall be summed up.
[in]trafficLightThe traffic light that triggers aggregation when switching.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]jamThresholdThe minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 415 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E2DETECTOR_MULTILANE, and toString().

Referenced by parseAndBuildDetectorE2().

Here is the caller graph for this function:

◆ buildParkingArea()

GNEAdditional * GNEAdditionalHandler::buildParkingArea ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const double  startPos,
const double  endPos,
const int  parametersSet,
const std::string &  name,
bool  friendlyPosition,
int  roadSideCapacity,
bool  onRoad,
double  width,
const std::string &  length,
double  angle,
bool  blockMovement 
)
static

Builds a Parking Area.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the Parking >Area
[in]laneThe lane the Parking Area is placed on
[in]startPosBegin position of the Parking Area on the lane
[in]endPosEnd position of the Parking Area on the lane
[in]nameName of Parking Area
[in]friendlyPosenable or disable friendly position
[in]roadSideCapacityroad side capacity of ParkingArea
[in]widthParkingArea's length
[in]lengthParkingArea's length
[in]angleParkingArea's angle
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the charging Station can not be added to the net (is duplicate)

Definition at line 335 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_PARKING_AREA, and toString().

Referenced by parseAndBuildParkingArea().

Here is the caller graph for this function:

◆ buildParkingSpace()

GNEAdditional * GNEAdditionalHandler::buildParkingSpace ( GNENet net,
bool  allowUndoRedo,
GNEAdditional parkingAreaParent,
Position  pos,
double  width,
double  length,
double  angle,
bool  blockMovement 
)
static

Builds a Parking Space.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]parkingAreaParentPointer to Parking Area Parent
[in]posParkingSpace's X-Y position
[in]widthParkingArea's width
[in]lengthParkingArea's length
[in]angleParkingArea's angle
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the charging Station can not be added to the net (is duplicate)

Definition at line 356 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_PARKING_SPACE, toString(), and GNEAdditional::updateGeometry().

Referenced by parseAndBuildParkingSpace().

Here is the caller graph for this function:

◆ buildRerouter()

GNEAdditional * GNEAdditionalHandler::buildRerouter ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
Position  pos,
const std::vector< GNEEdge * > &  edges,
double  prob,
const std::string &  name,
const std::string &  file,
bool  off,
SUMOTime  timeThreshold,
const std::string &  vTypes,
bool  blockMovement 
)
static

builds a rerouter

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the rerouter
[in]posposition of the rerouter in the map
[in]edgesThe edges the rerouter is placed at
[in]probThe probability the rerouter reoutes vehicles with
[in]nameCalibrator name
[in]fileThe file to read the reroute definitions from
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case

Definition at line 598 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), FileHelpers::getFilePath(), OptionsCont::getOptions(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), XMLSubSys::runParser(), XMLSubSys::setValidation(), SUMO_TAG_REROUTER, toString(), and WRITE_MESSAGE.

Referenced by parseAndBuildRerouter().

Here is the caller graph for this function:

◆ buildRerouterInterval()

GNEAdditional * GNEAdditionalHandler::buildRerouterInterval ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterParent,
SUMOTime  begin,
SUMOTime  end 
)
static

builds a rerouter interval

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]rerouterParentrerouter in which interval is placed
[in]beginbegin of interval
[in]endend of interval
Returns
true if was sucesfully created, false in other case

Definition at line 646 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkOverlappingRerouterIntervals(), GNEAdditional::getID(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_INTERVAL, and toString().

Referenced by parseAndBuildRerouterInterval().

Here is the caller graph for this function:

◆ buildRouteProbe()

GNEAdditional * GNEAdditionalHandler::buildRouteProbe ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNEEdge edge,
const std::string &  freq,
const std::string &  name,
const std::string &  file,
SUMOTime  begin,
bool  centerAfterCreation 
)
static

builds a Route probe

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the routeprobe
[in]edgeThe edges the routeprobe is placed at
[in]freqthe aggregation period the values the routeprobe collects shall be summed up.
[in]nameCalibrator name
[in]fileThe file to read the routeprobe definitions from
[in]beginThe time at which to start generating output
[in]centerAfterCreationcenter camera after creation
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the Route Probe can not be added to the net (is duplicate)

Definition at line 752 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GUISUMOAbstractView::centerTo(), GNENet::getAttributeCarriers(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_ROUTEPROBE, and toString().

Referenced by parseAndBuildRouteProbe().

Here is the caller graph for this function:

◆ buildRouteProbReroute()

GNEAdditional * GNEAdditionalHandler::buildRouteProbReroute ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterIntervalParent,
const std::string &  newRouteId,
double  probability 
)
static

DOCUMENTAR

Definition at line 735 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildRerouterRouteProbReroute().

Here is the caller graph for this function:

◆ buildSingleLaneDetectorE2()

GNEAdditional * GNEAdditionalHandler::buildSingleLaneDetectorE2 ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
double  pos,
double  length,
const std::string &  freq,
const std::string &  trafficLight,
const std::string &  filename,
const std::string &  vehicleTypes,
const std::string &  name,
SUMOTime  timeThreshold,
double  speedThreshold,
double  jamThreshold,
bool  friendlyPos,
bool  blockMovement 
)
static

Builds a single-lane Area Detector (E2)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the detector
[in]laneThe lane the detector is placed on
[in]posposition of the detector on the lane
[in[length length of the detector
[in]freqthe aggregation period the values the detector collects shall be summed up.
[in]trafficLightThe traffic light that triggers aggregation when switching.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]jamThresholdThe minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam
[in]friendlyPosenable or disable friendly position
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the detector can not be added to the net (is duplicate)

Definition at line 394 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E2DETECTOR, and toString().

Referenced by parseAndBuildDetectorE2().

Here is the caller graph for this function:

◆ buildTAZ()

GNETAZElement * GNEAdditionalHandler::buildTAZ ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
const PositionVector shape,
const RGBColor color,
const std::vector< GNEEdge * > &  edges,
bool  blockMovement 
)
static

Builds a TAZ (Traffic Assignment Zone)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idTAZ ID
[in]shapeTAZ shape
[in]edgeslist of edges (note: This will create GNETAZSourceSinks/Sinks with default values)
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
ProcessErrorIf the XML definition file is errornous

Definition at line 846 of file GNEAdditionalHandler.cpp.

References GNENet::disableUpdateGeometry(), GNENet::enableUpdateGeometry(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertTAZElement(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, TAZ, and toString().

Referenced by parseAndBuildTAZ().

Here is the caller graph for this function:

◆ buildTAZSink()

GNETAZElement * GNEAdditionalHandler::buildTAZSink ( GNENet net,
bool  allowUndoRedo,
GNETAZElement TAZ,
GNEEdge edge,
double  arrivalWeight 
)
static

Builds a TAZSink (Traffic Assignment Zone)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]TAZTraffic Assignment Zone in which this TAZSink is palced
[in]egeedge in which TAZSink is placed
[in]arrivalWeightarrival weight of TAZSink
Returns
true if was sucesfully created, false in other case
Exceptions
ProcessErrorIf the XML definition file is errornous

Definition at line 944 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), GNENetworkElement::getID(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertTAZElement(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNETAZElement::setAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, TAZ, and toString().

Referenced by parseAndBuildTAZSink().

Here is the caller graph for this function:

◆ buildTAZSource()

GNETAZElement * GNEAdditionalHandler::buildTAZSource ( GNENet net,
bool  allowUndoRedo,
GNETAZElement TAZ,
GNEEdge edge,
double  departWeight 
)
static

Builds a TAZSource (Traffic Assignment Zone)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]TAZTraffic Assignment Zone in which this TAZSource is palced
[in]egeedge in which TAZSource is placed
[in]departWeightdepart weight of TAZSource
Returns
true if was sucesfully created, false in other case
Exceptions
ProcessErrorIf the XML definition file is errornous

Definition at line 887 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), GNENetworkElement::getID(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertTAZElement(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNETAZElement::setAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, TAZ, and toString().

Referenced by parseAndBuildTAZSource().

Here is the caller graph for this function:

◆ buildVaporizer()

GNEAdditional * GNEAdditionalHandler::buildVaporizer ( GNENet net,
bool  allowUndoRedo,
GNEEdge edge,
SUMOTime  start,
SUMOTime  endTime,
const std::string &  name,
bool  centerAfterCreation 
)
static

Builds a vaporizer (lane speed additional)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]edgeedge in which this vaporizer is placed
[in]startTimetime in which this vaporizer start
[in]endTimetime in which this vaporizer ends
[in]nameVaporizer name
[in]centerAfterCreationcenter camera after creation
Returns
true if was sucesfully created, false in other case
Exceptions
ProcessErrorIf the XML definition file is errornous

Definition at line 826 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GUISUMOAbstractView::centerTo(), GNENet::getAttributeCarriers(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_VAPORIZER, and toString().

Referenced by parseAndBuildVaporizer().

Here is the caller graph for this function:

◆ buildVariableSpeedSign()

GNEAdditional * GNEAdditionalHandler::buildVariableSpeedSign ( GNENet net,
bool  allowUndoRedo,
const std::string &  id,
Position  pos,
const std::vector< GNELane * > &  destLanes,
const std::string &  name,
bool  blockMovement 
)
static

Builds a VariableSpeedSign (lane speed additional)

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]idThe id of the lane speed additional
[in]destLanesList of lanes affected by this speed additional
[in]nameCalibrator name
[in]blockMovemetenable or disable block movement
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the VariableSpeedSign can not be added to the net (is duplicate)

Definition at line 776 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_VSS, and toString().

Referenced by parseAndBuildVariableSpeedSign().

Here is the caller graph for this function:

◆ buildVariableSpeedSignStep()

GNEAdditional * GNEAdditionalHandler::buildVariableSpeedSignStep ( GNENet net,
bool  allowUndoRedo,
GNEAdditional VSSParent,
double  time,
double  speed 
)
static

Builds a VariableSpeedSign Step.

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]VSSParentVariable Speed Sign parent
[in]timestep's time
[in]speedstep's speed
Returns
true if was sucesfully created, false in other case
Exceptions
InvalidArgumentIf the Variable Speed Sign Step can not be added to the net (is duplicate)

Definition at line 809 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildVariableSpeedSignStep().

Here is the caller graph for this function:

◆ builParkingAreaReroute()

GNEAdditional * GNEAdditionalHandler::builParkingAreaReroute ( GNENet net,
bool  allowUndoRedo,
GNEAdditional rerouterIntervalParent,
GNEAdditional newParkignArea,
double  probability,
bool  visible 
)
static

DOCUMENTAR

Definition at line 718 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildRerouterParkingAreaReroute().

Here is the caller graph for this function:

◆ characters()

void GenericSAXHandler::characters ( const XMLCh *const  chars,
const XERCES3_SIZE_t  length 
)
inherited

The inherited method called when characters occurred.

The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.

Todo:

recheck/describe what happens with characters when a new element is opened

describe characters processing in the class' head

Definition at line 171 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myCharactersVector, and StringUtils::transcode().

◆ checkAndFixDetectorPosition()

bool GNEAdditionalHandler::checkAndFixDetectorPosition ( double &  pos,
const double  laneLength,
const bool  friendlyPos 
)
static

check if the position of a detector over a lane is valid

Parameters
[in]pospos position of detector
[in]laneLengthLength of the lane
[in]friendlyPosAttribute of detector
Returns
true if the detector position is valid, false in otherweise

Definition at line 1015 of file GNEAdditionalHandler.cpp.

Referenced by GNEDetectorE1::fixAdditionalProblem(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEDetector::getGeometryPositionOverLane(), parseAndBuildAccess(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorEntry(), and parseAndBuildDetectorExit().

Here is the caller graph for this function:

◆ checkOverlappingRerouterIntervals()

bool GNEAdditionalHandler::checkOverlappingRerouterIntervals ( GNEAdditional rerouter,
SUMOTime  newBegin,
SUMOTime  newEnd 
)
static

check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted

Definition at line 1063 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::getChildAdditionals(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_REROUTER, and TIME2STEPS.

Referenced by buildRerouterInterval().

Here is the caller graph for this function:

◆ convert()

XMLCh * GenericSAXHandler::convert ( const std::string &  name) const
privateinherited

converts from c++-string into unicode

Todo:
recheck encoding
Parameters
[in]nameThe string to convert
Returns
The string converted into a XMLCh-string

Definition at line 84 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::GenericSAXHandler().

Here is the caller graph for this function:

◆ convertTag()

int GenericSAXHandler::convertTag ( const std::string &  tag) const
privateinherited

Converts a tag from its string into its numerical representation.

Returns the enum-representation stored for the given tag. If the tag is not known, SUMO_TAG_NOTHING is returned.

Parameters
[in]tagThe string to convert
Returns
The int-value that represents the string, SUMO_TAG_NOTHING if the named attribute is not known

Definition at line 178 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myTagMap, and SUMO_TAG_NOTHING.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().

Here is the caller graph for this function:

◆ endElement()

void GenericSAXHandler::endElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname 
)
inherited

The inherited method called when a tag is being closed.

This method calls the user-implemented methods myCharacters with the previously collected and converted characters.

Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 122 of file GenericSAXHandler.cpp.

References GenericSAXHandler::convertTag(), GenericSAXHandler::myCharacters(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myEndElement(), GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, SUMO_TAG_NOTHING, and StringUtils::transcode().

◆ error()

void GenericSAXHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Parameters
[in]exceptionThe occurred exception to process
Exceptions
ProcessErrorOn any call

Definition at line 207 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::myStartElement().

Here is the caller graph for this function:

◆ fatalError()

void GenericSAXHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Exceptions
ProcessErrorOn any call
Parameters
[in]exceptionThe occurred exception to process

Definition at line 213 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

◆ fixE2DetectorPosition()

bool GNEAdditionalHandler::fixE2DetectorPosition ( double &  pos,
double &  length,
const double  laneLength,
const bool  friendlyPos 
)
static

check if the position of a detector over a lane is valid

Parameters
[in]startPosStart position of detector
[in]lengthlength of detector
[in]laneLengthLength of the lane
[in]friendlyPosAttribute of detector
Returns
true if the detector position is valid, false in otherweise

Definition at line 1029 of file GNEAdditionalHandler.cpp.

Referenced by GNEDetectorE2::fixAdditionalProblem(), and parseAndBuildDetectorE2().

Here is the caller graph for this function:

◆ getFileName()

◆ getLanePos()

Position GNEAdditionalHandler::getLanePos ( const std::string &  poiID,
const std::string &  laneID,
double  lanePos,
double  lanePosLat 
)
virtual

get lane position

Parameters
[in]poipoi ID
[in]laneIDlane ID
[in]SlanePosposition in the lane

Implements ShapeHandler.

Definition at line 152 of file GNEAdditionalHandler.cpp.

References NBEdge::getLanes(), NBEdge::getLength(), GNEEdge::getNBEdge(), NBHelpers::interpretLaneID(), Position::INVALID, myNet, GNENet::retrieveEdge(), toString(), WRITE_ERROR, and WRITE_WARNING.

Referenced by parseAndBuildPOI().

Here is the caller graph for this function:

◆ getLastParameterised()

Parameterised * ShapeHandler::getLastParameterised ( ) const
protectedinherited

get last parameterised object

Definition at line 266 of file ShapeHandler.cpp.

References ShapeHandler::myLastParameterised.

Referenced by parseParameter().

Here is the caller graph for this function:

◆ getPosition()

double GNEAdditionalHandler::getPosition ( double  pos,
GNELane lane,
bool  friendlyPos,
const std::string &  additionalID 
)

extracts the position, checks whether it shall be mirrored and checks whether it is within the lane.

Parameters
[in]posposition of additional over lane
[in]laneThe lane the position shall be valid for
[in]friendlyPosflag to indicate if friendlyPos is enabled
[in]additionalIDID of additional
Returns
The position on the lane

Definition at line 1000 of file GNEAdditionalHandler.cpp.

References GNENetworkElement::getID(), GNELane::getLaneShapeLength(), and WRITE_WARNING.

◆ loadFiles()

bool ShapeHandler::loadFiles ( const std::vector< std::string > &  files,
ShapeHandler sh 
)
staticinherited

loads all of the given files

Definition at line 272 of file ShapeHandler.cpp.

References XMLSubSys::runParser(), and WRITE_MESSAGE.

Referenced by NLBuilder::build().

Here is the caller graph for this function:

◆ myCharacters()

void GenericSAXHandler::myCharacters ( int  element,
const std::string &  chars 
)
protectedvirtualinherited

Callback method for characters to implement by derived classes.

Called by "endElement" (see there).

Parameters
[in]elementThe opened element, given as a int
[in]charsThe complete embedded character string @exceptions ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_OpenDrive, and NIImporter_ITSUMO::Handler.

Definition at line 223 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::endElement().

Here is the caller graph for this function:

◆ myEndElement()

void GNEAdditionalHandler::myEndElement ( int  element)
virtual

◆ myStartElement()

void GNEAdditionalHandler::myStartElement ( int  element,
const SUMOSAXAttributes attrs 
)
virtual

Called on the opening of a tag;.

Parameters
[in]elementID of the currently opened element
[in]attrsAttributes within the currently opened element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myStartElement

Reimplemented from ShapeHandler.

Definition at line 85 of file GNEAdditionalHandler.cpp.

References buildAdditional(), GNEAdditionalHandler::LastInsertedElement::insertElement(), myLastInsertedElement, myNet, parseAndBuildPOI(), parseAndBuildPoly(), parseParameter(), SUMO_TAG_BUS_STOP, SUMO_TAG_NOTHING, SUMO_TAG_PARAM, SUMO_TAG_POI, SUMO_TAG_POLY, and SUMO_TAG_TRAIN_STOP.

◆ operator=()

GNEAdditionalHandler& GNEAdditionalHandler::operator= ( const GNEAdditionalHandler s)
privatedelete

invalidate assignment operator

◆ parseAndBuildAccess()

bool GNEAdditionalHandler::parseAndBuildAccess ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

◆ parseAndBuildBusStop()

bool GNEAdditionalHandler::parseAndBuildBusStop ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

◆ parseAndBuildCalibrator()

bool GNEAdditionalHandler::parseAndBuildCalibrator ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a mesoscopic or microscopic calibrator.

Parameters
[in]attrsSAX-attributes which define the additional
[in]tagof the additional

Definition at line 2073 of file GNEAdditionalHandler.cpp.

References buildCalibrator(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNENet::retrieveLane(), SUMO_ATTR_EDGE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_OUTPUT, SUMO_ATTR_POSITION, SUMO_ATTR_ROUTEPROBE, SUMO_TAG_CALIBRATOR, SUMO_TAG_LANECALIBRATOR, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildCalibratorFlow()

◆ parseAndBuildChargingStation()

bool GNEAdditionalHandler::parseAndBuildChargingStation ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

◆ parseAndBuildContainerStop()

bool GNEAdditionalHandler::parseAndBuildContainerStop ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

◆ parseAndBuildDetectorE1()

bool GNEAdditionalHandler::parseAndBuildDetectorE1 ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a induction loop detector (GNENet *net, bool allowUndoRedo, E1)

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 2144 of file GNEAdditionalHandler.cpp.

References buildDetectorE1(), checkAndFixDetectorPosition(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNELane::getLaneShapeLength(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_E1DETECTOR, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildDetectorE1Instant()

bool GNEAdditionalHandler::parseAndBuildDetectorE1Instant ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Instant induction loop detector (GNENet *net, bool allowUndoRedo, E1Instant)

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 2408 of file GNEAdditionalHandler.cpp.

References buildDetectorE1Instant(), checkAndFixDetectorPosition(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNELane::getLaneShapeLength(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FILE, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_INSTANT_INDUCTION_LOOP, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildDetectorE2()

◆ parseAndBuildDetectorE3()

bool GNEAdditionalHandler::parseAndBuildDetectorE3 ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a multi entry exit detector (GNENet *net, bool allowUndoRedo, E3)

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 2286 of file GNEAdditionalHandler.cpp.

References buildDetectorE3(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildDetectorEntry()

bool GNEAdditionalHandler::parseAndBuildDetectorEntry ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Entry detector.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 2322 of file GNEAdditionalHandler.cpp.

References buildDetectorEntry(), checkAndFixDetectorPosition(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNELane::getLaneShapeLength(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_ENTRY, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildDetectorExit()

bool GNEAdditionalHandler::parseAndBuildDetectorExit ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Exit detector.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 2365 of file GNEAdditionalHandler.cpp.

References buildDetectorExit(), checkAndFixDetectorPosition(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNELane::getLaneShapeLength(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildParkingArea()

bool GNEAdditionalHandler::parseAndBuildParkingArea ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

◆ parseAndBuildParkingSpace()

bool GNEAdditionalHandler::parseAndBuildParkingSpace ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a parking space.

Parameters
[in]attrsSAXattributes which define the additional
[in]tagof the additional

Definition at line 2034 of file GNEAdditionalHandler.cpp.

References buildParkingSpace(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_ANGLE, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_ATTR_WIDTH, SUMO_TAG_PARKING_AREA, and SUMO_TAG_PARKING_SPACE.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildPOI()

◆ parseAndBuildPoly()

◆ parseAndBuildRerouter()

bool GNEAdditionalHandler::parseAndBuildRerouter ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a rerouter.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1432 of file GNEAdditionalHandler.cpp.

References buildRerouter(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_EDGES, SUMO_ATTR_FILE, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_OFF, SUMO_ATTR_POSITION, SUMO_ATTR_PROB, SUMO_ATTR_VTYPES, SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterClosingLaneReroute()

bool GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Closing Lane reroute.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1525 of file GNEAdditionalHandler.cpp.

References buildClosingLaneReroute(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, parseVehicleClasses(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterClosingReroute()

bool GNEAdditionalHandler::parseAndBuildRerouterClosingReroute ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Closing Reroute.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1561 of file GNEAdditionalHandler.cpp.

References buildClosingReroute(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, parseVehicleClasses(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterDestProbReroute()

bool GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Destiny Prob Reroute.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1597 of file GNEAdditionalHandler.cpp.

References builDestProbReroute(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterInterval()

bool GNEAdditionalHandler::parseAndBuildRerouterInterval ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Rerouter Interval.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1477 of file GNEAdditionalHandler.cpp.

References buildRerouterInterval(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNEHierarchicalElement::getParentAdditionals(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterParkingAreaReroute()

bool GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a parkingAreaReroute.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1632 of file GNEAdditionalHandler.cpp.

References builParkingAreaReroute(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_VISIBLE, SUMO_TAG_INTERVAL, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_ZONE_REROUTE, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRerouterRouteProbReroute()

bool GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Route Prob Reroute.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1668 of file GNEAdditionalHandler.cpp.

References buildRouteProbReroute(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_INTERVAL, and SUMO_TAG_ROUTE_PROB_REROUTE.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildRouteProbe()

bool GNEAdditionalHandler::parseAndBuildRouteProbe ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds routeProbe.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1251 of file GNEAdditionalHandler.cpp.

References buildRouteProbe(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_EDGE, SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_TAG_ROUTEPROBE, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildTAZ()

bool GNEAdditionalHandler::parseAndBuildTAZ ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Builds a TAZ.

Parameters
[in]attrsSAX-attributes which define the vaporizer

Definition at line 1129 of file GNEAdditionalHandler.cpp.

References buildTAZ(), GNEAdditionalHandler::LastInsertedElement::commitTAZElementInsertion(), SUMOSAXAttributes::get(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveEdge(), GNENet::retrieveTAZElement(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, SUMO_TAG_TAZ, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildTAZSink()

bool GNEAdditionalHandler::parseAndBuildTAZSink ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Builds a TAZ Sink.

Parameters
[in]attrsSAX-attributes which define the vaporizer

Definition at line 1214 of file GNEAdditionalHandler.cpp.

References buildTAZSink(), GNEAdditionalHandler::LastInsertedElement::commitTAZElementInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getTAZElementParent(), GNE_ATTR_PARENT, GNENet::retrieveEdge(), GNENet::retrieveTAZElement(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, TAZ, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildTAZSource()

bool GNEAdditionalHandler::parseAndBuildTAZSource ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Builds a TAZ Source.

Parameters
[in]attrsSAX-attributes which define the vaporizer

Definition at line 1177 of file GNEAdditionalHandler.cpp.

References buildTAZSource(), GNEAdditionalHandler::LastInsertedElement::commitTAZElementInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getTAZElementParent(), GNE_ATTR_PARENT, GNENet::retrieveEdge(), GNENet::retrieveTAZElement(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZ, SUMO_TAG_TAZSOURCE, TAZ, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildVaporizer()

bool GNEAdditionalHandler::parseAndBuildVaporizer ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Builds a Vaporizer.

Parameters
[in]attrsSAX-attributes which define the vaporizer

Definition at line 1094 of file GNEAdditionalHandler.cpp.

References buildVaporizer(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_TAG_VAPORIZER, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildVariableSpeedSign()

bool GNEAdditionalHandler::parseAndBuildVariableSpeedSign ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Variable Speed Signal (GNENet *net, bool allowUndoRedo, lane speed additional)

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1360 of file GNEAdditionalHandler.cpp.

References buildVariableSpeedSign(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_TAG_VSS, toString(), and WRITE_WARNING.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseAndBuildVariableSpeedSignStep()

bool GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep ( GNENet net,
bool  allowUndoRedo,
const SUMOSAXAttributes attrs,
LastInsertedElement insertedAdditionals 
)
staticprotected

Parses his values and builds a Variable Speed Signal Step.

Parameters
[in]attrsSAX-attributes which define the additional

Definition at line 1400 of file GNEAdditionalHandler.cpp.

References buildVariableSpeedSignStep(), GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion(), SUMOSAXAttributes::get(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_TAG_STEP, and SUMO_TAG_VSS.

Referenced by buildAdditional().

Here is the caller graph for this function:

◆ parseParameter()

◆ registerParent()

void GenericSAXHandler::registerParent ( const int  tag,
GenericSAXHandler handler 
)
inherited

Assigning a parent handler which is enabled when the specified tag is closed.

Definition at line 163 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().

Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().

Here is the caller graph for this function:

◆ setDefaults()

void ShapeHandler::setDefaults ( const std::string &  prefix,
const RGBColor color,
const double  layer,
const bool  fill = false 
)
protectedinherited

set default values

Definition at line 284 of file ShapeHandler.cpp.

References ShapeHandler::myDefaultColor, ShapeHandler::myDefaultFill, ShapeHandler::myDefaultLayer, and ShapeHandler::myPrefix.

Referenced by GNEAdditionalHandler(), and PCLoaderXML::myStartElement().

Here is the caller graph for this function:

◆ setFileName()

void GenericSAXHandler::setFileName ( const std::string &  name)
inherited

Sets the current file name.

Parameters
[in]nameThe name of the currently processed file
Todo:
Hmmm - this is as unsafe as having a direct access to the variable; recheck

Definition at line 72 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myFileName.

Referenced by NIImporter_SUMO::_loadNetwork(), GUISettingsHandler::GUISettingsHandler(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), PCNetProjectionLoader::load(), NITypeLoader::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), and XMLSubSys::runParser().

Here is the caller graph for this function:

◆ startElement()

void GenericSAXHandler::startElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname,
const XERCES_CPP_NAMESPACE::Attributes &  attrs 
)
inherited

The inherited method called when a new tag opens.

The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.

Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 97 of file GenericSAXHandler.cpp.

References GenericSAXHandler::convertTag(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myExpectedRoot, GenericSAXHandler::myPredefinedTags, GenericSAXHandler::myPredefinedTagsMML, GenericSAXHandler::myRootSeen, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, StringUtils::transcode(), and WRITE_WARNING.

◆ warning()

void GenericSAXHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-warnings.

The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.

Parameters
[in]exceptionThe occurred exception to process

Definition at line 201 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.

Field Documentation

◆ myCharactersVector

std::vector<std::string> GenericSAXHandler::myCharactersVector
privateinherited

A list of character strings obtained so far to build the complete characters string at the end.

Definition at line 300 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::characters(), GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().

◆ myDefaultColor

RGBColor ShapeHandler::myDefaultColor
protectedinherited

The default color to use.

Definition at line 115 of file ShapeHandler.h.

Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and ShapeHandler::setDefaults().

◆ myDefaultFill

bool ShapeHandler::myDefaultFill
protectedinherited

Information whether polygons should be filled.

Definition at line 121 of file ShapeHandler.h.

Referenced by ShapeHandler::addPoly(), and ShapeHandler::setDefaults().

◆ myDefaultLayer

double ShapeHandler::myDefaultLayer
protectedinherited

The default layer to use.

Definition at line 118 of file ShapeHandler.h.

Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), ShapeHandler::myStartElement(), and ShapeHandler::setDefaults().

◆ myExpectedRoot

std::string GenericSAXHandler::myExpectedRoot
privateinherited

The root element to expect, empty string disables the check.

Definition at line 312 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::startElement().

◆ myFileName

std::string GenericSAXHandler::myFileName
privateinherited

The name of the currently parsed file.

Definition at line 309 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::getFileName(), and GenericSAXHandler::setFileName().

◆ myGeoConvHelper

const GeoConvHelper* ShapeHandler::myGeoConvHelper
protectedinherited

geo-conversion to use during loading

Definition at line 127 of file ShapeHandler.h.

Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and parseAndBuildPoly().

◆ myLastInsertedElement

LastInsertedElement* GNEAdditionalHandler::myLastInsertedElement
private

◆ myLastParameterised

Parameterised* ShapeHandler::myLastParameterised
protectedinherited

◆ myNet

GNENet* GNEAdditionalHandler::myNet
private

pointer to net

Definition at line 781 of file GNEAdditionalHandler.h.

Referenced by getLanePos(), myEndElement(), myStartElement(), parseAndBuildPOI(), and parseAndBuildPoly().

◆ myParentHandler

GenericSAXHandler* GenericSAXHandler::myParentHandler
privateinherited

The handler to give control back to.

Definition at line 303 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().

◆ myParentIndicator

int GenericSAXHandler::myParentIndicator
privateinherited

The tag indicating that control should be given back.

Definition at line 306 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().

◆ myPredefinedTags

AttrMap GenericSAXHandler::myPredefinedTags
privateinherited

◆ myPredefinedTagsMML

std::vector<std::string> GenericSAXHandler::myPredefinedTagsMML
privateinherited

the map from ids to their string representation

Definition at line 285 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::GenericSAXHandler(), and GenericSAXHandler::startElement().

◆ myPrefix

std::string ShapeHandler::myPrefix
protectedinherited

The prefix to use.

Definition at line 112 of file ShapeHandler.h.

Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and ShapeHandler::setDefaults().

◆ myRootSeen

bool GenericSAXHandler::myRootSeen
privateinherited

whether the reader has already seen the root element

Definition at line 315 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler::startElement().

◆ myShapeContainer

ShapeContainer& ShapeHandler::myShapeContainer
protectedinherited

reference to shape container in which all Shares are being added

Definition at line 109 of file ShapeHandler.h.

Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and PCLoaderXML::getLanePos().

◆ myTagMap

TagMap GenericSAXHandler::myTagMap
privateinherited

The documentation for this class was generated from the following files: