![]() |
SUMO - Simulation of Urban MObility
|
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..) More...
#include <GNEAdditionalHandler.h>


Data Structures | |
| struct | HierarchyInsertedElements |
| 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 vaporization. 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 | |
| GNEViewNet * | myViewNet |
| pointer to View's Net More... | |
| bool | myUndoAdditionals |
| flag to check if created additionals must be undo and redo More... | |
| GNEAdditional * | myAdditionalParent |
| pointer to parent additional (used for loading additional childs placed in a different XML) More... | |
| GNEAdditional * | myLastInsertedAdditional |
| pointer to last inserted additional (used for generic parameters) More... | |
| HierarchyInsertedElements | myParentElements |
| HierarchyInsertedElements 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 GNEAdditional * | buildAdditional (GNEViewNet *viewNet, bool allowUndoRedo, SumoXMLTag tag, std::map< SumoXMLAttr, std::string > values) |
| Build additionals. More... | |
| static GNEAdditional * | 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) |
| Builds a bus stop. More... | |
| static GNEAdditional * | buildAccess (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 GNEAdditional * | 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) |
| Builds a container stop. More... | |
| static GNEAdditional * | 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) |
| Builds a charging Station. More... | |
| static GNEAdditional * | 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, double width, const std::string &length, double angle, bool blockMovement) |
| Builds a Parking Area. More... | |
| static GNEAdditional * | buildParkingSpace (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *parkingAreaParent, double x, double y, double z, double width, double length, double angle, bool blockMovement) |
| Builds a Parking Space. More... | |
| static GNEAdditional * | 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) |
| Builds a induction loop detector (E1) More... | |
| static GNEAdditional * | buildDetectorE2 (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 lane Area Detector (E2) More... | |
| static GNEAdditional * | 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) |
| Builds a multi entry exit detector (E3) More... | |
| static GNEAdditional * | buildDetectorEntry (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement) |
| Builds a entry detector (E3) More... | |
| static GNEAdditional * | buildDetectorExit (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement) |
| Builds a exit detector (E3) More... | |
| static GNEAdditional * | 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) |
| Builds a Instant Induction Loop Detector (E1Instant) More... | |
| static GNEAdditional * | buildCalibrator (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &name, const std::string &outfile, double freq) |
| builds a microscopic calibrator over a lane More... | |
| static GNEAdditional * | buildCalibrator (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNEEdge *edge, double pos, const std::string &name, const std::string &outfile, double freq) |
| builds a microscopic calibrator over an edge More... | |
| static GNEAdditional * | buildCalibratorRoute (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &routeID, const std::vector< GNEEdge *> &edges, const RGBColor &color) |
| static GNEAdditional * | 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 GNEAdditional * | 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 GNEAdditional * | 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) |
| builds a rerouter More... | |
| static GNEAdditional * | buildRerouterInterval (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterParent, double begin, double end) |
| builds a rerouter interval More... | |
| static GNEAdditional * | buildClosingLaneReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNELane *closedLane, SVCPermissions permissions) |
| static GNEAdditional * | buildClosingReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *closedEdge, SVCPermissions permissions) |
| static GNEAdditional * | builDestProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability) |
| static GNEAdditional * | builParkingAreaReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEAdditional *newParkignArea, double probability, bool visible) |
| static GNEAdditional * | buildRouteProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, const std::string &newRouteId, double probability) |
| static GNEAdditional * | 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) |
| builds a Route probe More... | |
| static GNEAdditional * | buildVariableSpeedSign (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 GNEAdditional * | buildVariableSpeedSignStep (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *VSSParent, double time, double speed) |
| Builds a VariableSpeedSign Step. More... | |
| static GNEAdditional * | buildVaporizer (GNEViewNet *viewNet, bool allowUndoRedo, GNEEdge *edge, double startTime, double end, const std::string &name) |
| Builds a vaporizer (lane speed trigger) 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 | checkAndFixDetectorPositionPosition (double &pos, const double laneLength, const bool friendlyPos) |
| check if the position of a detector over a lane is valid More... | |
| static bool | fixE2DetectorPositionPosition (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... | |
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
Definition at line 52 of file GNEAdditionalHandler.h.
| GNEAdditionalHandler::GNEAdditionalHandler | ( | const std::string & | file, |
| GNEViewNet * | viewNet, | ||
| bool | undoAdditionals = true, |
||
| GNEAdditional * | additionalParent = nullptr |
||
| ) |
Constructor.
Definition at line 68 of file GNEAdditionalHandler.cpp.
References GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNEAdditionalHandler::HierarchyInsertedElements::insertElement(), and myParentElements.
| GNEAdditionalHandler::~GNEAdditionalHandler | ( | ) |
Destructor.
Definition at line 81 of file GNEAdditionalHandler.cpp.
|
static |
check if a GNEAccess can be created in a certain Edge
Definition at line 2186 of file GNEAdditionalHandler.cpp.
References GNEAdditional::getAdditionalChilds(), GNEEdge::getLanes(), GNEAttributeCarrier::getTag(), SUMO_ATTR_LANE, and SUMO_TAG_BUS_STOP.
Referenced by buildAccess(), buildAdditional(), GNEAccess::isValid(), and parseAndBuildAccess().
|
static |
Builds an Access.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | busStop | GNEAdditional of this Access belongs |
| [in] | lane | The lane the Access is placed on |
| [in] | pos | position of the Access on the lane |
Definition at line 1439 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().
|
static |
Build additionals.
| [in] | viewNet | pointer to viewNet in wich additional will be created |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | tag | tag of the additiona lto create |
| [in] | values | map with the attributes and values of the additional to create |
Definition at line 1094 of file GNEAdditionalHandler.cpp.
References accessCanBeCreated(), buildAccess(), buildBusStop(), buildCalibrator(), buildChargingStation(), buildContainerStop(), buildDetectorE1(), buildDetectorE1Instant(), buildDetectorE2(), buildDetectorE3(), buildDetectorEntry(), buildDetectorExit(), buildParkingArea(), buildParkingSpace(), buildRerouter(), buildRouteProbe(), buildVaporizer(), buildVariableSpeedSign(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, GeomConvHelper::parseShapeReporting(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNENet::retrieveLane(), SUMO_ATTR_ANGLE, SUMO_ATTR_BEGIN, SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGEINTRANSIT, SUMO_ATTR_CHARGINGPOWER, 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_OUTPUT, SUMO_ATTR_POSITION, SUMO_ATTR_PROB, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_STARTPOS, SUMO_ATTR_VTYPES, SUMO_ATTR_WIDTH, SUMO_ATTR_Z, 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_E3DETECTOR, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANECALIBRATOR, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_REROUTER, SUMO_TAG_ROUTEPROBE, SUMO_TAG_VAPORIZER, SUMO_TAG_VSS, toString(), WRITE_WARNING, Position::x(), and Position::y().
Referenced by GNEAdditionalFrame::addAdditional().
|
static |
Builds a bus stop.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the bus stop |
| [in] | lane | The lane the bus stop is placed on |
| [in] | startPos | Begin position of the bus stop on the lane |
| [in] | endPos | End position of the bus stop on the lane |
| [in] | name | Name of busStop |
| [in] | lines | Names of the bus lines that halt on this bus stop |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the bus stop can not be added to the net (is duplicate) |
Definition at line 1419 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().
|
static |
builds a microscopic calibrator over a lane
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the calibrator |
| [in] | lane | The lane the calibrator is placed at |
| [in] | pos | The position on the edge the calibrator lies at |
| [in] | name | Calibrator name |
| [in] | outfile | te file in which write results |
| InvalidArgument | If the entry detector can not be added to the net (is duplicate) |
Definition at line 1672 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().
|
static |
builds a microscopic calibrator over an edge
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the calibrator |
| [in] | edge | The edge the calibrator is placed at |
| [in] | pos | The position on the edge the calibrator lies at |
| [in] | name | Calibrator name |
| [in] | outfile | te file in which write results |
| InvalidArgument | If the entry detector can not be added to the net (is duplicate) |
Definition at line 1694 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().
|
static |
DOCUMENTAR
Definition at line 1765 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildCalibratorFlow().
|
static |
DOCUMENTAR
Definition at line 1716 of file GNEAdditionalHandler.cpp.
References GNEViewNet::getNet(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_ROUTE, and toString().
Referenced by parseAndBuildCalibratorRoute().
|
static |
Builds a charging Station.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the charging Station |
| [in] | lane | The lane the charging Station is placed on |
| [in] | startPos | Begin position of the charging Station on the lane |
| [in] | endPos | End position of the charging Station on the lane |
| [in] | name | Name of charging station |
| [in] | chargingPower | power charged in every timeStep |
| [in] | efficiency | efficiency of the charge |
| [in] | chargeInTransit | enable or disable charge in transit |
| [in] | chargeDelay | delay in the charge |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the charging Station can not be added to the net (is duplicate) |
Definition at line 1485 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().
|
static |
DOCUMENTAR
Definition at line 1846 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildRerouterClosingLaneReroute().
|
static |
DOCUMENTAR
Definition at line 1863 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildRerouterClosingReroute().
|
static |
Builds a container stop.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the container stop |
| [in] | lane | The lane the container stop is placed on |
| [in] | startPos | Begin position of the container stop on the lane |
| [in] | endPos | End position of the container stop on the lane |
| [in] | name | Name of container stop |
| [in] | lines | Names of the bus lines that halt on this container stop |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the container stop can not be added to the net (is duplicate) |
Definition at line 1465 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().
|
static |
Builds a induction loop detector (E1)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the detector |
| [in] | lane | The lane the detector is placed on |
| [in] | pos | position of the detector on the lane |
| [in] | freq | the aggregation period the values the detector collects shall be summed up. |
| [in] | filename | The path to the output file. |
| [in] | vtypes | list of vehicle types to be reported |
| [in] | name | E2 detector name |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the detector can not be added to the net (is duplicate) |
Definition at line 1543 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().
|
static |
Builds a Instant Induction Loop Detector (E1Instant)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the detector |
| [in] | lane | The lane the detector is placed on |
| [in] | pos | position of the detector on the lane |
| [in] | filename | The path to the output file. |
| [in] | name | E2 detector name |
| [in] | vtypes | list of vehicle types to be reported |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the detector can not be added to the net (is duplicate) |
Definition at line 1652 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().
|
static |
Builds a lane Area Detector (E2)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the detector |
| [in] | lane | The lane the detector is placed on |
| [in] | pos | position of the detector on the lane |
Definition at line 1563 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().
|
static |
Builds a multi entry exit detector (E3)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the detector |
| [in] | pos | position of the detector in the map |
| [in] | freq | the aggregation period the values the detector collects shall be summed up. |
| [in] | filename | The path to the output file. |
| [in] | vtypes | list of vehicle types to be reported |
| [in] | name | E2 detector name |
| [in] | timeThreshold | The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting |
| [in] | speedThreshold | The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the detector can not be added to the net (is duplicate) |
Definition at line 1584 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().
|
static |
Builds a entry detector (E3)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | E3Parent | pointer to E3 detector parent |
| [in] | lane | The lane in which the entry detector is placed on |
| [in] | pos | position of the entry detector on the lane |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the entry detector can not be added to the net (invalid parent or lane) |
Definition at line 1604 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().
|
static |
Builds a exit detector (E3)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | E3Parent | pointer to E3 detector parent |
| [in] | lane | The lane in which the exit detector is placed on |
| [in] | pos | position of the exit detector on the lane |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the exit detector can not be added to the net (invalid parent or lane |
Definition at line 1628 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().
|
protectedinherited |
Builds an error message.
The error message includes the file name and the line/column information as supported by the given SAXParseException
| [in] | exception | The name of the currently processed file |
Definition at line 187 of file GenericSAXHandler.cpp.
References GenericSAXHandler::getFileName().
Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().
|
static |
DOCUMENTAR
Definition at line 1880 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildRerouterDestProbReroute().
|
static |
Builds a Parking Area.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the Parking >Area |
| [in] | lane | The lane the Parking Area is placed on |
| [in] | startPos | Begin position of the Parking Area on the lane |
| [in] | endPos | End position of the Parking Area on the lane |
| [in] | name | Name of Parking Area |
| [in] | friendlyPos | enable or disable friendly position |
| [in] | roadSideCapacity | road side capacity of ParkingArea |
| [in] | width | ParkingArea's length |
| [in] | length | ParkingArea's length |
| [in] | angle | ParkingArea's angle |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the charging Station can not be added to the net (is duplicate) |
Definition at line 1506 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().
|
static |
Builds a Parking Space.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | parkingAreaParent | Pointer to Parking Area Parent |
| [in] | x | ParkingSpace's X position |
| [in] | y | ParkingSpace's Y position |
| [in] | z | ParkingSpace's Z position |
| [in] | width | ParkingArea's width |
| [in] | length | ParkingArea's length |
| [in] | angle | ParkingArea's angle |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the charging Station can not be added to the net (is duplicate) |
Definition at line 1527 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().
|
static |
builds a rerouter
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the rerouter |
| [in] | pos | position of the rerouter in the map |
| [in] | edges | The edges the rerouter is placed at |
| [in] | prob | The probability the rerouter reoutes vehicles with |
| [in] | name | Calibrator name |
| [in] | file | The file to read the reroute definitions from |
| [in] | blockMovemet | enable or disable block movement |
Definition at line 1787 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().
|
static |
builds a rerouter interval
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | rerouterParent | rerouter in which interval is placed |
| [in] | begin | begin of interval |
| [in] | end | end of interval |
Definition at line 1825 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), checkOverlappingRerouterIntervals(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_INTERVAL, and toString().
Referenced by parseAndBuildRerouterInterval().
|
static |
builds a Route probe
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the routeprobe |
| [in] | edge | The edges the routeprobe is placed at |
| [in] | freq | the aggregation period the values the routeprobe collects shall be summed up. |
| [in] | name | Calibrator name |
| [in] | file | The file to read the routeprobe definitions from |
| [in] | begin | The time at which to start generating output |
| InvalidArgument | If the Route Probe can not be added to the net (is duplicate) |
Definition at line 1931 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().
|
static |
DOCUMENTAR
Definition at line 1914 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildRerouterRouteProbReroute().
|
static |
Builds a vaporizer (lane speed trigger)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | edge | edge in which this vaporizer is placed |
| [in] | startTime | time in which this vaporizer start |
| [in] | end | time in which this vaporizer ends |
| [in] | name | Vaporizer name |
| ProcessError | If the XML definition file is errornous |
Definition at line 1993 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().
|
static |
Builds a VariableSpeedSign (lane speed trigger)
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | id | The id of the lane speed trigger |
| [in] | destLanes | List of lanes affected by this speed trigger |
| [in] | name | Calibrator name |
| [in] | blockMovemet | enable or disable block movement |
| InvalidArgument | If the VariableSpeedSign can not be added to the net (is duplicate) |
Definition at line 1953 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().
|
static |
Builds a VariableSpeedSign Step.
| [in] | viewNet | viewNet in which element will be inserted |
| [in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
| [in] | VSSParent | Variable Speed Sign parent |
| [in] | time | step's time |
| [in] | speed | step's speed |
| InvalidArgument | If the Variable Speed Sign Step can not be added to the net (is duplicate) |
Definition at line 1976 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildVariableSpeedSignStep().
|
static |
DOCUMENTAR
Definition at line 1737 of file GNEAdditionalHandler.cpp.
References GNEViewNet::getNet(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_VTYPE, and toString().
Referenced by parseAndBuildCalibratorVehicleType().
|
static |
DOCUMENTAR
Definition at line 1897 of file GNEAdditionalHandler.cpp.
References GNEAdditional::addAdditionalChild(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and toString().
Referenced by parseAndBuildRerouterParkingAreaReroute().
|
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.
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 TplConvert::_2str(), and GenericSAXHandler::myCharactersVector.
|
static |
check if the position of a detector over a lane is valid
| [in] | pos | pos position of detector |
| [in] | laneLength | Length of the lane |
| [in] | friendlyPos | Attribute of detector |
Definition at line 2154 of file GNEAdditionalHandler.cpp.
Referenced by GNEDialog_FixAdditionalPositions::onCmdAccept(), parseAndBuildAccess(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorEntry(), and parseAndBuildDetectorExit().
|
static |
check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted
Definition at line 2202 of file GNEAdditionalHandler.cpp.
References GNEAdditional::getAdditionalChilds(), GNEAttributeCarrier::getTag(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, and SUMO_TAG_REROUTER.
Referenced by buildRerouterInterval().
|
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.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 121 of file GenericSAXHandler.cpp.
References TplConvert::_2str(), GenericSAXHandler::convertTag(), GenericSAXHandler::myCharacters(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myEndElement(), GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, and SUMO_TAG_NOTHING.
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
| [in] | exception | The occurred exception to process |
| ProcessError | On any call |
Definition at line 206 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
Referenced by MSRouteHandler::addPersonTrip(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::myStartElement().
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
| ProcessError | On any call |
| [in] | exception | The occurred exception to process |
Definition at line 212 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
|
static |
check if the position of a detector over a lane is valid
| [in] | startPos | Start position of detector |
| [in] | length | length of detector |
| [in] | laneLength | Length of the lane |
| [in] | friendlyPos | Attribute of detector |
Definition at line 2168 of file GNEAdditionalHandler.cpp.
Referenced by GNEDialog_FixAdditionalPositions::onCmdAccept(), and parseAndBuildDetectorE2().
|
static |
check if the position of an stoppingPlace over a lane is valid
| [in] | startPos | Start position of stoppingPlace |
| [in] | endPos | End position of stoppingPlace |
| [in] | laneLength | Length of the lane |
| [in] | minLength | Min length of the stoppingPlace |
| [in] | friendlyPos | Attribute of stoppingPlace |
Definition at line 2046 of file GNEAdditionalHandler.cpp.
References toString().
Referenced by GNEDialog_FixAdditionalPositions::onCmdAccept(), parseAndBuildBusStop(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), and parseAndBuildParkingArea().
|
inherited |
returns the current file name
Definition at line 75 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::addInstantE1Detector(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), NLHandler::addRouteProbeDetector(), NLHandler::addVTypeProbeDetector(), NLHandler::beginE3Detector(), GenericSAXHandler::buildErrorMessage(), PCNetProjectionLoader::load(), NILoader::loadXMLType(), NLHandler::myEndElement(), RODFDetectorHandler::myStartElement(), GUISettingsHandler::myStartElement(), SUMORouteHandler::myStartElement(), NLHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), XMLSubSys::runParser(), GenericSAXHandler::startElement(), and SUMORouteLoader::SUMORouteLoader().
| std::string GNEAdditionalHandler::getFileName | ( | const SUMOSAXAttributes & | attrs, |
| const std::string & | base, | ||
| const bool | allowEmpty = false |
||
| ) |
Helper method to obtain the filename.
| [in] | attrs | The attributes to obtain the file name from |
| [in] | base | The base path (the path the loaded additional file lies in) |
Definition at line 2011 of file GNEAdditionalHandler.cpp.
References FileHelpers::getConfigurationRelative(), SUMOSAXAttributes::getOpt(), FileHelpers::isAbsolute(), SUMO_ATTR_FILE, and WRITE_WARNING.
| 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.
| [in] | pos | position of additional over lane |
| [in] | lane | The lane the position shall be valid for |
| [in] | friendlyPos | flag to indicate if friendlyPos is enabled |
| [in] | additionalID | ID of additional |
Definition at line 2030 of file GNEAdditionalHandler.cpp.
References GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), and WRITE_WARNING.
|
protectedvirtualinherited |
Callback method for characters to implement by derived classes.
Called by "endElement" (see there).
| [in] | element | The opened element, given as a int |
| [in] | chars | The 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().
|
virtual |
Called when a closing tag occurs.
| [in] | element | ID of the currently opened element |
| ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Definition at line 196 of file GNEAdditionalHandler.cpp.
References myParentElements, and GNEAdditionalHandler::HierarchyInsertedElements::popElement().
|
virtual |
Called on the opening of a tag;.
| [in] | element | ID of the currently opened element |
| [in] | attrs | Attributes within the currently opened element |
| ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Definition at line 85 of file GNEAdditionalHandler.cpp.
References GNEAdditionalHandler::HierarchyInsertedElements::insertElement(), myLastInsertedAdditional, myParentElements, parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildCalibratorRoute(), parseAndBuildCalibratorVehicleType(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), 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_TRAIN_STOP, SUMO_TAG_VAPORIZER, SUMO_TAG_VSS, and SUMO_TAG_VTYPE.
| void GNEAdditionalHandler::parseAndBuildAccess | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses values and adds access to the current bus stop.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 722 of file GNEAdditionalHandler.cpp.
References accessCanBeCreated(), buildAccess(), checkAndFixDetectorPositionPosition(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveLane(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildBusStop | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a bus stop.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 656 of file GNEAdditionalHandler.cpp.
References buildBusStop(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), fixStoppinPlacePosition(), NBEdge::getFinalLength(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_STARTPOS, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildCalibrator | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a mesoscopic or microscopic calibrator.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 850 of file GNEAdditionalHandler.cpp.
References buildCalibrator(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), SUMOSAXAttributes::hasAttribute(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, 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_TAG_CALIBRATOR, SUMO_TAG_LANECALIBRATOR, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildCalibratorFlow | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses flow values of Calibrators.
| [in] | attrs | SAX-attributes which define the flows |
| [in] | tag | of the additional |
Definition at line 345 of file GNEAdditionalHandler.cpp.
References buildCalibratorFlow(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_END, SUMO_ATTR_LINE, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_REROUTE, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TYPE, SUMO_ATTR_VEHSPERHOUR, SUMO_TAG_CALIBRATOR, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildCalibratorRoute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses route values of Calibrators.
| [in] | attrs | SAX-attributes which define the routes |
| [in] | tag | of the additional |
Definition at line 272 of file GNEAdditionalHandler.cpp.
References buildCalibratorRoute(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNENet::retrieveAdditional(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_TAG_ROUTE, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildCalibratorVehicleType | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses vehicle type values of Calibrators.
| [in] | attrs | SAX-attributes which define the vehicle types |
| [in] | tag | of the additional |
Definition at line 300 of file GNEAdditionalHandler.cpp.
References buildVehicleType(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, GNENet::retrieveAdditional(), SUMO_ATTR_ACCEL, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_DECEL, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_GUISHAPE, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_SIGMA, SUMO_ATTR_SPEEDDEV, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_TAU, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_VTYPE, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildChargingStation | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a charging station.
| [in] | attrs | SAXattributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 754 of file GNEAdditionalHandler.cpp.
References buildChargingStation(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), fixStoppinPlacePosition(), NBEdge::getFinalLength(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGEINTRANSIT, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_EFFICIENCY, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_STARTPOS, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildContainerStop | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a container stop.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 689 of file GNEAdditionalHandler.cpp.
References buildContainerStop(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), fixStoppinPlacePosition(), NBEdge::getFinalLength(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_STARTPOS, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorE1 | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a induction loop detector (E1)
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 912 of file GNEAdditionalHandler.cpp.
References buildDetectorE1(), checkAndFixDetectorPositionPosition(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, 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, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorE1Instant | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Instant induction loop detector (E1Instant)
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 1062 of file GNEAdditionalHandler.cpp.
References buildDetectorE1Instant(), checkAndFixDetectorPositionPosition(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, 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, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorE2 | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a lane area detector (E2)
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 945 of file GNEAdditionalHandler.cpp.
References buildDetectorE2(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), fixE2DetectorPositionPosition(), NBEdge::getFinalLength(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_CONT, 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_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorE3 | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a multi entry exit detector (E3)
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 984 of file GNEAdditionalHandler.cpp.
References buildDetectorE3(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, 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, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorEntry | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Entry detector.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 1010 of file GNEAdditionalHandler.cpp.
References buildDetectorEntry(), checkAndFixDetectorPositionPosition(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveLane(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildDetectorExit | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Exit detector.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 1036 of file GNEAdditionalHandler.cpp.
References buildDetectorExit(), checkAndFixDetectorPositionPosition(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveLane(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildParkingArea | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a parking area.
| [in] | attrs | SAXattributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 790 of file GNEAdditionalHandler.cpp.
References buildParkingArea(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), fixStoppinPlacePosition(), NBEdge::getFinalLength(), GNEAttributeCarrier::getID(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_ANGLE, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_STARTPOS, SUMO_ATTR_WIDTH, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildParkingSpace | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a parking space.
| [in] | attrs | SAXattributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 826 of file GNEAdditionalHandler.cpp.
References buildParkingSpace(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_ANGLE, SUMO_ATTR_LENGTH, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, and SUMO_TAG_PARKING_AREA.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouter | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a rerouter.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 478 of file GNEAdditionalHandler.cpp.
References buildRerouter(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, 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, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Closing Lane reroute.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 541 of file GNEAdditionalHandler.cpp.
References buildClosingLaneReroute(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, parseVehicleClasses(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveLane(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterClosingReroute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Closing Reroute.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 565 of file GNEAdditionalHandler.cpp.
References buildClosingReroute(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, parseVehicleClasses(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveEdge(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Destiny Prob Reroute.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 589 of file GNEAdditionalHandler.cpp.
References builDestProbReroute(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNENet::retrieveEdge(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterInterval | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Rerouter Interval.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 512 of file GNEAdditionalHandler.cpp.
References buildRerouterInterval(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAdditional::getFirstAdditionalParent(), GNEAttributeCarrier::getID(), myLastInsertedAdditional, myParentElements, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a parkingAreaReroute.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 612 of file GNEAdditionalHandler.cpp.
References builParkingAreaReroute(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myViewNet, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_VISIBLE, SUMO_TAG_INTERVAL, SUMO_TAG_PARKING_AREA, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Route Prob Reroute.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 636 of file GNEAdditionalHandler.cpp.
References buildRouteProbReroute(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), myLastInsertedAdditional, myParentElements, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_ID, SUMO_ATTR_PROB, and SUMO_TAG_INTERVAL.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildRouteProbe | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds routeProbe.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 231 of file GNEAdditionalHandler.cpp.
References buildRouteProbe(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, myUndoAdditionals, myViewNet, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_EDGE, SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_ID, SUMO_ATTR_NAME, toString(), and WRITE_WARNING.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseAndBuildVaporizer | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Builds a vaporization.
| [in] | attrs | SAX-attributes which define the vaporizer |
| [in] | tag | of the additional |
Definition at line 203 of file GNEAdditionalHandler.cpp.
References buildVaporizer(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, 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().
| void GNEAdditionalHandler::parseAndBuildVariableSpeedSign | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Variable Speed Signal (lane speed trigger)
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 429 of file GNEAdditionalHandler.cpp.
References buildVariableSpeedSign(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), GNEViewNet::getNet(), myLastInsertedAdditional, myParentElements, 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().
| void GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep | ( | const SUMOSAXAttributes & | attrs, |
| const SumoXMLTag & | tag | ||
| ) |
Parses his values and builds a Variable Speed Signal Step.
| [in] | attrs | SAX-attributes which define the trigger |
| [in] | tag | of the additional |
Definition at line 458 of file GNEAdditionalHandler.cpp.
References buildVariableSpeedSignStep(), GNEAdditionalHandler::HierarchyInsertedElements::commitElementInsertion(), GNEAttributeCarrier::getID(), myLastInsertedAdditional, myParentElements, myViewNet, GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, and SUMO_TAG_VSS.
Referenced by myStartElement().
| void GNEAdditionalHandler::parseGenericParameter | ( | const SUMOSAXAttributes & | attrs | ) |
Parse generic parameter and insert it in the last created additional.
| [in] | attrs | SAX-attributes which define the generic parameter |
Definition at line 394 of file GNEAdditionalHandler.cpp.
References SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), GNEAttributeCarrier::getTag(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidAttribute(), SUMOXMLDefinitions::isValidTypeID(), myLastInsertedAdditional, Parameterised::setParameter(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, toString(), WRITE_DEBUG, and WRITE_WARNING.
Referenced by myStartElement().
|
inherited |
Assigning a parent handler which is enabled when the specified tag is closed.
Definition at line 162 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().
Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().
|
inherited |
Sets the current file name.
| [in] | name | The name of the currently processed file |
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().
|
inlineprotectedinherited |
Definition at line 255 of file GenericSAXHandler.h.
References GenericSAXHandler::convert(), GenericSAXHandler::convertTag(), and GenericSAXHandler::mySchemaSeen.
Referenced by SUMOSAXReader::LocalSchemaResolver::resolveEntity().
|
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.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 94 of file GenericSAXHandler.cpp.
References TplConvert::_2str(), 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, and SUMO_TAG_INCLUDE.
|
inherited |
Handler for XML-warnings.
The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.
| [in] | exception | The occurred exception to process |
Definition at line 200 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.
|
private |
pointer to parent additional (used for loading additional childs placed in a different XML)
Definition at line 701 of file GNEAdditionalHandler.h.
|
private |
pointer to last inserted additional (used for generic parameters)
Definition at line 704 of file GNEAdditionalHandler.h.
Referenced by myStartElement(), parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildCalibratorRoute(), parseAndBuildCalibratorVehicleType(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), parseAndBuildVariableSpeedSignStep(), and parseGenericParameter().
|
private |
HierarchyInsertedElements used for insert childs.
Definition at line 707 of file GNEAdditionalHandler.h.
Referenced by GNEAdditionalHandler(), myEndElement(), myStartElement(), parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildCalibratorRoute(), parseAndBuildCalibratorVehicleType(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), and parseAndBuildVariableSpeedSignStep().
|
private |
flag to check if created additionals must be undo and redo
Definition at line 698 of file GNEAdditionalHandler.h.
Referenced by parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorRoute(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRouteProbe(), parseAndBuildVaporizer(), and parseAndBuildVariableSpeedSign().
|
private |
pointer to View's Net
Definition at line 695 of file GNEAdditionalHandler.h.
Referenced by parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildCalibratorRoute(), parseAndBuildCalibratorVehicleType(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), and parseAndBuildVariableSpeedSignStep().