SUMO - Simulation of Urban MObility
GNEAdditionalHandler Class Reference

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

#include <GNEAdditionalHandler.h>

Inheritance diagram for GNEAdditionalHandler:
Inheritance graph
Collaboration diagram for GNEAdditionalHandler:
Collaboration graph

Data Structures

struct  HierarchyInsertedAdditionals
 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, GNEViewNet *viewNet, bool undoAdditionals=true, 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 GenericSAXHandler
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...
 
parsing methods

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

void parseAndBuildVaporizer (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Builds a Vaporizer. More...
 
void parseAndBuildTAZ (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Builds a TAZ. More...
 
void parseAndBuildTAZSource (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Builds a TAZ Source. More...
 
void parseAndBuildTAZSink (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Builds a TAZ Sink. More...
 
void parseAndBuildVariableSpeedSign (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Variable Speed Signal (lane speed trigger) More...
 
void parseAndBuildVariableSpeedSignStep (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Variable Speed Signal Step. More...
 
void parseAndBuildRerouter (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a rerouter. More...
 
void parseAndBuildRerouterInterval (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Rerouter Interval. More...
 
void parseAndBuildRerouterClosingLaneReroute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Closing Lane reroute. More...
 
void parseAndBuildRerouterClosingReroute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Closing Reroute. More...
 
void parseAndBuildRerouterDestProbReroute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Destiny Prob Reroute. More...
 
void parseAndBuildRerouterParkingAreaReroute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a parkingAreaReroute. More...
 
void parseAndBuildRerouterRouteProbReroute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Route Prob Reroute. More...
 
void parseAndBuildBusStop (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a bus stop. More...
 
void parseAndBuildAccess (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses values and adds access to the current bus stop. More...
 
void parseAndBuildContainerStop (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a container stop. More...
 
void parseAndBuildChargingStation (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a charging station. More...
 
void parseAndBuildParkingArea (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a parking area. More...
 
void parseAndBuildParkingSpace (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a parking space. More...
 
void parseAndBuildCalibrator (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a mesoscopic or microscopic calibrator. More...
 
void parseAndBuildDetectorE1 (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a induction loop detector (E1) More...
 
void parseAndBuildDetectorE2 (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a lane area detector (E2) More...
 
void parseAndBuildDetectorE3 (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a multi entry exit detector (E3) More...
 
void parseAndBuildDetectorEntry (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Entry detector. More...
 
void parseAndBuildDetectorExit (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Exit detector. More...
 
void parseAndBuildDetectorE1Instant (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds a Instant induction loop detector (E1Instant) More...
 
void parseAndBuildRouteProbe (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses his values and builds routeProbe. More...
 
void parseAndBuildCalibratorRoute (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses route values of Calibrators. More...
 
void parseAndBuildCalibratorVehicleType (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses vehicle type values of Calibrators. More...
 
void parseAndBuildCalibratorFlow (const SUMOSAXAttributes &attrs, const SumoXMLTag &tag)
 Parses flow values of Calibrators. More...
 
void parseGenericParameter (const SUMOSAXAttributes &attrs)
 Parse generic parameter and insert it in the last created additional. 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...
 

Protected Member Functions

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...
 
void setSchemaSeen (const bool schemaSeen=true)
 

building methods

Called with parsed values, these methods build the trigger.

GNEViewNetmyViewNet
 pointer to View's Net More...
 
bool myUndoAdditionals
 flag to check if created additionals must be undo and redo More...
 
GNEAdditionalmyAdditionalParent
 pointer to parent additional (used for loading additional childs placed in a different XML) More...
 
HierarchyInsertedAdditionals myHierarchyInsertedAdditionals
 HierarchyInsertedAdditionals used for insert childs. More...
 
std::string getFileName (const SUMOSAXAttributes &attrs, const std::string &base, const bool allowEmpty=false)
 Helper method to obtain the filename. More...
 
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 GNEAdditionalbuildAdditional (GNEViewNet *viewNet, bool allowUndoRedo, SumoXMLTag tag, std::map< SumoXMLAttr, std::string > values)
 Build additionals. More...
 
static GNEAdditionalbuildBusStop (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const std::string &startPos, const std::string &endPos, const std::string &name, const std::vector< std::string > &lines, bool friendlyPosition, bool blockMovement)
 Builds a bus stop. More...
 
static GNEAdditionalbuildAccess (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *busStop, GNELane *lane, const std::string &pos, const std::string &length, bool friendlyPos, bool blockMovement)
 Builds an Access. More...
 
static GNEAdditionalbuildContainerStop (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const std::string &startPos, const std::string &endPos, const std::string &name, const std::vector< std::string > &lines, bool friendlyPosition, bool blockMovement)
 Builds a container stop. More...
 
static GNEAdditionalbuildChargingStation (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const std::string &startPos, const std::string &endPos, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, double chargeDelay, bool friendlyPosition, bool blockMovement)
 Builds a charging Station. More...
 
static GNEAdditionalbuildParkingArea (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const std::string &startPos, const std::string &endPos, 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 (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *parkingAreaParent, Position pos, double width, double length, double angle, bool blockMovement)
 Builds a Parking Space. More...
 
static GNEAdditionalbuildDetectorE1 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, double 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 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, double length, double freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, const double timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
 Builds a single-lane Area Detector (E2) More...
 
static GNEAdditionalbuildMultiLaneDetectorE2 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, const std::vector< GNELane *> &lanes, double pos, double endPos, double freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, const double timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
 Builds a multi-lane Area Detector (E2) More...
 
static GNEAdditionalbuildDetectorE3 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, Position pos, double freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, const double timeThreshold, double speedThreshold, bool blockMovement)
 Builds a multi entry exit detector (E3) More...
 
static GNEAdditionalbuildDetectorEntry (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
 Builds a entry detector (E3) More...
 
static GNEAdditionalbuildDetectorExit (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
 Builds a exit detector (E3) More...
 
static GNEAdditionalbuildDetectorE1Instant (GNEViewNet *viewNet, 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 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &name, const std::string &outfile, double freq, const std::string &routeprobe)
 builds a microscopic calibrator over a lane More...
 
static GNEAdditionalbuildCalibrator (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNEEdge *edge, double pos, const std::string &name, const std::string &outfile, double freq, const std::string &routeprobe)
 builds a microscopic calibrator over an edge More...
 
static GNEAdditionalbuildCalibratorRoute (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &routeID, const std::vector< GNEEdge *> &edges, const RGBColor &color)
 
static GNEAdditionalbuildVehicleType (GNEViewNet *viewNet, bool allowUndoRedo, std::string vehicleTypeID, double accel, double decel, double sigma, double tau, double length, double minGap, double maxSpeed, double speedFactor, double speedDev, const RGBColor &color, SUMOVehicleClass vClass, const std::string &emissionClass, SUMOVehicleShape shape, double width, const std::string &filename, double impatience, const std::string &laneChangeModel, const std::string &carFollowModel, int personCapacity, int containerCapacity, double boardingDuration, double loadingDuration, const std::string &latAlignment, double minGapLat, double maxSpeedLat)
 
static GNEAdditionalbuildCalibratorFlow (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *calibratorParent, GNEAdditional *route, GNEAdditional *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, double begin, double end)
 
static GNEAdditionalbuildRerouter (GNEViewNet *viewNet, 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, double timeThreshold, const std::string &vTypes, bool blockMovement)
 builds a rerouter More...
 
static GNEAdditionalbuildRerouterInterval (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterParent, double begin, double end)
 builds a rerouter interval More...
 
static GNEAdditionalbuildClosingLaneReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNELane *closedLane, SVCPermissions permissions)
 
static GNEAdditionalbuildClosingReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *closedEdge, SVCPermissions permissions)
 
static GNEAdditionalbuilDestProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability)
 
static GNEAdditionalbuilParkingAreaReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEAdditional *newParkignArea, double probability, bool visible)
 
static GNEAdditionalbuildRouteProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, const std::string &newRouteId, double probability)
 
static GNEAdditionalbuildRouteProbe (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNEEdge *edge, const std::string &freq, const std::string &name, const std::string &file, double begin)
 builds a Route probe More...
 
static GNEAdditionalbuildVariableSpeedSign (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, Position pos, const std::vector< GNELane *> &destLanes, const std::string &name, bool blockMovement)
 Builds a VariableSpeedSign (lane speed trigger) More...
 
static GNEAdditionalbuildVariableSpeedSignStep (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *VSSParent, double time, double speed)
 Builds a VariableSpeedSign Step. More...
 
static GNEAdditionalbuildVaporizer (GNEViewNet *viewNet, bool allowUndoRedo, GNEEdge *edge, double startTime, double end, const std::string &name)
 Builds a vaporizer (lane speed trigger) More...
 
static GNEAdditionalbuildTAZ (GNEViewNet *viewNet, 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 GNEAdditionalbuildTAZSource (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *TAZ, GNEEdge *edge, double departWeight)
 Builds a TAZSource (Traffic Assignment Zone) More...
 
static GNEAdditionalbuildTAZSink (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *TAZ, GNEEdge *edge, double arrivalWeight)
 Builds a TAZSink (Traffic Assignment Zone) More...
 
static bool fixStoppinPlacePosition (std::string &startPos, std::string &endPos, const double laneLength, const double minLength, const bool friendlyPos)
 check if the position of an stoppingPlace over a lane is valid 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, double newBegin, double newEnd)
 check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted More...
 

Detailed Description

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

Definition at line 47 of file GNEAdditionalHandler.h.

Constructor & Destructor Documentation

◆ GNEAdditionalHandler()

GNEAdditionalHandler::GNEAdditionalHandler ( const std::string &  file,
GNEViewNet viewNet,
bool  undoAdditionals = true,
GNEAdditional additionalParent = nullptr 
)

◆ ~GNEAdditionalHandler()

GNEAdditionalHandler::~GNEAdditionalHandler ( )

Destructor.

Definition at line 80 of file GNEAdditionalHandler.cpp.

Member Function Documentation

◆ accessCanBeCreated()

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

◆ buildAccess()

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

Builds an Access.

Parameters
[in]viewNetviewNet 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

Definition at line 1570 of file GNEAdditionalHandler.cpp.

References accessCanBeCreated(), GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_LANE, and toString().

Referenced by buildAdditional(), and parseAndBuildAccess().

◆ buildAdditional()

GNEAdditional * GNEAdditionalHandler::buildAdditional ( GNEViewNet viewNet,
bool  allowUndoRedo,
SumoXMLTag  tag,
std::map< SumoXMLAttr, std::string >  values 
)
static

Build additionals.

Parameters
[in]viewNetpointer to viewNet 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]valuesmap with the attributes and values of the additional to create
Returns
true if was sucesfully created, false in other case

Definition at line 1197 of file GNEAdditionalHandler.cpp.

References accessCanBeCreated(), buildAccess(), buildBusStop(), buildCalibrator(), buildChargingStation(), buildContainerStop(), buildDetectorE1(), buildDetectorE1Instant(), buildDetectorE3(), buildDetectorEntry(), buildDetectorExit(), buildMultiLaneDetectorE2(), buildParkingArea(), buildParkingSpace(), buildRerouter(), buildRouteProbe(), buildSingleLaneDetectorE2(), buildTAZ(), buildVaporizer(), buildVariableSpeedSign(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNENet::retrieveLane(), SUMO_ATTR_ANGLE, SUMO_ATTR_BEGIN, SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGEINTRANSIT, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_COLOR, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_EFFICIENCY, SUMO_ATTR_END, SUMO_ATTR_ENDPOS, SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_ATTR_LENGTH, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_OFF, SUMO_ATTR_ONROAD, SUMO_ATTR_OUTPUT, SUMO_ATTR_POSITION, SUMO_ATTR_PROB, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_ROUTEPROBE, SUMO_ATTR_SHAPE, SUMO_ATTR_STARTPOS, SUMO_ATTR_VTYPES, SUMO_ATTR_WIDTH, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E2DETECTOR_MULTILANE, SUMO_TAG_E3DETECTOR, SUMO_TAG_EDGE, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANECALIBRATOR, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_REROUTER, SUMO_TAG_ROUTEPROBE, SUMO_TAG_TAZ, SUMO_TAG_VAPORIZER, SUMO_TAG_VSS, toString(), and WRITE_WARNING.

Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNETAZFrame::buildShape(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().

◆ buildBusStop()

GNEAdditional * GNEAdditionalHandler::buildBusStop ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const std::string &  startPos,
const std::string &  endPos,
const std::string &  name,
const std::vector< std::string > &  lines,
bool  friendlyPosition,
bool  blockMovement 
)
static

Builds a bus stop.

Parameters
[in]viewNetviewNet 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 1550 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_BUS_STOP, and toString().

Referenced by buildAdditional(), and parseAndBuildBusStop().

◆ buildCalibrator() [1/2]

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

builds a microscopic calibrator over a lane

Parameters
[in]viewNetviewNet 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
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 1828 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().

Referenced by buildAdditional(), and parseAndBuildCalibrator().

◆ buildCalibrator() [2/2]

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

builds a microscopic calibrator over an edge

Parameters
[in]viewNetviewNet 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]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 1850 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().

◆ buildCalibratorFlow()

GNEAdditional * GNEAdditionalHandler::buildCalibratorFlow ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEAdditional calibratorParent,
GNEAdditional route,
GNEAdditional 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,
double  begin,
double  end 
)
static

◆ buildCalibratorRoute()

GNEAdditional * GNEAdditionalHandler::buildCalibratorRoute ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  routeID,
const std::vector< GNEEdge *> &  edges,
const RGBColor color 
)
static

◆ buildChargingStation()

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

Builds a charging Station.

Parameters
[in]viewNetviewNet 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 1616 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CHARGING_STATION, and toString().

Referenced by buildAdditional(), and parseAndBuildChargingStation().

◆ buildClosingLaneReroute()

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

◆ buildClosingReroute()

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

◆ buildContainerStop()

GNEAdditional * GNEAdditionalHandler::buildContainerStop ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const std::string &  startPos,
const std::string &  endPos,
const std::string &  name,
const std::vector< std::string > &  lines,
bool  friendlyPosition,
bool  blockMovement 
)
static

Builds a container stop.

Parameters
[in]viewNetviewNet 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 1596 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CONTAINER_STOP, and toString().

Referenced by buildAdditional(), and parseAndBuildContainerStop().

◆ buildDetectorE1()

GNEAdditional * GNEAdditionalHandler::buildDetectorE1 ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
double  pos,
double  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]viewNetviewNet 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 1674 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E1DETECTOR, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorE1().

◆ buildDetectorE1Instant()

GNEAdditional * GNEAdditionalHandler::buildDetectorE1Instant ( GNEViewNet viewNet,
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]viewNetviewNet 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 1808 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_INSTANT_INDUCTION_LOOP, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorE1Instant().

◆ buildDetectorE3()

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

Builds a multi entry exit detector (E3)

Parameters
[in]viewNetviewNet 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 1740 of file GNEAdditionalHandler.cpp.

References GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E3DETECTOR, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorE3().

◆ buildDetectorEntry()

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

Builds a entry detector (E3)

Parameters
[in]viewNetviewNet 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 1760 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_DET_ENTRY, SUMO_TAG_E3DETECTOR, SUMO_TAG_LANE, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorEntry().

◆ buildDetectorExit()

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

Builds a exit detector (E3)

Parameters
[in]viewNetviewNet 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 1784 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, SUMO_TAG_LANE, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorExit().

◆ 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 187 of file GenericSAXHandler.cpp.

References GenericSAXHandler::getFileName().

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

◆ builDestProbReroute()

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

◆ buildMultiLaneDetectorE2()

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

Builds a multi-lane Area Detector (E2)

Parameters
[in]viewNetviewNet 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]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 1715 of file GNEAdditionalHandler.cpp.

References GNEDetectorE2::checkE2MultilaneIntegrity(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E2DETECTOR_MULTILANE, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorE2().

◆ buildParkingArea()

GNEAdditional * GNEAdditionalHandler::buildParkingArea ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  id,
GNELane lane,
const std::string &  startPos,
const std::string &  endPos,
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]viewNetviewNet 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 1637 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_PARKING_AREA, and toString().

Referenced by buildAdditional(), and parseAndBuildParkingArea().

◆ buildParkingSpace()

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

Builds a Parking Space.

Parameters
[in]viewNetviewNet 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 1658 of file GNEAdditionalHandler.cpp.

References GNEAdditional::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_PARKING_SPACE, and toString().

Referenced by buildAdditional(), and parseAndBuildParkingSpace().

◆ buildRerouter()

GNEAdditional * GNEAdditionalHandler::buildRerouter ( GNEViewNet viewNet,
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,
double  timeThreshold,
const std::string &  vTypes,
bool  blockMovement 
)
static

builds a rerouter

Parameters
[in]viewNetviewNet 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 1943 of file GNEAdditionalHandler.cpp.

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

Referenced by buildAdditional(), and parseAndBuildRerouter().

◆ buildRerouterInterval()

GNEAdditional * GNEAdditionalHandler::buildRerouterInterval ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEAdditional rerouterParent,
double  begin,
double  end 
)
static

builds a rerouter interval

Parameters
[in]viewNetviewNet 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 1981 of file GNEAdditionalHandler.cpp.

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

Referenced by parseAndBuildRerouterInterval().

◆ buildRouteProbe()

GNEAdditional * GNEAdditionalHandler::buildRouteProbe ( GNEViewNet viewNet,
bool  allowUndoRedo,
const std::string &  id,
GNEEdge edge,
const std::string &  freq,
const std::string &  name,
const std::string &  file,
double  begin 
)
static

builds a Route probe

Parameters
[in]viewNetviewNet 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
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 2087 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_ROUTEPROBE, and toString().

Referenced by buildAdditional(), and parseAndBuildRouteProbe().

◆ buildRouteProbReroute()

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

◆ buildSingleLaneDetectorE2()

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

Builds a single-lane Area Detector (E2)

Parameters
[in]viewNetviewNet 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

Definition at line 1694 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E2DETECTOR, and toString().

Referenced by buildAdditional(), and parseAndBuildDetectorE2().

◆ buildTAZ()

GNEAdditional * GNEAdditionalHandler::buildTAZ ( GNEViewNet viewNet,
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]viewNetviewNet 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 GNETAZSources/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 2167 of file GNEAdditionalHandler.cpp.

References GNEAdditional::addAdditionalChild(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_TAZ, and toString().

Referenced by buildAdditional(), and parseAndBuildTAZ().

◆ buildTAZSink()

GNEAdditional * GNEAdditionalHandler::buildTAZSink ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEAdditional TAZ,
GNEEdge edge,
double  arrivalWeight 
)
static

Builds a TAZSink (Traffic Assignment Zone)

Parameters
[in]viewNetviewNet 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 2258 of file GNEAdditionalHandler.cpp.

References GNEAdditional::getAdditionalChilds(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEAdditional::setAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, and toString().

Referenced by parseAndBuildTAZSink().

◆ buildTAZSource()

GNEAdditional * GNEAdditionalHandler::buildTAZSource ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEAdditional TAZ,
GNEEdge edge,
double  departWeight 
)
static

Builds a TAZSource (Traffic Assignment Zone)

Parameters
[in]viewNetviewNet 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 2201 of file GNEAdditionalHandler.cpp.

References GNEAdditional::getAdditionalChilds(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEAdditional::setAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, and toString().

Referenced by parseAndBuildTAZSource().

◆ buildVaporizer()

GNEAdditional * GNEAdditionalHandler::buildVaporizer ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEEdge edge,
double  startTime,
double  end,
const std::string &  name 
)
static

Builds a vaporizer (lane speed trigger)

Parameters
[in]viewNetviewNet 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]endtime in which this vaporizer ends
[in]nameVaporizer name
Returns
true if was sucesfully created, false in other case
Exceptions
ProcessErrorIf the XML definition file is errornous

Definition at line 2149 of file GNEAdditionalHandler.cpp.

References GNENetElement::addAdditionalChild(), GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_VAPORIZER, and toString().

Referenced by buildAdditional(), and parseAndBuildVaporizer().

◆ buildVariableSpeedSign()

GNEAdditional * GNEAdditionalHandler::buildVariableSpeedSign ( GNEViewNet viewNet,
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 trigger)

Parameters
[in]viewNetviewNet 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 trigger
[in]destLanesList of lanes affected by this speed trigger
[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 2109 of file GNEAdditionalHandler.cpp.

References GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_VSS, and toString().

Referenced by buildAdditional(), and parseAndBuildVariableSpeedSign().

◆ buildVariableSpeedSignStep()

GNEAdditional * GNEAdditionalHandler::buildVariableSpeedSignStep ( GNEViewNet viewNet,
bool  allowUndoRedo,
GNEAdditional VSSParent,
double  time,
double  speed 
)
static

Builds a VariableSpeedSign Step.

Parameters
[in]viewNetviewNet 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 2132 of file GNEAdditionalHandler.cpp.

References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().

Referenced by parseAndBuildVariableSpeedSignStep().

◆ buildVehicleType()

GNEAdditional * GNEAdditionalHandler::buildVehicleType ( GNEViewNet viewNet,
bool  allowUndoRedo,
std::string  vehicleTypeID,
double  accel,
double  decel,
double  sigma,
double  tau,
double  length,
double  minGap,
double  maxSpeed,
double  speedFactor,
double  speedDev,
const RGBColor color,
SUMOVehicleClass  vClass,
const std::string &  emissionClass,
SUMOVehicleShape  shape,
double  width,
const std::string &  filename,
double  impatience,
const std::string &  laneChangeModel,
const std::string &  carFollowModel,
int  personCapacity,
int  containerCapacity,
double  boardingDuration,
double  loadingDuration,
const std::string &  latAlignment,
double  minGapLat,
double  maxSpeedLat 
)
static

◆ builParkingAreaReroute()

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

◆ 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 170 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 2457 of file GNEAdditionalHandler.cpp.

Referenced by GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorEntry::fixAdditionalProblem(), GNEDetectorExit::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), parseAndBuildAccess(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorEntry(), and parseAndBuildDetectorExit().

◆ checkOverlappingRerouterIntervals()

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

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

Definition at line 2505 of file GNEAdditionalHandler.cpp.

References GNEAdditional::getAdditionalChilds(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, and SUMO_TAG_REROUTER.

Referenced by buildRerouterInterval().

◆ 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 121 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 206 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

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

◆ 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 212 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 2471 of file GNEAdditionalHandler.cpp.

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

◆ fixStoppinPlacePosition()

bool GNEAdditionalHandler::fixStoppinPlacePosition ( std::string &  startPos,
std::string &  endPos,
const double  laneLength,
const double  minLength,
const bool  friendlyPos 
)
static

check if the position of an stoppingPlace over a lane is valid

Parameters
[in]startPosStart position of stoppingPlace
[in]endPosEnd position of stoppingPlace
[in]laneLengthLength of the lane
[in]minLengthMin length of the stoppingPlace
[in]friendlyPosAttribute of stoppingPlace
Returns
true if the stoppingPlace position is valid, false in otherweise

Definition at line 2349 of file GNEAdditionalHandler.cpp.

References toString().

Referenced by GNEStoppingPlace::fixAdditionalProblem(), parseAndBuildBusStop(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), and parseAndBuildParkingArea().

◆ getFileName() [1/2]

◆ getFileName() [2/2]

std::string GNEAdditionalHandler::getFileName ( const SUMOSAXAttributes attrs,
const std::string &  base,
const bool  allowEmpty = false 
)

Helper method to obtain the filename.

Parameters
[in]attrsThe attributes to obtain the file name from
[in]baseThe base path (the path the loaded additional file lies in)
Returns
The (expanded) path to the named file
Todo:
Recheck usage of the helper class

Definition at line 2314 of file GNEAdditionalHandler.cpp.

References FileHelpers::getConfigurationRelative(), SUMOSAXAttributes::getOpt(), FileHelpers::isAbsolute(), SUMO_ATTR_FILE, and WRITE_WARNING.

◆ 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 2333 of file GNEAdditionalHandler.cpp.

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

◆ 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 ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_OpenDrive, and NIImporter_ITSUMO::Handler.

Definition at line 222 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::endElement().

◆ myEndElement()

void GNEAdditionalHandler::myEndElement ( int  element)
virtual

Called when a closing tag occurs.

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

Reimplemented from GenericSAXHandler.

Definition at line 202 of file GNEAdditionalHandler.cpp.

References myHierarchyInsertedAdditionals, and GNEAdditionalHandler::HierarchyInsertedAdditionals::popElement().

◆ 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 GenericSAXHandler.

Definition at line 84 of file GNEAdditionalHandler.cpp.

References GNEAdditionalHandler::HierarchyInsertedAdditionals::insertElement(), myHierarchyInsertedAdditionals, parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildCalibratorRoute(), parseAndBuildCalibratorVehicleType(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildTAZ(), parseAndBuildTAZSink(), parseAndBuildTAZSource(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), parseAndBuildVariableSpeedSignStep(), parseGenericParameter(), 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_E3DETECTOR, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_FLOW, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_NOTHING, SUMO_TAG_PARAM, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_PARKING_ZONE_REROUTE, SUMO_TAG_REROUTER, SUMO_TAG_ROUTE, 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, SUMO_TAG_VSS, and SUMO_TAG_VTYPE.

◆ parseAndBuildAccess()

◆ parseAndBuildBusStop()

◆ parseAndBuildCalibrator()

◆ parseAndBuildCalibratorFlow()

◆ parseAndBuildCalibratorRoute()

void GNEAdditionalHandler::parseAndBuildCalibratorRoute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildCalibratorVehicleType()

◆ parseAndBuildChargingStation()

◆ parseAndBuildContainerStop()

◆ parseAndBuildDetectorE1()

void GNEAdditionalHandler::parseAndBuildDetectorE1 ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildDetectorE1Instant()

void GNEAdditionalHandler::parseAndBuildDetectorE1Instant ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildDetectorE2()

◆ parseAndBuildDetectorE3()

void GNEAdditionalHandler::parseAndBuildDetectorE3 ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildDetectorEntry()

◆ parseAndBuildDetectorExit()

◆ parseAndBuildParkingArea()

◆ parseAndBuildParkingSpace()

void GNEAdditionalHandler::parseAndBuildParkingSpace ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouter()

void GNEAdditionalHandler::parseAndBuildRerouter ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterClosingLaneReroute()

void GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterClosingReroute()

void GNEAdditionalHandler::parseAndBuildRerouterClosingReroute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterDestProbReroute()

void GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterInterval()

void GNEAdditionalHandler::parseAndBuildRerouterInterval ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterParkingAreaReroute()

void GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildRerouterRouteProbReroute()

void GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

Parses his values and builds a Route Prob Reroute.

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

Definition at line 720 of file GNEAdditionalHandler.cpp.

References buildRouteProbReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), myHierarchyInsertedAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), SUMO_ATTR_ID, SUMO_ATTR_PROB, and SUMO_TAG_INTERVAL.

Referenced by myStartElement().

◆ parseAndBuildRouteProbe()

void GNEAdditionalHandler::parseAndBuildRouteProbe ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildTAZ()

void GNEAdditionalHandler::parseAndBuildTAZ ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildTAZSink()

void GNEAdditionalHandler::parseAndBuildTAZSink ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildTAZSource()

void GNEAdditionalHandler::parseAndBuildTAZSource ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

◆ parseAndBuildVaporizer()

void GNEAdditionalHandler::parseAndBuildVaporizer ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

Builds a Vaporizer.

Parameters
[in]attrsSAX-attributes which define the vaporizer
[in]tagof the additional
Note
recheck throwing the exception

Definition at line 209 of file GNEAdditionalHandler.cpp.

References buildVaporizer(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), myHierarchyInsertedAdditionals, myUndoAdditionals, myViewNet, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_NAME, toString(), and WRITE_WARNING.

Referenced by myStartElement().

◆ parseAndBuildVariableSpeedSign()

void GNEAdditionalHandler::parseAndBuildVariableSpeedSign ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

Parses his values and builds a Variable Speed Signal (lane speed trigger)

Parameters
[in]attrsSAX-attributes which define the trigger
[in]tagof the additional
See also
buildLaneSpeedTrigger

Definition at line 521 of file GNEAdditionalHandler.cpp.

References buildVariableSpeedSign(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), myHierarchyInsertedAdditionals, myUndoAdditionals, myViewNet, GNENet::retrieveAdditional(), SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, toString(), and WRITE_WARNING.

Referenced by myStartElement().

◆ parseAndBuildVariableSpeedSignStep()

void GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep ( const SUMOSAXAttributes attrs,
const SumoXMLTag tag 
)

Parses his values and builds a Variable Speed Signal Step.

Parameters
[in]attrsSAX-attributes which define the trigger
[in]tagof the additional
See also
buildLaneSpeedTrigger

Definition at line 549 of file GNEAdditionalHandler.cpp.

References buildVariableSpeedSignStep(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), myHierarchyInsertedAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, and SUMO_TAG_VSS.

Referenced by myStartElement().

◆ parseGenericParameter()

◆ registerParent()

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

◆ 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 69 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myFileName.

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

◆ setSchemaSeen()

void GenericSAXHandler::setSchemaSeen ( const bool  schemaSeen = true)
inlineprotectedinherited

◆ 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 94 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::mySchemaSeen, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, and StringUtils::transcode().

◆ 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 200 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.

Field Documentation

◆ myAdditionalParent

GNEAdditional* GNEAdditionalHandler::myAdditionalParent
private

pointer to parent additional (used for loading additional childs placed in a different XML)

Definition at line 775 of file GNEAdditionalHandler.h.

◆ myHierarchyInsertedAdditionals

◆ myUndoAdditionals

◆ myViewNet


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