![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Builds additional objects for GNENet (busStops, chargingStations, detectors, etc..) More...
#include <GNEAdditionalHandler.h>
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, GNEAdditional *additionalParent=nullptr) | |
Constructor. More... | |
void | registerParent (const int tag, GenericSAXHandler *handler) |
Assigning a parent handler which is enabled when the specified tag is closed. More... | |
void | setFileName (const std::string &name) |
Sets the current file name. More... | |
void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs) |
The inherited method called when a new tag opens. More... | |
~GNEAdditionalHandler () | |
Destructor. More... | |
inherited from ShapeHandler | |
void | myStartElement (int element, const SUMOSAXAttributes &attrs) |
Called on the opening of a tag;. More... | |
void | myEndElement (int element) |
Called when a closing tag occurs. More... | |
Position | getLanePos (const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat) |
get lane position More... | |
Static Public Member Functions | |
static bool | loadFiles (const std::vector< std::string > &files, ShapeHandler &sh) |
loads all of the given files More... | |
Static Protected Member Functions | |
parsing methods | |
These methods parse the attributes for each of the described additional and call the according methods to build the additional | |
static bool | parseAndBuildVaporizer (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Builds a Vaporizer. More... | |
static bool | parseAndBuildTAZ (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Builds a TAZ. More... | |
static bool | parseAndBuildTAZSource (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Builds a TAZ Source. More... | |
static bool | parseAndBuildTAZSink (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Builds a TAZ Sink. More... | |
static bool | parseAndBuildVariableSpeedSign (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Variable Speed Signal (GNEViewNet* viewNet, bool allowUndoRedo, lane speed additional) More... | |
static bool | parseAndBuildVariableSpeedSignStep (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Variable Speed Signal Step. More... | |
static bool | parseAndBuildRerouter (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a rerouter. More... | |
static bool | parseAndBuildRerouterInterval (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Rerouter Interval. More... | |
static bool | parseAndBuildRerouterClosingLaneReroute (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Closing Lane reroute. More... | |
static bool | parseAndBuildRerouterClosingReroute (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Closing Reroute. More... | |
static bool | parseAndBuildRerouterDestProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Destiny Prob Reroute. More... | |
static bool | parseAndBuildRerouterParkingAreaReroute (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a parkingAreaReroute. More... | |
static bool | parseAndBuildRerouterRouteProbReroute (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Route Prob Reroute. More... | |
static bool | parseAndBuildBusStop (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a bus stop. More... | |
static bool | parseAndBuildAccess (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses values and adds access to the current bus stop. More... | |
static bool | parseAndBuildContainerStop (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a container stop. More... | |
static bool | parseAndBuildChargingStation (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a charging station. More... | |
static bool | parseAndBuildParkingArea (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a parking area. More... | |
static bool | parseAndBuildParkingSpace (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a parking space. More... | |
static bool | parseAndBuildCalibrator (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a mesoscopic or microscopic calibrator. More... | |
static bool | parseAndBuildDetectorE1 (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a induction loop detector (GNEViewNet* viewNet, bool allowUndoRedo, E1) More... | |
static bool | parseAndBuildDetectorE2 (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a lane area detector (GNEViewNet* viewNet, bool allowUndoRedo, E2) More... | |
static bool | parseAndBuildDetectorE3 (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a multi entry exit detector (GNEViewNet* viewNet, bool allowUndoRedo, E3) More... | |
static bool | parseAndBuildDetectorEntry (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Entry detector. More... | |
static bool | parseAndBuildDetectorExit (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Exit detector. More... | |
static bool | parseAndBuildDetectorE1Instant (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds a Instant induction loop detector (GNEViewNet* viewNet, bool allowUndoRedo, E1Instant) More... | |
static bool | parseAndBuildRouteProbe (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses his values and builds routeProbe. More... | |
static bool | parseAndBuildCalibratorFlow (GNEViewNet *viewNet, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Parses flow values of Calibrators. More... | |
Private Member Functions | |
GNEAdditionalHandler (const GNEAdditionalHandler &s)=delete | |
invalidate copy constructor More... | |
GNEAdditionalHandler & | operator= (const GNEAdditionalHandler &s)=delete |
invalidate assignment operator More... | |
void | parseAndBuildPOI (const SUMOSAXAttributes &attrs) |
Parses his values and builds a POI. More... | |
void | parseAndBuildPoly (const SUMOSAXAttributes &attrs) |
Parses his values and builds a Poly. More... | |
void | parseParameter (const SUMOSAXAttributes &attrs) |
Parse parameter and insert it in the last created additional. More... | |
Private Attributes | |
HierarchyInsertedAdditionals | myHierarchyInsertedAdditionals |
HierarchyInsertedAdditionals used for insert children. More... | |
GNEViewNet * | myViewNet |
pointer to View's Net More... | |
building methods | |
Called with parsed values, these methods build the additional. | |
double | getPosition (double pos, GNELane &lane, bool friendlyPos, const std::string &additionalID) |
extracts the position, checks whether it shall be mirrored and checks whether it is within the lane. More... | |
static bool | buildAdditional (GNEViewNet *viewNet, bool allowUndoRedo, SumoXMLTag tag, const SUMOSAXAttributes &attrs, HierarchyInsertedAdditionals *insertedAdditionals) |
Build additionals. More... | |
static GNEAdditional * | buildBusStop (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, int personCapacity, bool friendlyPosition, bool blockMovement) |
Builds a bus stop. More... | |
static GNEAdditional * | buildAccess (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *busStop, GNELane *lane, double 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 double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, bool friendlyPosition, bool blockMovement) |
Builds a container stop. More... | |
static GNEAdditional * | buildChargingStation (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, SUMOTime chargeDelay, bool friendlyPosition, bool blockMovement) |
Builds a charging Station. More... | |
static GNEAdditional * | buildParkingArea (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, bool friendlyPosition, int roadSideCapacity, bool onRoad, double width, const std::string &length, double angle, bool blockMovement) |
Builds a Parking Area. More... | |
static GNEAdditional * | buildParkingSpace (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *parkingAreaParent, Position pos, 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, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement) |
Builds a induction loop detector (E1) More... | |
static GNEAdditional * | buildSingleLaneDetectorE2 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, double length, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement) |
Builds a single-lane Area Detector (E2) More... | |
static GNEAdditional * | buildMultiLaneDetectorE2 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, const std::vector< GNELane * > &lanes, double pos, double endPos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement) |
Builds a multi-lane Area Detector (E2) More... | |
static GNEAdditional * | buildDetectorE3 (GNEViewNet *viewNet, bool allowUndoRedo, const std::string &id, Position pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement) |
Builds a multi entry exit detector (E3) More... | |
static 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, SUMOTime freq, const std::string &routeprobe, bool centerAfterCreation) |
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, SUMOTime freq, const std::string &routeprobe, bool centerAfterCreation) |
builds a microscopic calibrator over an edge More... | |
static GNEAdditional * | buildCalibratorFlow (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *calibratorParent, GNEDemandElement *route, GNEDemandElement *vType, const std::string &vehsPerHour, const std::string &speed, const RGBColor &color, const std::string &departLane, const std::string &departPos, const std::string &departSpeed, const std::string &arrivalLane, const std::string &arrivalPos, const std::string &arrivalSpeed, const std::string &line, int personNumber, int containerNumber, bool reroute, const std::string &departPosLat, const std::string &arrivalPosLat, SUMOTime begin, SUMOTime end) |
builds a calibrator flow More... | |
static 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, SUMOTime timeThreshold, const std::string &vTypes, bool blockMovement) |
builds a rerouter More... | |
static GNEAdditional * | buildRerouterInterval (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *rerouterParent, SUMOTime begin, SUMOTime 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, SUMOTime begin, bool centerAfterCreation) |
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 additional) 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, SUMOTime start, SUMOTime endTime, const std::string &name, bool centerAfterCreation) |
Builds a vaporizer (lane speed additional) More... | |
static GNEAdditional * | buildTAZ (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 GNEAdditional * | buildTAZSource (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *TAZ, GNEEdge *edge, double departWeight) |
Builds a TAZSource (Traffic Assignment Zone) More... | |
static GNEAdditional * | buildTAZSink (GNEViewNet *viewNet, bool allowUndoRedo, GNEAdditional *TAZ, GNEEdge *edge, double arrivalWeight) |
Builds a TAZSink (Traffic Assignment Zone) More... | |
static bool | checkAndFixDetectorPosition (double &pos, const double laneLength, const bool friendlyPos) |
check if the position of a detector over a lane is valid More... | |
static bool | fixE2DetectorPosition (double &pos, double &length, const double laneLength, const bool friendlyPos) |
check if the position of a detector over a lane is valid More... | |
static bool | accessCanBeCreated (GNEAdditional *busStopParent, GNEEdge *edge) |
check if a GNEAccess can be created in a certain Edge More... | |
static bool | checkOverlappingRerouterIntervals (GNEAdditional *rerouter, SUMOTime newBegin, SUMOTime newEnd) |
check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted More... | |
inherited from GenericSAXHandler | |
ShapeContainer & | myShapeContainer |
reference to shape container in which all Shares are being added More... | |
std::string | myPrefix |
The prefix to use. More... | |
RGBColor | myDefaultColor |
The default color to use. More... | |
double | myDefaultLayer |
The default layer to use. More... | |
bool | myDefaultFill |
Information whether polygons should be filled. More... | |
Parameterised * | myLastParameterised |
element to receive parameters More... | |
const GeoConvHelper * | myGeoConvHelper |
geo-conversion to use during loading More... | |
virtual bool | addLanePosParams () |
Whether some input attributes shall be automatically added as params (Can be implemented in all child) More... | |
void | setDefaults (const std::string &prefix, const RGBColor &color, const double layer, const bool fill=false) |
set default values More... | |
void | addPOI (const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing) |
adds a POI More... | |
void | addPoly (const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing) |
adds a polygon More... | |
Parameterised * | getLastParameterised () const |
get last parameterised object More... | |
SAX ErrorHandler callbacks | |
void | warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception) |
Handler for XML-warnings. More... | |
void | error (const XERCES_CPP_NAMESPACE::SAXParseException &exception) |
Handler for XML-errors. More... | |
void | fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception) |
Handler for XML-errors. More... | |
XMLCh * | convert (const std::string &name) const |
converts from c++-string into unicode More... | |
int | convertTag (const std::string &tag) const |
Converts a tag from its string into its numerical representation. More... | |
std::string | buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception) |
Builds an error message. More... | |
virtual void | myCharacters (int element, const std::string &chars) |
Callback method for characters to implement by derived classes. More... | |
void | setSchemaSeen (const bool schemaSeen=true) |
attributes parsing | |
AttrMap | myPredefinedTags |
std::map< int, std::string > | myPredefinedTagsMML |
the map from ids to their string representation More... | |
typedef std::map< int, XMLCh * > | AttrMap |
elements parsing | |
TagMap | myTagMap |
std::vector< std::string > | myCharactersVector |
A list of character strings obtained so far to build the complete characters string at the end. More... | |
GenericSAXHandler * | myParentHandler |
The handler to give control back to. More... | |
int | myParentIndicator |
The tag indicating that control should be given back. More... | |
std::string | myFileName |
The name of the currently parsed file. More... | |
std::string | myExpectedRoot |
The root element to expect, empty string disables the check. More... | |
bool | mySchemaSeen |
whether the reader has already seen a schema More... | |
typedef std::map< std::string, int > | TagMap |
Builds additional objects for GNENet (busStops, chargingStations, detectors, etc..)
Definition at line 47 of file GNEAdditionalHandler.h.
|
privateinherited |
Definition at line 285 of file GenericSAXHandler.h.
|
privateinherited |
Definition at line 299 of file GenericSAXHandler.h.
GNEAdditionalHandler::GNEAdditionalHandler | ( | const std::string & | file, |
GNEViewNet * | viewNet, | ||
GNEAdditional * | additionalParent = nullptr |
||
) |
Constructor.
Definition at line 64 of file GNEAdditionalHandler.cpp.
References GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), Shape::DEFAULT_LAYER_POI, GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAdditionalHandler::HierarchyInsertedAdditionals::insertElement(), myHierarchyInsertedAdditionals, RGBColor::RED, and ShapeHandler::setDefaults().
GNEAdditionalHandler::~GNEAdditionalHandler | ( | ) |
Destructor.
Definition at line 77 of file GNEAdditionalHandler.cpp.
|
privatedelete |
invalidate copy constructor
|
static |
check if a GNEAccess can be created in a certain Edge
Definition at line 1019 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::getChildAdditionals(), GNEEdge::getLanes(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), SUMO_ATTR_LANE, and SUMO_TAG_BUS_STOP.
Referenced by buildAccess(), GNEAccess::isValid(), and parseAndBuildAccess().
|
protectedvirtualinherited |
Whether some input attributes shall be automatically added as params (Can be implemented in all child)
Reimplemented in NLShapeHandler, and NIXMLShapeHandler.
Definition at line 294 of file ShapeHandler.cpp.
Referenced by ShapeHandler::addPOI().
|
protectedinherited |
adds a POI
Definition at line 112 of file ShapeHandler.cpp.
References ShapeHandler::addLanePosParams(), ShapeContainer::addPOI(), Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_IMG_HEIGHT, Shape::DEFAULT_IMG_WIDTH, Shape::DEFAULT_RELATIVEPATH, SUMOSAXAttributes::get(), NamedObjectCont< T >::get(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), GeoConvHelper::getFinal(), ShapeHandler::getLanePos(), SUMOSAXAttributes::getOpt(), ShapeContainer::getPOIs(), GeoConvHelper::getProcessing(), SUMOSAXAttributes::hasAttribute(), INVALID_POSITION, FileHelpers::isAbsolute(), SUMOXMLDefinitions::isValidTypeID(), ShapeHandler::myDefaultColor, ShapeHandler::myDefaultLayer, ShapeHandler::myGeoConvHelper, ShapeHandler::myLastParameterised, ShapeHandler::myPrefix, ShapeHandler::myShapeContainer, Position::set(), Parameterised::setParameter(), SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LANE, SUMO_ATTR_LAT, SUMO_ATTR_LAYER, SUMO_ATTR_LON, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, toString(), GeoConvHelper::usingGeoProjection(), WRITE_ERROR, WRITE_WARNING, GeoConvHelper::x2cartesian(), and GeoConvHelper::x2cartesian_const().
Referenced by ShapeHandler::myStartElement(), and PCLoaderXML::myStartElement().
|
protectedinherited |
adds a polygon
Definition at line 201 of file ShapeHandler.cpp.
References ShapeContainer::addPolygon(), Shape::DEFAULT_ANGLE, Shape::DEFAULT_IMG_FILE, Shape::DEFAULT_LINEWIDTH, Shape::DEFAULT_RELATIVEPATH, Shape::DEFAULT_TYPE, SUMOSAXAttributes::get(), NamedObjectCont< T >::get(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), GeoConvHelper::getFinal(), SUMOSAXAttributes::getOpt(), ShapeContainer::getPolygons(), GeoConvHelper::getProcessing(), SUMOSAXAttributes::hasAttribute(), FileHelpers::isAbsolute(), SUMOXMLDefinitions::isValidTypeID(), ShapeHandler::myDefaultColor, ShapeHandler::myDefaultFill, ShapeHandler::myDefaultLayer, ShapeHandler::myGeoConvHelper, ShapeHandler::myLastParameterised, ShapeHandler::myPrefix, ShapeHandler::myShapeContainer, SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_FILL, SUMO_ATTR_GEO, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LAYER, SUMO_ATTR_LINEWIDTH, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, WRITE_ERROR, WRITE_WARNING, and GeoConvHelper::x2cartesian().
Referenced by ShapeHandler::myStartElement(), and PCLoaderXML::myStartElement().
|
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 |
[in[ | length length of the Access | |
[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 261 of file GNEAdditionalHandler.cpp.
References accessCanBeCreated(), GNEHierarchicalChildElements::addChildAdditional(), 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 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] | attrs | SUMOSAXAttributes with attributes |
[in] | HierarchyInsertedAdditionals | pointer to HierarchyInsertedAdditionals (can be null) |
Definition at line 168 of file GNEAdditionalHandler.cpp.
References parseAndBuildAccess(), parseAndBuildBusStop(), parseAndBuildCalibrator(), parseAndBuildCalibratorFlow(), parseAndBuildChargingStation(), parseAndBuildContainerStop(), parseAndBuildDetectorE1(), parseAndBuildDetectorE1Instant(), parseAndBuildDetectorE2(), parseAndBuildDetectorE3(), parseAndBuildDetectorEntry(), parseAndBuildDetectorExit(), parseAndBuildParkingArea(), parseAndBuildParkingSpace(), parseAndBuildRerouter(), parseAndBuildRerouterClosingLaneReroute(), parseAndBuildRerouterClosingReroute(), parseAndBuildRerouterDestProbReroute(), parseAndBuildRerouterInterval(), parseAndBuildRerouterParkingAreaReroute(), parseAndBuildRerouterRouteProbReroute(), parseAndBuildRouteProbe(), parseAndBuildTAZ(), parseAndBuildTAZSink(), parseAndBuildTAZSource(), parseAndBuildVaporizer(), parseAndBuildVariableSpeedSign(), parseAndBuildVariableSpeedSignStep(), SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E2DETECTOR_MULTILANE, SUMO_TAG_E3DETECTOR, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_FLOW_CALIBRATOR, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_LANECALIBRATOR, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_SPACE, SUMO_TAG_PARKING_ZONE_REROUTE, SUMO_TAG_REROUTER, SUMO_TAG_ROUTE_PROB_REROUTE, SUMO_TAG_ROUTEPROBE, SUMO_TAG_STEP, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VAPORIZER, and SUMO_TAG_VSS.
Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), myStartElement(), GNETAZFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector().
|
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 240 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_BUS_STOP, and toString().
Referenced by parseAndBuildBusStop().
|
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 |
[in] | centerAfterCreation | center camera after creation |
[in] | routeProbe | route probe vinculated with this calibrator |
InvalidArgument | If the entry detector can not be added to the net (is duplicate) |
Definition at line 544 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GUISUMOAbstractView::centerTo(), GNEViewNet::getNet(), GNECalibrator::getPositionInView(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().
|
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 |
[in] | centerAfterCreation | center camera after creation |
InvalidArgument | If the entry detector can not be added to the net (is duplicate) |
Definition at line 520 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GUISUMOAbstractView::centerTo(), GNEViewNet::getNet(), GNECalibrator::getPositionInView(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CALIBRATOR, and toString().
Referenced by parseAndBuildCalibrator().
|
static |
builds a calibrator flow
[in] | viewNet | viewNet in which element will be inserted |
[in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
[in] | type | The id of the vehicle's flow type to use for this vehicle's flow. |
[in] | route | The id of the route the vehicle's flow shall drive along |
[in] | vehsPerHour | number of vehicles per hour, equally spaced (not together with period or probability) |
[in] | speed | The speed with which the vehicles shall enter the network. NOTE: this attribute is exclusive of CalibratorFlows! |
[in] | color | This vehicle's flow's color |
[in] | departLane | The lane on which the vehicle's flow shall be inserted; see #departLane. default: "first" |
[in] | departPos | The position at which the vehicle's flow shall enter the net; see #departPos. default: "base" |
[in] | departSpeed | The speed with which the vehicle's flow shall enter the network; see #departSpeed. default: 0 |
[in] | arrivalLane | The lane at which the vehicle's flow shall leave the network; see #arrivalLane. default: "current" |
[in] | arrivalPos | The position at which the vehicle's flow shall leave the network; see #arrivalPos. default: "max" |
[in] | arrivalSpeed | The speed with which the vehicle's flow shall leave the network; see #arrivalSpeed. default: "current" |
[in] | line | A string specifying the id of a public transport line which can be used when specifying person rides |
[in] | personNumber | The number of occupied seats when the vehicle's flow is inserted. default: 0 |
[in] | containerNumber | The number of occupied container places when the vehicle's flow is inserted. default: 0 |
[in] | reroute | List of intermediate edges that shall be passed on rerouting. |
[in] | via | List of intermediate edges that shall be passed on rerouting. |
[in] | departPosLat | The lateral position on the departure lane at which the vehicle's flow shall enter the net; see Simulation/SublaneModel. default: "center" |
[in] | arrivalPosLat | The lateral position on the arrival lane at which the vehicle's flow shall arrive; see Simulation/SublaneModel. by default the vehicle's flow does not care about lateral arrival position |
[in] | begin | first vehicle's flow departure time |
[in] | end | end of departure interval (if undefined, defaults to 24 hours) |
Definition at line 568 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by parseAndBuildCalibratorFlow().
|
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 308 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CHARGING_STATION, and toString().
Referenced by parseAndBuildChargingStation().
|
static |
DOCUMENTAR
Definition at line 649 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by parseAndBuildRerouterClosingLaneReroute().
|
static |
DOCUMENTAR
Definition at line 666 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
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 287 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_CONTAINER_STOP, and toString().
Referenced by 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 366 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E1DETECTOR, and toString().
Referenced by 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 500 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), 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 parseAndBuildDetectorE1Instant().
|
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 432 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 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 452 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), 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 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 476 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, SUMO_TAG_LANE, and toString().
Referenced by 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 186 of file GenericSAXHandler.cpp.
References GenericSAXHandler::getFileName(), and transcode().
Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().
|
static |
DOCUMENTAR
Definition at line 683 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by parseAndBuildRerouterDestProbReroute().
|
static |
Builds a multi-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] | lanes | The lanes the detector is placed on |
[in] | pos | position of the detector on the first lane |
[in] | endPos | position of the detector on the last 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] | 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] | jamThreshold | The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam |
[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 407 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 parseAndBuildDetectorE2().
|
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 329 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_PARKING_AREA, and toString().
Referenced by 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] | pos | ParkingSpace's X-Y 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 350 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_PARKING_SPACE, and toString().
Referenced by 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 590 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 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 628 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), checkOverlappingRerouterIntervals(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), 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 |
[in] | centerAfterCreation | center camera after creation |
InvalidArgument | If the Route Probe can not be added to the net (is duplicate) |
Definition at line 734 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GUISUMOAbstractView::centerTo(), GNEViewNet::getNet(), GNERouteProbe::getPositionInView(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_ROUTEPROBE, and toString().
Referenced by parseAndBuildRouteProbe().
|
static |
DOCUMENTAR
Definition at line 717 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by parseAndBuildRerouterRouteProbReroute().
|
static |
Builds a single-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 |
[in[ | length length of the detector | |
[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] | jamThreshold | The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam |
[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 386 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), SUMO_TAG_E2DETECTOR, and toString().
Referenced by parseAndBuildDetectorE2().
|
static |
Builds a TAZ (Traffic Assignment Zone)
[in] | viewNet | viewNet in which element will be inserted |
[in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
[in] | id | TAZ ID |
[in] | shape | TAZ shape |
[in] | edges | list of edges (note: This will create GNETAZSourceSinks/Sinks with default values) |
[in] | blockMovemet | enable or disable block movement |
ProcessError | If the XML definition file is errornous |
Definition at line 818 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNENet::disableUpdateGeometry(), GNENet::enableUpdateGeometry(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, toString(), GNETAZ::updateGeometry(), and GNETAZ::updateParentAdditional().
Referenced by parseAndBuildTAZ().
|
static |
Builds a TAZSink (Traffic Assignment Zone)
[in] | viewNet | viewNet in which element will be inserted |
[in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
[in] | TAZ | Traffic Assignment Zone in which this TAZSink is palced |
[in] | ege | edge in which TAZSink is placed |
[in] | arrivalWeight | arrival weight of TAZSink |
ProcessError | If the XML definition file is errornous |
Definition at line 916 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::getChildAdditionals(), 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().
|
static |
Builds a TAZSource (Traffic Assignment Zone)
[in] | viewNet | viewNet in which element will be inserted |
[in] | allowUndoRedo | enable or disable remove created additional with ctrl + Z / ctrl + Y |
[in] | TAZ | Traffic Assignment Zone in which this TAZSource is palced |
[in] | ege | edge in which TAZSource is placed |
[in] | departWeight | depart weight of TAZSource |
ProcessError | If the XML definition file is errornous |
Definition at line 859 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::getChildAdditionals(), 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().
|
static |
Builds a vaporizer (lane speed additional)
[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] | endTime | time in which this vaporizer ends |
[in] | name | Vaporizer name |
[in] | centerAfterCreation | center camera after creation |
ProcessError | If the XML definition file is errornous |
Definition at line 798 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GUISUMOAbstractView::centerTo(), GNEViewNet::getNet(), GNEVaporizer::getPositionInView(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNENet::insertAdditional(), GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_VAPORIZER, and toString().
Referenced by parseAndBuildVaporizer().
|
static |
Builds a VariableSpeedSign (lane speed additional)
[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 additional |
[in] | destLanes | List of lanes affected by this speed additional |
[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 758 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 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 781 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by parseAndBuildVariableSpeedSignStep().
|
static |
DOCUMENTAR
Definition at line 700 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::addChildAdditional(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEReferenceCounter::incRef(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
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 169 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myCharactersVector, and StringUtils::transcode().
|
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 987 of file GNEAdditionalHandler.cpp.
Referenced by GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEDetector::getGeometryPositionOverLane(), 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 1035 of file GNEAdditionalHandler.cpp.
References GNEHierarchicalChildElements::getChildAdditionals(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_REROUTER, and TIME2STEPS.
Referenced by buildRerouterInterval().
|
privateinherited |
converts from c++-string into unicode
[in] | name | The string to convert |
Definition at line 80 of file GenericSAXHandler.cpp.
Referenced by GenericSAXHandler::GenericSAXHandler().
|
privateinherited |
Converts a tag from its string into its numerical representation.
Returns the enum-representation stored for the given tag. If the tag is not known, SUMO_TAG_NOTHING is returned.
[in] | tag | The string to convert |
Definition at line 176 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myTagMap, and SUMO_TAG_NOTHING.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().
|
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 120 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().
|
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 205 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
Referenced by MSRouteHandler::addFlowPerson(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), 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 211 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 1001 of file GNEAdditionalHandler.cpp.
Referenced by GNEDetectorE2::fixAdditionalProblem(), and parseAndBuildDetectorE2().
|
inherited |
returns the current file name
Definition at line 74 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(), NITypeLoader::load(), PCNetProjectionLoader::load(), NLHandler::myEndElement(), RODFDetectorHandler::myStartElement(), GUISettingsHandler::myStartElement(), SUMORouteHandler::myStartElement(), NLHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), parseAndBuildPOI(), parseAndBuildPoly(), XMLSubSys::runParser(), GenericSAXHandler::startElement(), and SUMORouteLoader::SUMORouteLoader().
|
virtual |
get lane position
[in] | poi | poi ID |
[in] | laneID | lane ID |
[in] | SlanePos | position in the lane |
Implements ShapeHandler.
Definition at line 148 of file GNEAdditionalHandler.cpp.
References NBEdge::getLanes(), NBEdge::getLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), NBHelpers::interpretLaneID(), Position::INVALID, myViewNet, GNENet::retrieveEdge(), toString(), WRITE_ERROR, and WRITE_WARNING.
Referenced by parseAndBuildPOI().
|
protectedinherited |
get last parameterised object
Definition at line 267 of file ShapeHandler.cpp.
References ShapeHandler::myLastParameterised.
Referenced by parseParameter().
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 972 of file GNEAdditionalHandler.cpp.
References GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), and WRITE_WARNING.
|
staticinherited |
loads all of the given files
Definition at line 273 of file ShapeHandler.cpp.
References XMLSubSys::runParser(), and WRITE_MESSAGE.
Referenced by NLBuilder::build().
|
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 @exceptions ProcessError These method may throw a ProcessError if something fails |
Reimplemented in NIImporter_OpenDrive, and NIImporter_ITSUMO::Handler.
Definition at line 221 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 ShapeHandler.
Definition at line 112 of file GNEAdditionalHandler.cpp.
References Boundary::add(), GNEHierarchicalChildElements::getChildAdditionals(), GNEAdditionalHandler::HierarchyInsertedAdditionals::getLastInsertedAdditional(), GNETAZ::getTAZShape(), GNEViewNet::getUndoList(), ShapeHandler::myEndElement(), myHierarchyInsertedAdditionals, myViewNet, GNEAdditionalHandler::HierarchyInsertedAdditionals::popElement(), GNETAZ::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_TAZ, toString(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
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 ShapeHandler.
Definition at line 81 of file GNEAdditionalHandler.cpp.
References buildAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::insertElement(), myHierarchyInsertedAdditionals, myViewNet, parseAndBuildPOI(), parseAndBuildPoly(), parseParameter(), SUMO_TAG_BUS_STOP, SUMO_TAG_NOTHING, SUMO_TAG_PARAM, SUMO_TAG_POI, SUMO_TAG_POLY, and SUMO_TAG_TRAIN_STOP.
|
privatedelete |
invalidate assignment operator
|
staticprotected |
Parses values and adds access to the current bus stop.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1859 of file GNEAdditionalHandler.cpp.
References accessCanBeCreated(), buildAccess(), checkAndFixDetectorPosition(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEAttributeCarrier::getID(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a bus stop.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1720 of file GNEAdditionalHandler.cpp.
References buildBusStop(), SUMORouteHandler::checkStopPos(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), STOPPINGPLACE_ENDPOS_SET, STOPPINGPLACE_STARTPOS_SET, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_STARTPOS, SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a mesoscopic or microscopic calibrator.
[in] | attrs | SAX-attributes which define the additional |
[in] | tag | of the additional |
Definition at line 2092 of file GNEAdditionalHandler.cpp.
References buildCalibrator(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNENet::retrieveLane(), SUMO_ATTR_EDGE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_OUTPUT, SUMO_ATTR_POSITION, SUMO_ATTR_ROUTEPROBE, SUMO_TAG_CALIBRATOR, SUMO_TAG_LANECALIBRATOR, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses flow values of Calibrators.
[in] | attrs | SAX-attributes which define the flows |
Definition at line 1269 of file GNEAdditionalHandler.cpp.
References buildCalibratorFlow(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveDemandElement(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), 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_CALIBRATOR, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a charging station.
[in] | attrs | SAXattributes which define the additional |
Definition at line 1908 of file GNEAdditionalHandler.cpp.
References buildChargingStation(), SUMORouteHandler::checkStopPos(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), STOPPINGPLACE_ENDPOS_SET, STOPPINGPLACE_STARTPOS_SET, 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, SUMO_TAG_CHARGING_STATION, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a container stop.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1790 of file GNEAdditionalHandler.cpp.
References buildContainerStop(), SUMORouteHandler::checkStopPos(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), STOPPINGPLACE_ENDPOS_SET, STOPPINGPLACE_STARTPOS_SET, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_STARTPOS, SUMO_TAG_CONTAINER_STOP, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a induction loop detector (GNEViewNet* viewNet, bool allowUndoRedo, E1)
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2163 of file GNEAdditionalHandler.cpp.
References buildDetectorE1(), checkAndFixDetectorPosition(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_E1DETECTOR, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Instant induction loop detector (GNEViewNet* viewNet, bool allowUndoRedo, E1Instant)
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2420 of file GNEAdditionalHandler.cpp.
References buildDetectorE1Instant(), checkAndFixDetectorPosition(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_FILE, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_INSTANT_INDUCTION_LOOP, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a lane area detector (GNEViewNet* viewNet, bool allowUndoRedo, E2)
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2206 of file GNEAdditionalHandler.cpp.
References buildMultiLaneDetectorE2(), buildSingleLaneDetectorE2(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), fixE2DetectorPosition(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNEAttributeCarrier::lanesConsecutives(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), SUMO_ATTR_CONT, 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_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_E2DETECTOR, SUMO_TAG_E2DETECTOR_MULTILANE, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a multi entry exit detector (GNEViewNet* viewNet, bool allowUndoRedo, E3)
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2298 of file GNEAdditionalHandler.cpp.
References buildDetectorE3(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Entry detector.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2334 of file GNEAdditionalHandler.cpp.
References buildDetectorEntry(), checkAndFixDetectorPosition(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_ENTRY, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Exit detector.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 2377 of file GNEAdditionalHandler.cpp.
References buildDetectorExit(), checkAndFixDetectorPosition(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNELane::getLaneShapeLength(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a parking area.
[in] | attrs | SAXattributes which define the additional |
Definition at line 1980 of file GNEAdditionalHandler.cpp.
References buildParkingArea(), SUMORouteHandler::checkStopPos(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), POSITION_EPS, GNENet::retrieveAdditional(), GNENet::retrieveLane(), STOPPINGPLACE_ENDPOS_SET, STOPPINGPLACE_STARTPOS_SET, SUMO_ATTR_ANGLE, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_ONROAD, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_STARTPOS, SUMO_ATTR_WIDTH, SUMO_TAG_PARKING_AREA, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a parking space.
[in] | attrs | SAXattributes which define the additional |
[in] | tag | of the additional |
Definition at line 2053 of file GNEAdditionalHandler.cpp.
References buildParkingSpace(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_PARENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ANGLE, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_ATTR_WIDTH, SUMO_TAG_PARKING_AREA, and SUMO_TAG_PARKING_SPACE.
Referenced by buildAdditional().
|
private |
Parses his values and builds a POI.
[in] | attrs | SAX-attributes which define the shape |
Definition at line 2465 of file GNEAdditionalHandler.cpp.
References ShapeContainer::addPOI(), NamedObjectCont< T >::get(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), GeoConvHelper::getFinal(), getLanePos(), GNEViewNet::getNet(), ShapeContainer::getPOIs(), SUMOSAXAttributes::hasAttribute(), Position::INVALID, GNEAttributeCarrier::INVALID_POSITION, FileHelpers::isAbsolute(), SUMOXMLDefinitions::isValidTypeID(), ShapeHandler::myLastParameterised, ShapeHandler::myShapeContainer, myViewNet, GNENet::retrieveLane(), Position::set(), SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LANE, SUMO_ATTR_LAT, SUMO_ATTR_LAYER, SUMO_ATTR_LON, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_TAG_POI, SUMO_TAG_POILANE, and WRITE_WARNING.
Referenced by myStartElement().
|
private |
Parses his values and builds a Poly.
[in] | attrs | SAX-attributes which define the Poly |
Definition at line 1330 of file GNEAdditionalHandler.cpp.
References ShapeContainer::addPolygon(), NamedObjectCont< T >::get(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), GeoConvHelper::getFinal(), SUMOSAXAttributes::getOpt(), ShapeContainer::getPolygons(), FileHelpers::isAbsolute(), SUMOXMLDefinitions::isValidTypeID(), ShapeHandler::myGeoConvHelper, ShapeHandler::myLastParameterised, ShapeHandler::myShapeContainer, SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_FILL, SUMO_ATTR_GEO, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LAYER, SUMO_ATTR_LINEWIDTH, SUMO_ATTR_RELATIVEPATH, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, SUMO_TAG_POLY, WRITE_WARNING, and GeoConvHelper::x2cartesian_const().
Referenced by myStartElement().
|
staticprotected |
Parses his values and builds a rerouter.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1452 of file GNEAdditionalHandler.cpp.
References buildRerouter(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), SUMOSAXAttributes::getOpt(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_EDGES, SUMO_ATTR_FILE, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_OFF, SUMO_ATTR_POSITION, SUMO_ATTR_PROB, SUMO_ATTR_VTYPES, SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Closing Lane reroute.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1545 of file GNEAdditionalHandler.cpp.
References buildClosingLaneReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, parseVehicleClasses(), GNENet::retrieveAdditional(), GNENet::retrieveLane(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Closing Reroute.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1581 of file GNEAdditionalHandler.cpp.
References buildClosingReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, parseVehicleClasses(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Destiny Prob Reroute.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1617 of file GNEAdditionalHandler.cpp.
References builDestProbReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_INTERVAL, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Rerouter Interval.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1497 of file GNEAdditionalHandler.cpp.
References buildRerouterInterval(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNEHierarchicalParentElements::getParentAdditionals(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a parkingAreaReroute.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1652 of file GNEAdditionalHandler.cpp.
References builParkingAreaReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_VISIBLE, SUMO_TAG_INTERVAL, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_ZONE_REROUTE, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Route Prob Reroute.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1688 of file GNEAdditionalHandler.cpp.
References buildRouteProbReroute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_INTERVAL, and SUMO_TAG_ROUTE_PROB_REROUTE.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds routeProbe.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1221 of file GNEAdditionalHandler.cpp.
References buildRouteProbe(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_EDGE, SUMO_ATTR_FILE, SUMO_ATTR_FREQUENCY, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_TAG_ROUTEPROBE, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Builds a TAZ.
[in] | attrs | SAX-attributes which define the vaporizer |
Definition at line 1099 of file GNEAdditionalHandler.cpp.
References buildTAZ(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, SUMO_TAG_TAZ, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Builds a TAZ Sink.
[in] | attrs | SAX-attributes which define the vaporizer |
Definition at line 1184 of file GNEAdditionalHandler.cpp.
References buildTAZSink(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Builds a TAZ Source.
[in] | attrs | SAX-attributes which define the vaporizer |
Definition at line 1147 of file GNEAdditionalHandler.cpp.
References buildTAZSource(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNENet::retrieveEdge(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_TAZ, SUMO_TAG_TAZSOURCE, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Builds a Vaporizer.
[in] | attrs | SAX-attributes which define the vaporizer |
Definition at line 1064 of file GNEAdditionalHandler.cpp.
References buildVaporizer(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), GNE_ATTR_CENTER_AFTER_CREATION, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), GNENet::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_TAG_VAPORIZER, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Variable Speed Signal (GNEViewNet* viewNet, bool allowUndoRedo, lane speed additional)
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1380 of file GNEAdditionalHandler.cpp.
References buildVariableSpeedSign(), GNEAttributeCarrier::canParse(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, SUMOSAXAttributes::hasAttribute(), GNENet::retrieveAdditional(), SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_TAG_VSS, toString(), and WRITE_WARNING.
Referenced by buildAdditional().
|
staticprotected |
Parses his values and builds a Variable Speed Signal Step.
[in] | attrs | SAX-attributes which define the additional |
Definition at line 1420 of file GNEAdditionalHandler.cpp.
References buildVariableSpeedSignStep(), GNEAdditionalHandler::HierarchyInsertedAdditionals::commitElementInsertion(), SUMOSAXAttributes::get(), GNEViewNet::getNet(), GNE_ATTR_PARENT, GNENet::retrieveAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_TAG_STEP, and SUMO_TAG_VSS.
Referenced by buildAdditional().
|
private |
Parse parameter and insert it in the last created additional.
[in] | attrs | SAX-attributes which define the parameter |
Definition at line 2541 of file GNEAdditionalHandler.cpp.
References SUMOSAXAttributes::get(), GNEAdditionalHandler::HierarchyInsertedAdditionals::getLastInsertedAdditional(), ShapeHandler::getLastParameterised(), SUMOSAXAttributes::getString(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), SUMOSAXAttributes::hasAttribute(), GNEAttributeCarrier::TagProperties::hasParameters(), SUMOXMLDefinitions::isValidAttribute(), SUMOXMLDefinitions::isValidTypeID(), myHierarchyInsertedAdditionals, Parameterised::setParameter(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, 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 161 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().
Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().
|
protectedinherited |
set default values
Definition at line 285 of file ShapeHandler.cpp.
References ShapeHandler::myDefaultColor, ShapeHandler::myDefaultFill, ShapeHandler::myDefaultLayer, and ShapeHandler::myPrefix.
Referenced by GNEAdditionalHandler(), and PCLoaderXML::myStartElement().
|
inherited |
Sets the current file name.
[in] | name | The name of the currently processed file |
Definition at line 68 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by NIImporter_SUMO::_loadNetwork(), GUISettingsHandler::GUISettingsHandler(), NITypeLoader::load(), PCNetProjectionLoader::load(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), and XMLSubSys::runParser().
|
inlineprotectedinherited |
Definition at line 254 of file GenericSAXHandler.h.
References 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 93 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().
|
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 199 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.
|
privateinherited |
A list of character strings obtained so far to build the complete characters string at the end.
Definition at line 306 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::characters(), GenericSAXHandler::endElement(), and GenericSAXHandler::startElement().
|
protectedinherited |
The default color to use.
Definition at line 117 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and ShapeHandler::setDefaults().
|
protectedinherited |
Information whether polygons should be filled.
Definition at line 123 of file ShapeHandler.h.
Referenced by ShapeHandler::addPoly(), and ShapeHandler::setDefaults().
|
protectedinherited |
The default layer to use.
Definition at line 120 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), ShapeHandler::myStartElement(), and ShapeHandler::setDefaults().
|
privateinherited |
The root element to expect, empty string disables the check.
Definition at line 318 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::startElement().
|
privateinherited |
The name of the currently parsed file.
Definition at line 315 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::getFileName(), and GenericSAXHandler::setFileName().
|
protectedinherited |
geo-conversion to use during loading
Definition at line 129 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and parseAndBuildPoly().
|
private |
HierarchyInsertedAdditionals used for insert children.
Definition at line 741 of file GNEAdditionalHandler.h.
Referenced by GNEAdditionalHandler(), myEndElement(), myStartElement(), and parseParameter().
|
protectedinherited |
element to receive parameters
Definition at line 126 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), ShapeHandler::getLastParameterised(), ShapeHandler::myEndElement(), ShapeHandler::myStartElement(), parseAndBuildPOI(), and parseAndBuildPoly().
|
privateinherited |
The handler to give control back to.
Definition at line 309 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().
|
privateinherited |
The tag indicating that control should be given back.
Definition at line 312 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::endElement(), and GenericSAXHandler::registerParent().
|
privateinherited |
Definition at line 288 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::GenericSAXHandler(), GenericSAXHandler::startElement(), and GenericSAXHandler::~GenericSAXHandler().
|
privateinherited |
the map from ids to their string representation
Definition at line 291 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::GenericSAXHandler(), SUMOSAXReader::parseNext(), and GenericSAXHandler::startElement().
|
protectedinherited |
The prefix to use.
Definition at line 114 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), and ShapeHandler::setDefaults().
|
privateinherited |
whether the reader has already seen a schema
Definition at line 321 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::setSchemaSeen(), and GenericSAXHandler::startElement().
|
protectedinherited |
reference to shape container in which all Shares are being added
Definition at line 111 of file ShapeHandler.h.
Referenced by ShapeHandler::addPOI(), ShapeHandler::addPoly(), PCLoaderXML::getLanePos(), parseAndBuildPOI(), and parseAndBuildPoly().
|
privateinherited |
Definition at line 302 of file GenericSAXHandler.h.
Referenced by GenericSAXHandler::convertTag(), and GenericSAXHandler::GenericSAXHandler().
|
private |
pointer to View's Net
Definition at line 738 of file GNEAdditionalHandler.h.
Referenced by getLanePos(), myEndElement(), myStartElement(), and parseAndBuildPOI().