Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAdditionalHandler Class Reference

#include <GNEAdditionalHandler.h>

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

Public Member Functions

void abortLoading ()
 abort loading
bool beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs)
 begin parse attributes
void endParseAttributes ()
 end parse attributes
void forceOverwriteElements ()
 force overwritte elements (used if we're reloading elements)
void forceRemainElements ()
 force remain elements (used if we're reloading elements)
 GNEAdditionalHandler (GNENet *net, const std::string &filename, const bool allowUndoRedo)
 Constructor.
bool isAbortLoading () const
 abort loading
bool isErrorCreatingElement () const
 get flag for mark if a element wasn't created
bool isForceOverwriteElements () const
 force overwritte elements (used if we're reloading elements)
bool isForceRemainElements () const
 force remain elements (used if we're reloading elements)
void parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj)
 parse SumoBaseObject (it's called recursivelly)
bool postParserTasks ()
 run post parser tasks
 ~GNEAdditionalHandler ()
 Destructor.
build functions
bool buildBusStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double startPos, const double endPos, const std::string &name, const std::vector< std::string > &lines, const int personCapacity, const double parkingLength, const RGBColor &color, const bool friendlyPosition, const double angle, const Parameterised::Map &parameters)
 Builds a bus stop.
bool buildTrainStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double startPos, const double endPos, const std::string &name, const std::vector< std::string > &lines, const int personCapacity, const double parkingLength, const RGBColor &color, const bool friendlyPosition, const double angle, const Parameterised::Map &parameters)
 Builds a train stop.
bool buildAccess (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &laneID, const std::string &pos, const double length, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds an Access.
bool buildContainerStop (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double startPos, const double endPos, const std::string &name, const std::vector< std::string > &lines, const int containerCapacity, const double parkingLength, const RGBColor &color, const bool friendlyPosition, const double angle, const Parameterised::Map &parameters)
 Builds a container stop.
bool buildChargingStation (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double startPos, const double endPos, const std::string &name, const double chargingPower, const double efficiency, const bool chargeInTransit, const SUMOTime chargeDelay, const std::string &chargeType, const SUMOTime waitingTime, const bool friendlyPosition, const std::string &parkingAreaID, const Parameterised::Map &parameters)
 Builds a charging Station.
bool buildParkingArea (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double startPos, const double endPos, const std::string &departPos, const std::string &name, const std::vector< std::string > &badges, const bool friendlyPosition, const int roadSideCapacity, const bool onRoad, const double width, const double length, const double angle, const bool lefthand, const Parameterised::Map &parameters)
 Builds a Parking Area.
bool buildParkingSpace (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const double x, const double y, const double z, const std::string &name, const std::string &width, const std::string &length, const std::string &angle, const double slope, const Parameterised::Map &parameters)
 Builds a Parking Space.
bool buildE1Detector (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double position, const SUMOTime period, const std::string &file, const std::vector< std::string > &vehicleTypes, const std::vector< std::string > &nextEdges, const std::string &detectPersons, const std::string &name, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a induction loop detector (E1).
bool buildSingleLaneDetectorE2 (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double pos, const double length, const SUMOTime period, const std::string &trafficLight, const std::string &filename, const std::vector< std::string > &vehicleTypes, const std::vector< std::string > &nextEdges, const std::string &detectPersons, const std::string &name, const SUMOTime timeThreshold, const double speedThreshold, const double jamThreshold, const bool friendlyPos, const bool show, const Parameterised::Map &parameters)
 Builds a single-lane Area Detector (E2).
bool buildMultiLaneDetectorE2 (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::vector< std::string > &laneIDs, const double pos, const double endPos, const SUMOTime period, const std::string &trafficLight, const std::string &filename, const std::vector< std::string > &vehicleTypes, const std::vector< std::string > &nextEdges, const std::string &detectPersons, const std::string &name, const SUMOTime timeThreshold, const double speedThreshold, const double jamThreshold, const bool friendlyPos, const bool show, const Parameterised::Map &parameters)
 Builds a multi-lane Area Detector (E2).
bool buildDetectorE3 (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const Position &pos, const SUMOTime period, const std::string &filename, const std::vector< std::string > &vehicleTypes, const std::vector< std::string > &nextEdges, const std::string &detectPersons, const std::string &name, const SUMOTime timeThreshold, const double speedThreshold, const bool openEntry, const bool expectedArrival, const Parameterised::Map &parameters)
 Builds a multi entry exit detector (E3).
bool buildDetectorEntry (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &laneID, const double pos, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a entry detector (E3).
bool buildDetectorExit (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &laneID, const double pos, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a exit detector (E3).
bool buildDetectorE1Instant (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double pos, const std::string &filename, const std::vector< std::string > &vehicleTypes, const std::vector< std::string > &nextEdges, const std::string &detectPersons, const std::string &name, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a Instant Induction Loop Detector (E1Instant).
bool buildLaneCalibrator (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &laneID, const double pos, const std::string &name, const std::string &outfile, const SUMOTime period, const std::string &routeprobe, const double jamThreshold, const std::vector< std::string > &vTypes, const Parameterised::Map &parameters)
 builds a microscopic calibrator over a lane
bool buildEdgeCalibrator (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &edgeID, const double pos, const std::string &name, const std::string &outfile, const SUMOTime period, const std::string &routeprobe, const double jamThreshold, const std::vector< std::string > &vTypes, const Parameterised::Map &parameters)
 builds a microscopic calibrator over an edge
bool buildCalibratorFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameter)
 builds a calibrator flow
bool buildRerouter (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const Position &pos, const std::vector< std::string > &edgeIDs, const double prob, const std::string &name, const bool off, const bool optional, const SUMOTime timeThreshold, const std::vector< std::string > &vTypes, const Parameterised::Map &parameters)
 builds a rerouter
bool buildRerouterInterval (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOTime begin, const SUMOTime end)
 builds a rerouter interval
bool buildClosingLaneReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &closedLane, SVCPermissions permissions)
 builds a closing lane reroute
bool buildClosingReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &closedEdgeID, SVCPermissions permissions)
 builds a closing edge reroute
bool buildDestProbReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newEdgeDestinationID, const double probability)
 builds a dest prob reroute
bool buildParkingAreaReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newParkignAreaID, const double probability, const bool visible)
 builds a parking area reroute
bool buildRouteProbReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newRouteID, const double probability)
 builds a route prob reroute
bool buildRouteProbe (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &edgeID, const SUMOTime period, const std::string &name, const std::string &file, const SUMOTime begin, const std::vector< std::string > &vTypes, const Parameterised::Map &parameters)
 builds a Route probe
bool buildVariableSpeedSign (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const Position &pos, const std::vector< std::string > &laneIDs, const std::string &name, const std::vector< std::string > &vTypes, const Parameterised::Map &parameters)
 Builds a VariableSpeedSign (lane speed additional).
bool buildVariableSpeedSignStep (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOTime time, const double speed)
 Builds a VariableSpeedSign Step.
bool buildVaporizer (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const SUMOTime from, const SUMOTime endTime, const std::string &name, const Parameterised::Map &parameters)
 Builds a vaporizer (lane speed additional).
bool buildTAZ (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const PositionVector &shape, const Position &center, const bool fill, const RGBColor &color, const std::vector< std::string > &edgeIDs, const std::string &name, const Parameterised::Map &parameters)
 Builds a TAZ (Traffic Assignment Zone).
bool buildTAZSource (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const double departWeight)
 Builds a TAZSource (Traffic Assignment Zone).
bool buildTAZSink (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const double arrivalWeight)
 Builds a TAZSink (Traffic Assignment Zone).
bool buildTractionSubstation (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const Position &pos, const double voltage, const double currentLimit, const Parameterised::Map &parameters)
 build traction substation
bool buildOverheadWire (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &substationId, const std::vector< std::string > &laneIDs, const double startPos, const double endPos, const bool friendlyPos, const std::vector< std::string > &forbiddenInnerLanes, const Parameterised::Map &parameters)
 build overhead wire
bool buildOverheadWireClamp (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &overheadWireIDStartClamp, const std::string &laneIDStartClamp, const std::string &overheadWireIDEndClamp, const std::string &laneIDEndClamp, const Parameterised::Map &parameters)
 build overhead wire clamp
bool buildPolygon (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &type, const RGBColor &color, const double layer, const double angle, const std::string &imgFile, const PositionVector &shape, const bool geo, const bool fill, const double lineWidth, const std::string &name, const Parameterised::Map &parameters)
 Builds a polygon using the given values.
bool buildPOI (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &type, const RGBColor &color, const double x, const double y, const std::string &icon, const double layer, const double angle, const std::string &imgFile, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI using the given values.
bool buildPOILane (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &type, const RGBColor &color, const std::string &laneID, const double posOverLane, const bool friendlyPos, const double posLat, const std::string &icon, const double layer, const double angle, const std::string &imgFile, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI over lane using the given values.
bool buildPOIGeo (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &type, const RGBColor &color, const double lon, const double lat, const std::string &icon, const double layer, const double angle, const std::string &imgFile, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI in GEO coordinaten using the given values.
bool buildJpsWalkableArea (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const PositionVector &shape, bool geo, const std::string &name, const Parameterised::Map &parameters)
 Builds a JuPedSim walkable area using the given values.
bool buildJpsObstacle (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const PositionVector &shape, bool geo, const std::string &name, const Parameterised::Map &parameters)
 Builds a JuPedSim obstacle using the given values.

Static Public Member Functions

static bool accessExists (const GNEAdditional *stoppingPlaceParent, const GNEEdge *edge)
 check if a GNEAccess can be created in the given edge

Protected Member Functions

bool checkElement (const SumoXMLTag tag, GNEAdditional *additional)
 check if element exist, and if overwrite
bool checkFriendlyPosSmallLanes (double pos, const double length, const double laneLength, const bool friendlyPos)
 check if enable friendly pos in small lanes
bool checkLaneDoublePosition (double from, const double to, const double laneLength, const bool friendlyPos)
 check if the given positions over a lane is valid
bool checkLanePosition (double pos, const double length, const double laneLength, const bool friendlyPos)
 check if the given position over a lane is valid
bool checkMultiLanePosition (double fromPos, const double fromLaneLength, const double toPos, const double tolaneLength, const bool friendlyPos)
 check if the given positions over two lanes are valid
bool checkOverlappingRerouterIntervals (GNEAdditional *rerouter, const SUMOTime newBegin, const SUMOTime newEnd)
 check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted
void fixLaneDoublePosition (double &from, double &to, const double laneLengt)
 fix the given positions over lane
GNEAdditionalgetAdditionalParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, SumoXMLTag tag) const
 get additional parent
CommonXMLStructure::SumoBaseObjectgetEmbeddedRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get embedded route from children
GNEAdditionalgetRerouterIntervalParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get rerouter interval parent
std::vector< GNEEdge * > parseEdges (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &edgeIDs)
 parse edges
std::vector< GNELane * > parseLanes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &laneIDs)
 parse lanes
void parseParameters (const SUMOSAXAttributes &attrs)
 parse generic parameters
GNEAdditionalretrieveAdditionalElement (const std::vector< SumoXMLTag > tags, const std::string &id)
 get element by ID
bool writeError (const std::string &error)
 write error and enable error creating element
bool writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id)
 write error "invalid list of lanes"
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const std::vector< SumoXMLTag > parentTags, const std::string &parentID)
 write error "invalid parent element" giving ids of current and parent element
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::vector< SumoXMLTag > parentTags)
 write error "invalid parent element" without giving IDs
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::vector< SumoXMLTag > parentTags, const std::string &parentID)
 write error "invalid parent element" giving only the id of parent element
bool writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id)
 write error "invalid position"
bool writeWarningDuplicated (const SumoXMLTag tag, const std::string &id, const SumoXMLTag checkedTag)
 write warning duplicated element
void writeWarningOverwriting (const SumoXMLTag tag, const std::string &id)
 write warning overwritting element
check functions
void checkParsedParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok)
 check parsed parents
bool checkListOfVehicleTypes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &vTypeIDs)
 check list of IDs
bool checkWithinDistribution (CommonXMLStructure::SumoBaseObject *obj)
 check if the given object is within a distribution (VType or routes)
bool checkVehicleParents (CommonXMLStructure::SumoBaseObject *obj)
 check vehicle parents
bool checkPersonPlanParents (CommonXMLStructure::SumoBaseObject *obj)
 check person plan parents
bool checkContainerPlanParents (CommonXMLStructure::SumoBaseObject *obj)
 check container plan parents
bool checkStopParents (CommonXMLStructure::SumoBaseObject *obj)
 check stop parents
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const int value, const bool canBeZero)
 check if the given int value is NOT negative
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const double value, const bool canBeZero)
 check if the given double value is NOT negative
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const SUMOTime value, const bool canBeZero)
 check if the given SUMOTime value is NOT negative
bool checkFileName (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const std::string &value)
 check if the given filename is valid
bool checkValidAdditionalID (const SumoXMLTag tag, const std::string &value)
 check if the given additional ID is valid
bool checkValidDetectorID (const SumoXMLTag tag, const std::string &value)
 check if the given detector ID is valid
bool checkValidDemandElementID (const SumoXMLTag tag, const std::string &value)
 check if the given demand elmement ID is valid

Protected Attributes

bool myAbortLoading = false
 abort loading
CommonXMLStructure myCommonXMLStructure
 common XML Structure
bool myErrorCreatingElement = false
 flag for mark if a element wasn't created
const std::string myFilename
 filename
bool myOverwriteElements = false
 overwrite elements
bool myRemainElements = false
 remain elements

Private Member Functions

bool checkCalibratorFlowParents ()
 check calibrator flow parents
bool checkDetectPersons (const SumoXMLTag currentTag, const std::string &id, const std::string &detectPersons)
 check detect persons
 GNEAdditionalHandler ()=delete
 invalidate default constructo
 GNEAdditionalHandler (const GNEAdditionalHandler &s)=delete
 invalidate copy constructor
GNEAdditionalHandleroperator= (const GNEAdditionalHandler &s)=delete
 invalidate assignment operator
std::string parseParentTags (std::vector< SumoXMLTag > parentTags) const
 parse list of parent tags
parse additional attributes

parse busStop attributes

void parseBusStopAttributes (const SUMOSAXAttributes &attrs)
void parseTrainStopAttributes (const SUMOSAXAttributes &attrs)
 parse trainStop attributes
void parseAccessAttributes (const SUMOSAXAttributes &attrs)
 parse access attributes
void parseContainerStopAttributes (const SUMOSAXAttributes &attrs)
 parse containerStop attributes
void parseChargingStationAttributes (const SUMOSAXAttributes &attrs)
 parse chargingStation attributes
void parseParkingAreaAttributes (const SUMOSAXAttributes &attrs)
 parse parking area attributes
void parseParkingSpaceAttributes (const SUMOSAXAttributes &attrs)
 parse parking space attributes
void parseE1Attributes (const SUMOSAXAttributes &attrs)
 parse E1 attributes
void parseE2Attributes (const SUMOSAXAttributes &attrs)
 parse E2 attributes
void parseE3Attributes (const SUMOSAXAttributes &attrs)
 parse E3 attributes
void parseEntryAttributes (const SUMOSAXAttributes &attrs)
 parse entry attributes
void parseExitAttributes (const SUMOSAXAttributes &attrs)
 parse exist attributes
void parseE1InstantAttributes (const SUMOSAXAttributes &attrs)
 parse E1 instant attributes
void parseTAZAttributes (const SUMOSAXAttributes &attrs)
 parse TAZ attributes
void parseTAZSourceAttributes (const SUMOSAXAttributes &attrs)
 parse TAZ source attributes
void parseTAZSinkAttributes (const SUMOSAXAttributes &attrs)
 parse TAZ sink attributes
void parseVariableSpeedSignAttributes (const SUMOSAXAttributes &attrs)
 parse variable speed sign attributes
void parseVariableSpeedSignStepAttributes (const SUMOSAXAttributes &attrs)
 parse variable speed sign step attributes
void parseCalibratorAttributes (const SUMOSAXAttributes &attrs)
 parse calibrator attributes
void parseCalibratorFlowAttributes (const SUMOSAXAttributes &attrs)
 parse calibrator flow attributes
void parseRerouterAttributes (const SUMOSAXAttributes &attrs)
 parse rerouter attributes
void parseRerouterIntervalAttributes (const SUMOSAXAttributes &attrs)
 parse rerouter interval attributes
void parseClosingLaneRerouteAttributes (const SUMOSAXAttributes &attrs)
 parse closing lane reroute attributes
void parseClosingRerouteAttributes (const SUMOSAXAttributes &attrs)
 parse closing reroute attributes
void parseDestProbRerouteAttributes (const SUMOSAXAttributes &attrs)
 parse dest prob reroute attributes
void parseParkingAreaRerouteAttributes (const SUMOSAXAttributes &attrs)
 parse parking area reroute attributes
void parseRouteProbRerouteAttributes (const SUMOSAXAttributes &attrs)
 parse route prob reroute attributes
void parseRouteProbeAttributes (const SUMOSAXAttributes &attrs)
 parse route probe attributes
void parseVaporizerAttributes (const SUMOSAXAttributes &attrs)
 parse vaporizer attributes
void parseTractionSubstation (const SUMOSAXAttributes &attrs)
 parse traction substation
void parseOverheadWire (const SUMOSAXAttributes &attrs)
 parse overhead wire segment
void parseOverheadWireClamp (const SUMOSAXAttributes &attrs)
 parse overhead wire clamp
void parsePolyAttributes (const SUMOSAXAttributes &attrs)
void parsePOIAttributes (const SUMOSAXAttributes &attrs)
 parse POI attributes
void parseJpsWalkableAreaAttributes (const SUMOSAXAttributes &attrs)
 parse juPedSim walkable area attributes
void parseJpsObstacleAttributes (const SUMOSAXAttributes &attrs)
 parse juPedSim obstacle attributes

Private Attributes

const bool myAllowUndoRedo
 allow undo/redo
GNENetmyNet
 pointer to GNENet

Detailed Description

Definition at line 39 of file GNEAdditionalHandler.h.

Constructor & Destructor Documentation

◆ GNEAdditionalHandler() [1/3]

GNEAdditionalHandler::GNEAdditionalHandler ( GNENet * net,
const std::string & filename,
const bool allowUndoRedo )

Constructor.

Definition at line 68 of file GNEAdditionalHandler.cpp.

References AdditionalHandler::AdditionalHandler(), myAllowUndoRedo, and myNet.

Referenced by GNEAdditionalHandler(), and operator=().

Here is the caller graph for this function:

◆ ~GNEAdditionalHandler()

GNEAdditionalHandler::~GNEAdditionalHandler ( )

Destructor.

Definition at line 75 of file GNEAdditionalHandler.cpp.

◆ GNEAdditionalHandler() [2/3]

GNEAdditionalHandler::GNEAdditionalHandler ( )
privatedelete

invalidate default constructo

◆ GNEAdditionalHandler() [3/3]

GNEAdditionalHandler::GNEAdditionalHandler ( const GNEAdditionalHandler & s)
privatedelete

invalidate copy constructor

References GNEAdditionalHandler().

Member Function Documentation

◆ abortLoading()

void CommonHandler::abortLoading ( )
inherited

abort loading

Definition at line 54 of file CommonHandler.cpp.

References myAbortLoading.

◆ accessExists()

bool GNEAdditionalHandler::accessExists ( const GNEAdditional * stoppingPlaceParent,
const GNEEdge * edge )
static

check if a GNEAccess can be created in the given edge

Definition at line 1806 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildLanes(), SUMO_ATTR_LANE, and SUMO_TAG_ACCESS.

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

Here is the caller graph for this function:

◆ beginParseAttributes()

bool AdditionalHandler::beginParseAttributes ( SumoXMLTag tag,
const SUMOSAXAttributes & attrs )
inherited

begin parse attributes

Definition at line 46 of file AdditionalHandler.cpp.

References GNE_TAG_CALIBRATOR_LANE, GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, CommonHandler::myCommonXMLStructure, parseAccessAttributes(), parseBusStopAttributes(), parseCalibratorAttributes(), parseCalibratorFlowAttributes(), parseChargingStationAttributes(), parseClosingLaneRerouteAttributes(), parseClosingRerouteAttributes(), parseContainerStopAttributes(), parseDestProbRerouteAttributes(), parseE1Attributes(), parseE1InstantAttributes(), parseE2Attributes(), parseE3Attributes(), parseEntryAttributes(), parseExitAttributes(), parseJpsObstacleAttributes(), parseJpsWalkableAreaAttributes(), parseOverheadWire(), parseOverheadWireClamp(), CommonHandler::parseParameters(), parseParkingAreaAttributes(), parseParkingAreaRerouteAttributes(), parseParkingSpaceAttributes(), parsePOIAttributes(), parsePolyAttributes(), parseRerouterAttributes(), parseRerouterIntervalAttributes(), parseRouteProbeAttributes(), parseRouteProbRerouteAttributes(), parseTAZAttributes(), parseTAZSinkAttributes(), parseTAZSourceAttributes(), parseTractionSubstation(), parseTrainStopAttributes(), parseVaporizerAttributes(), parseVariableSpeedSignAttributes(), parseVariableSpeedSignStepAttributes(), SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E3DETECTOR, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_FLOW, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_OVERHEAD_WIRE_CLAMP, SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_PARAM, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_AREA_REROUTE, SUMO_TAG_PARKING_SPACE, SUMO_TAG_POI, SUMO_TAG_POLY, 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_TRACTION_SUBSTATION, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VAPORIZER, SUMO_TAG_VSS, and CommonHandler::writeError().

◆ buildAccess()

bool GNEAdditionalHandler::buildAccess ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & laneID,
const std::string & pos,
const double length,
const bool friendlyPos,
const Parameterised::Map & parameters )
virtual

◆ buildBusStop()

bool GNEAdditionalHandler::buildBusStop ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double startPos,
const double endPos,
const std::string & name,
const std::vector< std::string > & lines,
const int personCapacity,
const double parkingLength,
const RGBColor & color,
const bool friendlyPosition,
const double angle,
const Parameterised::Map & parameters )
virtual

Builds a bus stop.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the bus stop
[in]laneIDThe lane the bus stop is placed on
[in]startPosBegin position of the bus stop on the lane
[in]endPosEnd position of the bus stop on the lane
[in]nameName of busStop
[in]linesNames of the bus lines that halt on this bus stop
[in]personCapacitylarger numbers of persons trying to enter will create an upstream jam on the sidewalk.
[in]parkingLengthparking length
[in[color busStop color
[in]friendlyPosenable or disable friendly position
[in]anglebusStop's angle
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 87 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEBusStop::buildBusStop(), NamespaceIDs::busStops, checkElement(), checkLaneDoublePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_TAG_BUS_STOP, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildCalibratorFlow()

◆ buildChargingStation()

bool GNEAdditionalHandler::buildChargingStation ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double startPos,
const double endPos,
const std::string & name,
const double chargingPower,
const double efficiency,
const bool chargeInTransit,
const SUMOTime chargeDelay,
const std::string & chargeType,
const SUMOTime waitingTime,
const bool friendlyPosition,
const std::string & parkingAreaID,
const Parameterised::Map & parameters )
virtual

Builds a charging Station.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the charging Station
[in]laneIDThe lane the charging Station is placed on
[in]startPosBegin position of the charging Station on the lane
[in]endPosEnd position of the charging Station on the lane
[in]nameName of charging station
[in]chargingPowerpower charged in every timeStep
[in]efficiencyefficiency of the charge
[in]chargeInTransitenable or disable charge in transit
[in]chargeDelaydelay in the charge
[in]chargeTypecharge type (normal, electric or fuel)
[in]waitingTimewaiting time until start charging
[in]friendlyPosenable or disable friendly position
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 281 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), SUMOXMLDefinitions::ChargeTypes, checkElement(), checkLaneDoublePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGINGPOWER, SUMO_TAG_CHARGING_STATION, SUMO_TAG_LANE, TL, TLF, toString(), CommonHandler::writeError(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildClosingLaneReroute()

bool GNEAdditionalHandler::buildClosingLaneReroute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & closedLane,
SVCPermissions permissions )
virtual

builds a closing lane reroute

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]closedLaneclosed lane
[in]permissionsvClasses disallowed for the lane

Implements AdditionalHandler.

Definition at line 991 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentAdditionals(), getRerouterIntervalParent(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_INTERVAL, SUMO_TAG_LANE, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildClosingReroute()

bool GNEAdditionalHandler::buildClosingReroute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & closedEdgeID,
SVCPermissions permissions )
virtual

builds a closing edge reroute

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]closedEdgeIDclosed edge
[in]permissionsvClasses disallowed for the lane

Implements AdditionalHandler.

Definition at line 1021 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentAdditionals(), getRerouterIntervalParent(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_EDGE, SUMO_TAG_INTERVAL, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildContainerStop()

bool GNEAdditionalHandler::buildContainerStop ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double startPos,
const double endPos,
const std::string & name,
const std::vector< std::string > & lines,
const int containerCapacity,
const double parkingLength,
const RGBColor & color,
const bool friendlyPosition,
const double angle,
const Parameterised::Map & parameters )
virtual

Builds a container stop.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the container stop
[in]laneIDThe lane the container stop is placed on
[in]startPosBegin position of the container stop on the lane
[in]endPosEnd position of the container stop on the lane
[in]nameName of container stop
[in]linesNames of the bus lines that halt on this container stop
[in]containerCapacitylarger numbers of containers
[in]parkingLengthparking length
[in[color containerStop color
[in]friendlyPosenable or disable friendly position
[in]anglecontainer stops's angle
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 239 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), checkLaneDoublePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_PARKING_LENGTH, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildDestProbReroute()

bool GNEAdditionalHandler::buildDestProbReroute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & newEdgeDestinationID,
const double probability )
virtual

builds a dest prob reroute

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]newEdgeDestinationIDnew edge destination ID
[in]probabilityrerouting probability

Implements AdditionalHandler.

Definition at line 1050 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentAdditionals(), getRerouterIntervalParent(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_EDGE, SUMO_TAG_INTERVAL, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildDetectorE1Instant()

bool GNEAdditionalHandler::buildDetectorE1Instant ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double pos,
const std::string & filename,
const std::vector< std::string > & vehicleTypes,
const std::vector< std::string > & nextEdges,
const std::string & detectPersons,
const std::string & name,
const bool friendlyPos,
const Parameterised::Map & parameters )
virtual

Builds a Instant Induction Loop Detector (E1Instant).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the detector
[in]laneIDThe lane the detector is placed on
[in]posposition of the detector on the lane
[in]filenameThe path to the output file.
[in]nameE2 detector name
[in]vtypeslist of vehicle types to be reported
[in]nextEdgeslist of edge ids that must all be part of the future route of the vehicle to qualify for detection
[in]detectPersonsdetect persons instead of vehicles (pedestrians or passengers)
[in]friendlyPosenable or disable friendly position
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 699 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkFileName(), checkLanePosition(), CommonHandler::checkValidDetectorID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_FILE, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildDetectorE3()

bool GNEAdditionalHandler::buildDetectorE3 ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const Position & pos,
const SUMOTime period,
const std::string & filename,
const std::vector< std::string > & vehicleTypes,
const std::vector< std::string > & nextEdges,
const std::string & detectPersons,
const std::string & name,
const SUMOTime timeThreshold,
const double speedThreshold,
const bool openEntry,
const bool expectedArrival,
const Parameterised::Map & parameters )
virtual

Builds a multi entry exit detector (E3).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the detector
[in]posposition of the detector in the map
[in]periodthe aggregation period the values the detector collects shall be summed up.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nextEdgeslist of edge ids that must all be part of the future route of the vehicle to qualify for detection
[in]detectPersonsdetect persons instead of vehicles (pedestrians or passengers)
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]openEntryenable or disable open Entry
[in]expectedArrivalWhether no warning should be issued when a vehicle arrives within the detector area
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 594 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkFileName(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkValidDetectorID(), E3, myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_ENTRY_EXIT_DETECTOR, and TL.

◆ buildDetectorEntry()

bool GNEAdditionalHandler::buildDetectorEntry ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & laneID,
const double pos,
const bool friendlyPos,
const Parameterised::Map & parameters )
virtual

Builds a entry detector (E3).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]laneIDThe lane in which the entry detector is placed on
[in]posposition of the entry detector on the lane
[in]friendlyPosenable or disable friendly position
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 633 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkLanePosition(), E3, getAdditionalParent(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_ATTR_ID, SUMO_TAG_DET_ENTRY, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildDetectorExit()

bool GNEAdditionalHandler::buildDetectorExit ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & laneID,
const double pos,
const bool friendlyPos,
const Parameterised::Map & parameters )
virtual

Builds a exit detector (E3).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]laneIDThe lane in which the exit detector is placed on
[in]posposition of the exit detector on the lane
[in]friendlyPosenable or disable friendly position
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 666 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkLanePosition(), E3, getAdditionalParent(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_ATTR_ID, SUMO_TAG_DET_EXIT, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildE1Detector()

bool GNEAdditionalHandler::buildE1Detector ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double position,
const SUMOTime period,
const std::string & file,
const std::vector< std::string > & vehicleTypes,
const std::vector< std::string > & nextEdges,
const std::string & detectPersons,
const std::string & name,
const bool friendlyPos,
const Parameterised::Map & parameters )
virtual

Builds a induction loop detector (E1).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the detector
[in]laneIDThe lane the detector is placed on
[in]posposition of the detector on the lane
[in]periodthe aggregation period the values the detector collects shall be summed up.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nextEdgeslist of edge ids that must all be part of the future route of the vehicle to qualify for detection
[in]detectPersonsdetect persons instead of vehicles (pedestrians or passengers)
[in]nameE1 detector name
[in]friendlyPosenable or disable friendly position
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 422 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkFileName(), checkLanePosition(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkValidDetectorID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_FILE, SUMO_ATTR_PERIOD, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_LANE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildEdgeCalibrator()

bool GNEAdditionalHandler::buildEdgeCalibrator ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & edgeID,
const double pos,
const std::string & name,
const std::string & outfile,
const SUMOTime period,
const std::string & routeprobe,
const double jamThreshold,
const std::vector< std::string > & vTypes,
const Parameterised::Map & parameters )
virtual

builds a microscopic calibrator over an edge

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the calibrator
[in]edgeIDThe edge the calibrator is placed at
[in]posThe position on the edge the calibrator lies at
[in]nameCalibrator name
[in]outfilete file in which write results
[in]routeProberoute probe vinculated with this calibrator
[in]jamThresholdA threshold value to detect and clear unexpected jamming
[in]vTypesspace separated list of vehicle type ids to consider
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 794 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), NamespaceIDs::calibrators, checkElement(), checkLanePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEHierarchicalElement::getChildLanes(), GNEAdditional::getPositionInView(), GNE_ATTR_CENTER_AFTER_CREATION, CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_CALIBRATOR, SUMO_TAG_EDGE, SUMO_TAG_ROUTEPROBE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildJpsObstacle()

bool GNEAdditionalHandler::buildJpsObstacle ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const PositionVector & shape,
bool geo,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a JuPedSim obstacle using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the obstacle
[in]shapeThe shape of the obstacle
[in]geospecify if shape was loaded as GEO
[in]nameobstacle name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1779 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkValidAdditionalID(), GNE_TAG_JPS_OBSTACLE, GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, NamespaceIDs::polygons, retrieveAdditionalElement(), and TL.

Referenced by buildPolygon().

Here is the caller graph for this function:

◆ buildJpsWalkableArea()

bool GNEAdditionalHandler::buildJpsWalkableArea ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const PositionVector & shape,
bool geo,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a JuPedSim walkable area using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the walkable area
[in]shapeThe shape of the walkable area
[in]geospecify if shape was loaded as GEO
[in]namewalkable area name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1752 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkValidAdditionalID(), GNE_TAG_JPS_WALKABLEAREA, GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, NamespaceIDs::polygons, retrieveAdditionalElement(), and TL.

Referenced by buildPolygon().

Here is the caller graph for this function:

◆ buildLaneCalibrator()

bool GNEAdditionalHandler::buildLaneCalibrator ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double pos,
const std::string & name,
const std::string & outfile,
const SUMOTime period,
const std::string & routeprobe,
const double jamThreshold,
const std::vector< std::string > & vTypes,
const Parameterised::Map & parameters )
virtual

builds a microscopic calibrator over a lane

Parameters
[in]idThe id of the calibrator
[in]laneIDThe lane the calibrator is placed at
[in]posThe position on the edge the calibrator lies at
[in]nameCalibrator name
[in]outfilete file in which write results
[in]jamThresholdA threshold value to detect and clear unexpected jamming
[in]vTypesspace separated list of vehicle type ids to consider
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 739 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), NamespaceIDs::calibrators, checkElement(), checkLanePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEAdditional::getPositionInView(), GNE_ATTR_CENTER_AFTER_CREATION, GNE_TAG_CALIBRATOR_LANE, CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_LANE, SUMO_TAG_ROUTEPROBE, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildMultiLaneDetectorE2()

bool GNEAdditionalHandler::buildMultiLaneDetectorE2 ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::vector< std::string > & laneIDs,
const double pos,
const double endPos,
const SUMOTime period,
const std::string & trafficLight,
const std::string & filename,
const std::vector< std::string > & vehicleTypes,
const std::vector< std::string > & nextEdges,
const std::string & detectPersons,
const std::string & name,
const SUMOTime timeThreshold,
const double speedThreshold,
const double jamThreshold,
const bool friendlyPos,
const bool show,
const Parameterised::Map & parameters )
virtual

Builds a multi-lane Area Detector (E2).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the detector
[in]laneIDsThe lanes the detector is placed on
[in]posposition of the detector on the first lane
[in]endPosposition of the detector on the last lane
[in]periodthe aggregation period the values the detector collects shall be summed up.
[in]trafficLightThe traffic light that triggers aggregation when switching.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nextEdgeslist of edge ids that must all be part of the future route of the vehicle to qualify for detection
[in]detectPersonsdetect persons instead of vehicles (pedestrians or passengers)
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]jamThresholdThe minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam
[in]friendlyPosenable or disable friendly position
[in]showdetector in sumo-gui
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 529 of file GNEAdditionalHandler.cpp.

References GNEAdditional::areLaneConsecutives(), checkElement(), CommonHandler::checkFileName(), CommonHandler::checkListOfVehicleTypes(), checkMultiLanePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidDetectorID(), GNE_TAG_MULTI_LANE_AREA_DETECTOR, GNEReferenceCounter::incRef(), SUMOXMLDefinitions::isValidNetID(), NamespaceIDs::laneAreaDetectors, myAllowUndoRedo, CommonHandler::myFilename, myNet, parseLanes(), retrieveAdditionalElement(), SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidPosition().

◆ buildOverheadWire()

bool GNEAdditionalHandler::buildOverheadWire ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & substationId,
const std::vector< std::string > & laneIDs,
const double startPos,
const double endPos,
const bool friendlyPos,
const std::vector< std::string > & forbiddenInnerLanes,
const Parameterised::Map & parameters )
virtual

build overhead wire

Parameters
[in]idOverhead wire ID
[in]laneLane over which the segment is placed
[in]substationIdSubstation to which the circuit is connected
[in]laneIDslist of consecutive lanes of the circuit
[in]startPosStarting position in the specified lane
[in]endPosEnding position in the specified lane
[in]friendlyPosenable or disable friendly position
[in]forbiddenInnerLanesInner lanes, where placing of overhead wire is restricted
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1529 of file GNEAdditionalHandler.cpp.

References GNEAdditional::areLaneConsecutives(), checkElement(), checkMultiLanePosition(), CommonHandler::checkValidAdditionalID(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, parseLanes(), retrieveAdditionalElement(), SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_TRACTION_SUBSTATION, TL, TLF, CommonHandler::writeError(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildOverheadWireClamp()

bool GNEAdditionalHandler::buildOverheadWireClamp ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & overheadWireIDStartClamp,
const std::string & laneIDStartClamp,
const std::string & overheadWireIDEndClamp,
const std::string & laneIDEndClamp,
const Parameterised::Map & parameters )
virtual

build overhead wire clamp

Parameters
[in]idOverhead wire clamp ID
[in]overheadWireIDStartClampID of the overhead wire segment, to the start of which the overhead wire clamp is connected
[in]laneIDStartClampID of the overhead wire segment lane of overheadWireIDStartClamp
[in]overheadWireIDEndClampID of the overhead wire segment, to the end of which the overhead wire clamp is connected
[in]laneIDEndClampID of the overhead wire segment lane of overheadWireIDEndClamp
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1579 of file GNEAdditionalHandler.cpp.

◆ buildParkingArea()

bool GNEAdditionalHandler::buildParkingArea ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double startPos,
const double endPos,
const std::string & departPos,
const std::string & name,
const std::vector< std::string > & badges,
const bool friendlyPosition,
const int roadSideCapacity,
const bool onRoad,
const double width,
const double length,
const double angle,
const bool lefthand,
const Parameterised::Map & parameters )
virtual

Builds a Parking Area.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the Parking >Area
[in]laneIDThe lane the Parking Area is placed on
[in]startPosBegin position of the Parking Area on the lane
[in]endPosEnd position of the Parking Area on the lane
[in]departPoslane position in that vehicle must depart when leaves parkingArea
[in]nameName of Parking Area
[in]badgesnames which grant access to the parkingArea
[in]friendlyPosenable or disable friendly position
[in]roadSideCapacityroad side capacity of ParkingArea
[in]widthParkingArea's width
[in]lengthParkingArea's length
[in]angleParkingArea's angle
[in]lefthandenable or disable lefthand
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 326 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::canParse(), checkElement(), checkLaneDoublePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, GNEAttributeCarrier::parse(), retrieveAdditionalElement(), SUMO_ATTR_LENGTH, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_WIDTH, SUMO_const_laneWidth, SUMO_TAG_LANE, SUMO_TAG_PARKING_AREA, TL, TLF, CommonHandler::writeError(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildParkingAreaReroute()

bool GNEAdditionalHandler::buildParkingAreaReroute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & newParkignAreaID,
const double probability,
const bool visible )
virtual

builds a parking area reroute

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]newParkignAreaIDnew parkingArea ID
[in]probabilityrerouting probability

Implements AdditionalHandler.

Definition at line 1080 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentAdditionals(), getRerouterIntervalParent(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_TAG_INTERVAL, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_AREA_REROUTE, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildParkingSpace()

bool GNEAdditionalHandler::buildParkingSpace ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const double x,
const double y,
const double z,
const std::string & name,
const std::string & width,
const std::string & length,
const std::string & angle,
const double slope,
const Parameterised::Map & parameters )
virtual

◆ buildPOI()

bool GNEAdditionalHandler::buildPOI ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & type,
const RGBColor & color,
const double x,
const double y,
const std::string & icon,
const double layer,
const double angle,
const std::string & imgFile,
const double width,
const double height,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a POI using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the POI
[in]typeThe (abstract) type of the POI
[in]colorThe color of the POI
[in]xPOI's x position
[in]yPOI's y position
[in]iconThe icon of the POI
[in]layerThe layer of the POI
[in]angleThe rotation of the POI
[in]imgFileThe raster image of the POI
[in]widthThe width of the POI image
[in]heightThe height of the POI image
[in]namePOI name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1625 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkFileName(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), myAllowUndoRedo, CommonHandler::myFilename, myNet, NONE, SUMOXMLDefinitions::POIIcons, NamespaceIDs::POIs, retrieveAdditionalElement(), SUMO_ATTR_HEIGHT, SUMO_ATTR_IMGFILE, SUMO_ATTR_WIDTH, SUMO_TAG_POI, and TLF.

◆ buildPOIGeo()

bool GNEAdditionalHandler::buildPOIGeo ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & type,
const RGBColor & color,
const double lon,
const double lat,
const std::string & icon,
const double layer,
const double angle,
const std::string & imgFile,
const double width,
const double height,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a POI in GEO coordinaten using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the POI
[in]typeThe (abstract) type of the POI
[in]colorThe color of the POI
[in]lonPOI's longitude
[in]latPOI's latitude
[in]iconThe icon of the POI
[in]layerThe layer of the POI
[in]angleThe rotation of the POI
[in]imgFileThe raster image of the POI
[in]widthThe width of the POI image
[in]heightThe height of the POI image
[in]namePOI name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1711 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkFileName(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GeoConvHelper::getFinal(), GNE_TAG_POIGEO, myAllowUndoRedo, CommonHandler::myFilename, myNet, NONE, POIGEO, SUMOXMLDefinitions::POIIcons, NamespaceIDs::POIs, retrieveAdditionalElement(), SUMO_ATTR_HEIGHT, SUMO_ATTR_IMGFILE, SUMO_ATTR_WIDTH, TL, TLF, and CommonHandler::writeError().

◆ buildPOILane()

bool GNEAdditionalHandler::buildPOILane ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & type,
const RGBColor & color,
const std::string & laneID,
const double posOverLane,
const bool friendlyPos,
const double posLat,
const std::string & icon,
const double layer,
const double angle,
const std::string & imgFile,
const double width,
const double height,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a POI over lane using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the POI
[in]typeThe (abstract) type of the POI
[in]colorThe color of the POI
[in]laneIDThe Lane in which this POI is placed
[in]posOverLaneThe position over Lane
[in]friendlyPosenable or disable friendly position
[in]posLatThe position lateral over Lane
[in]iconThe icon of the POI
[in]layerThe layer of the POI
[in]angleThe rotation of the POI
[in]imgFileThe raster image of the POI
[in]widthThe width of the POI image
[in]heightThe height of the POI image
[in]namePOI name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1663 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkFileName(), checkLanePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNE_TAG_POILANE, GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, NONE, SUMOXMLDefinitions::POIIcons, NamespaceIDs::POIs, retrieveAdditionalElement(), SUMO_ATTR_HEIGHT, SUMO_ATTR_IMGFILE, SUMO_ATTR_WIDTH, SUMO_TAG_LANE, TLF, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildPolygon()

bool GNEAdditionalHandler::buildPolygon ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & type,
const RGBColor & color,
const double layer,
const double angle,
const std::string & imgFile,
const PositionVector & shape,
const bool geo,
const bool fill,
const double lineWidth,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a polygon using the given values.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe name of the polygon
[in]typeThe (abstract) type of the polygon
[in]colorThe color of the polygon
[in]layerThe layer of the polygon
[in]angleThe rotation of the polygon
[in]imgFileThe raster image of the polygon
[in]shapeThe shape of the polygon
[in]geospecify if shape was loaded as GEO coordinate
[in]fillWhether the polygon shall be filled
[in]lineWidthLine width when drawing unfilled polygon
[in]namepolygon name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1588 of file GNEAdditionalHandler.cpp.

References buildJpsObstacle(), buildJpsWalkableArea(), checkElement(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, NamespaceIDs::polygons, retrieveAdditionalElement(), SUMO_ATTR_LINEWIDTH, SUMO_TAG_POLY, and TL.

◆ buildRerouter()

bool GNEAdditionalHandler::buildRerouter ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const Position & pos,
const std::vector< std::string > & edgeIDs,
const double prob,
const std::string & name,
const bool off,
const bool optional,
const SUMOTime timeThreshold,
const std::vector< std::string > & vTypes,
const Parameterised::Map & parameters )
virtual

builds a rerouter

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the rerouter
[in]posposition of the rerouter in the map
[in]edgeIDsThe edges the rerouter is placed at
[in]probThe probability the rerouter reroutes vehicles with
[in]nameCalibrator name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 883 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GNEReferenceCounter::incRef(), Position::INVALID, PositionVector::length2D(), PositionVector::move2side(), myAllowUndoRedo, CommonHandler::myFilename, myNet, parseEdges(), PositionVector::positionAtOffset2D(), retrieveAdditionalElement(), SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_PROB, SUMO_TAG_REROUTER, and TL.

◆ buildRerouterInterval()

◆ buildRouteProbe()

bool GNEAdditionalHandler::buildRouteProbe ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & edgeID,
const SUMOTime period,
const std::string & name,
const std::string & file,
const SUMOTime begin,
const std::vector< std::string > & vTypes,
const Parameterised::Map & parameters )
virtual

builds a Route probe

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the routeprobe
[in]edgeIDThe edges the routeprobe is placed at
[in]periodthe aggregation period the values the routeprobe collects shall be summed up.
[in]nameCalibrator name
[in]fileThe file to read the routeprobe definitions from
[in]beginThe time at which to start generating output
[in]vTypeslist of vehicle types to be affected
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1140 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkFileName(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEAdditional::getPositionInView(), GNE_ATTR_CENTER_AFTER_CREATION, CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_BEGIN, SUMO_ATTR_FILE, SUMO_ATTR_PERIOD, SUMO_TAG_EDGE, SUMO_TAG_ROUTEPROBE, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildRouteProbReroute()

bool GNEAdditionalHandler::buildRouteProbReroute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & newRouteID,
const double probability )
virtual

builds a route prob reroute

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]newRouteIDnew route ID
[in]probabilityrerouting probability

Implements AdditionalHandler.

Definition at line 1110 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEAttributeCarrier::getID(), GNEHierarchicalElement::getParentAdditionals(), getRerouterIntervalParent(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, SUMO_TAG_INTERVAL, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_PROB_REROUTE, TL, and CommonHandler::writeErrorInvalidParent().

◆ buildSingleLaneDetectorE2()

bool GNEAdditionalHandler::buildSingleLaneDetectorE2 ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double pos,
const double length,
const SUMOTime period,
const std::string & trafficLight,
const std::string & filename,
const std::vector< std::string > & vehicleTypes,
const std::vector< std::string > & nextEdges,
const std::string & detectPersons,
const std::string & name,
const SUMOTime timeThreshold,
const double speedThreshold,
const double jamThreshold,
const bool friendlyPos,
const bool show,
const Parameterised::Map & parameters )
virtual

Builds a single-lane Area Detector (E2).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the detector
[in]laneIDThe lane the detector is placed on
[in]posposition of the detector on the lane
[in[length length of the detector
[in]periodthe aggregation period the values the detector collects shall be summed up.
[in]trafficLightThe traffic light that triggers aggregation when switching.
[in]filenameThe path to the output file.
[in]vtypeslist of vehicle types to be reported
[in]nextEdgeslist of edge ids that must all be part of the future route of the vehicle to qualify for detection
[in]detectPersonsdetect persons instead of vehicles (pedestrians or passengers)
[in]nameE2 detector name
[in]timeThresholdThe time-based threshold that describes how much time has to pass until a vehicle is recognized as halting
[in]speedThresholdThe speed-based threshold that describes how slow a vehicle has to be to be recognized as halting
[in]jamThresholdThe minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam
[in]friendlyPosenable or disable friendly position
[in]showdetector in sumo-gui
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 467 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkFileName(), checkFriendlyPosSmallLanes(), checkLanePosition(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkValidDetectorID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), SUMOXMLDefinitions::isValidNetID(), NamespaceIDs::laneAreaDetectors, myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_LENGTH, SUMO_ATTR_PERIOD, SUMO_TAG_LANE, SUMO_TAG_LANE_AREA_DETECTOR, TL, TLF, CommonHandler::writeError(), CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildTAZ()

bool GNEAdditionalHandler::buildTAZ ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const PositionVector & shape,
const Position & center,
const bool fill,
const RGBColor & color,
const std::vector< std::string > & edgeIDs,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a TAZ (Traffic Assignment Zone).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idTAZ ID
[in]shapeTAZ shape
[in]centershape center
[in]fillWhether the TAZ shall be filled
[in]edgeIDslist of edges (note: This will create GNETAZSourceSinks/Sinks with default values)
[in]nameVaporizer name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1313 of file GNEAdditionalHandler.cpp.

References Boundary::add(), checkElement(), CommonHandler::checkValidAdditionalID(), GNEEdge::getCenteringBoundary(), PositionVector::getCentroid(), Boundary::getShape(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), GNEReferenceCounter::incRef(), Position::INVALID, myAllowUndoRedo, CommonHandler::myFilename, myNet, parseEdges(), retrieveAdditionalElement(), SUMO_ATTR_ID, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, SUMO_TAG_TAZSOURCE, TAZ, TL, TLF, and CommonHandler::writeError().

◆ buildTAZSink()

bool GNEAdditionalHandler::buildTAZSink ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & edgeID,
const double arrivalWeight )
virtual

Builds a TAZSink (Traffic Assignment Zone).

Parameters
[in]netnet in which element will be inserted
[in]allowUndoRedoenable or disable remove created additional with ctrl + Z / ctrl + Y
[in]TAZTraffic Assignment Zone in which this TAZSink is palced
[in]edgeIDedge in which TAZSink is placed
[in]arrivalWeightarrival weight of TAZSink

Implements AdditionalHandler.

Definition at line 1449 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), getAdditionalParent(), GNEHierarchicalElement::getChildTAZSourceSinks(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, GNETAZSourceSink::setAttribute(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_EDGE, SUMO_TAG_SOURCE, SUMO_TAG_TAZ, SUMO_TAG_TAZSINK, TAZ, TL, toString(), and CommonHandler::writeErrorInvalidParent().

◆ buildTAZSource()

bool GNEAdditionalHandler::buildTAZSource ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & edgeID,
const double departWeight )
virtual

Builds a TAZSource (Traffic Assignment Zone).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]TAZTraffic Assignment Zone in which this TAZSource is palced
[in]edgeIDedge in which TAZSource is placed
[in]departWeightdepart weight of TAZSource

Implements AdditionalHandler.

Definition at line 1399 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), getAdditionalParent(), GNEHierarchicalElement::getChildTAZSourceSinks(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), GNEReferenceCounter::incRef(), myAllowUndoRedo, myNet, GNETAZSourceSink::setAttribute(), SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_EDGE, SUMO_TAG_SOURCE, SUMO_TAG_TAZ, SUMO_TAG_TAZSOURCE, TAZ, TL, toString(), and CommonHandler::writeErrorInvalidParent().

◆ buildTractionSubstation()

bool GNEAdditionalHandler::buildTractionSubstation ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const Position & pos,
const double voltage,
const double currentLimit,
const Parameterised::Map & parameters )
virtual

build traction substation

Parameters
[in]idTraction substation ID
[in]posPosition of traction substation in view (optional)
[in]voltageVoltage of at connection point for the overhead wire
[in]currentLimitCurrent limit of the feeder line
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1499 of file GNEAdditionalHandler.cpp.

References checkElement(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_CURRENTLIMIT, SUMO_ATTR_VOLTAGE, SUMO_TAG_TRACTION_SUBSTATION, and TL.

◆ buildTrainStop()

bool GNEAdditionalHandler::buildTrainStop ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const std::string & laneID,
const double startPos,
const double endPos,
const std::string & name,
const std::vector< std::string > & lines,
const int personCapacity,
const double parkingLength,
const RGBColor & color,
const bool friendlyPosition,
const double angle,
const Parameterised::Map & parameters )
virtual

Builds a train stop.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the train stop
[in]laneIDThe lane the train stop is placed on
[in]startPosBegin position of the train stop on the lane
[in]endPosEnd position of the train stop on the lane
[in]nameName of trainStop
[in]linesNames of the train lines that halt on this train stop
[in]personCapacitylarger numbers of persons trying to enter will create an upstream jam on the sidewalk.
[in]parkingLengthparking length
[in[color trainStop color
[in]friendlyPosenable or disable friendly position
[in]angletrainStop's angle
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 131 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), GNEBusStop::buildTrainStop(), NamespaceIDs::busStops, checkElement(), checkLaneDoublePosition(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_TAG_LANE, SUMO_TAG_TRAIN_STOP, TL, CommonHandler::writeErrorInvalidParent(), and CommonHandler::writeErrorInvalidPosition().

◆ buildVaporizer()

bool GNEAdditionalHandler::buildVaporizer ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & edgeID,
const SUMOTime from,
const SUMOTime endTime,
const std::string & name,
const Parameterised::Map & parameters )
virtual

Builds a vaporizer (lane speed additional).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]edgeIDedge in which this vaporizer is placed
[in]fromtime in which this vaporizer start
[in]endTimetime in which this vaporizer ends
[in]nameVaporizer name
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1268 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), GNEAttributeCarrier::getID(), GNEAdditional::getPositionInView(), GNE_ATTR_CENTER_AFTER_CREATION, CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, retrieveAdditionalElement(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_EDGE, SUMO_TAG_VAPORIZER, TL, TLF, CommonHandler::writeError(), and CommonHandler::writeErrorInvalidParent().

◆ buildVariableSpeedSign()

bool GNEAdditionalHandler::buildVariableSpeedSign ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & id,
const Position & pos,
const std::vector< std::string > & laneIDs,
const std::string & name,
const std::vector< std::string > & vTypes,
const Parameterised::Map & parameters )
virtual

Builds a VariableSpeedSign (lane speed additional).

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]idThe id of the lane speed additional
[in]destLanesList of lanes affected by this speed additional
[in]nameVSS name
[in]vTypeslist of vehicle types to be affected
[in]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 1186 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::addChildElement(), checkElement(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkValidAdditionalID(), GNEReferenceCounter::incRef(), myAllowUndoRedo, CommonHandler::myFilename, myNet, parseLanes(), retrieveAdditionalElement(), SUMO_TAG_VSS, and TL.

◆ buildVariableSpeedSignStep()

bool GNEAdditionalHandler::buildVariableSpeedSignStep ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const SUMOTime time,
const double speed )
virtual

◆ checkCalibratorFlowParents()

bool AdditionalHandler::checkCalibratorFlowParents ( )
privateinherited

check calibrator flow parents

Definition at line 2042 of file AdditionalHandler.cpp.

References GNE_TAG_CALIBRATOR_LANE, CommonHandler::myCommonXMLStructure, SUMO_TAG_CALIBRATOR, TLF, toString(), and CommonHandler::writeError().

Referenced by parseCalibratorFlowAttributes().

Here is the caller graph for this function:

◆ checkContainerPlanParents()

bool CommonHandler::checkContainerPlanParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check container plan parents

Definition at line 229 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkDetectPersons()

bool AdditionalHandler::checkDetectPersons ( const SumoXMLTag currentTag,
const std::string & id,
const std::string & detectPersons )
privateinherited

check detect persons

Definition at line 2060 of file AdditionalHandler.cpp.

References SUMOXMLDefinitions::PersonModeValues, SUMO_ATTR_DETECT_PERSONS, TLF, toString(), and CommonHandler::writeError().

Referenced by parseE1Attributes(), parseE1InstantAttributes(), parseE2Attributes(), and parseE3Attributes().

Here is the caller graph for this function:

◆ checkElement()

◆ checkFileName()

bool CommonHandler::checkFileName ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const std::string & value )
protectedinherited

◆ checkFriendlyPosSmallLanes()

bool GNEAdditionalHandler::checkFriendlyPosSmallLanes ( double pos,
const double length,
const double laneLength,
const bool friendlyPos )
protected

check if enable friendly pos in small lanes

Parameters
[in]pospos position of element over lane
[in]lengthelement's length
[in]laneLengthLength of the lane
[in]friendlyPosAttribute of element
Returns
true if the element position is valid, false in otherweise

Definition at line 1873 of file GNEAdditionalHandler.cpp.

References OptionsCont::getOptions().

Referenced by buildSingleLaneDetectorE2().

Here is the caller graph for this function:

◆ checkLaneDoublePosition()

bool GNEAdditionalHandler::checkLaneDoublePosition ( double from,
const double to,
const double laneLength,
const bool friendlyPos )
protected

check if the given positions over a lane is valid

Parameters
[in]frombegin position of element over lane
[in]toend position of element over lane
[in]laneLengthLength of the lane
[in]friendlyPosAttribute of element
Returns
true if the element positions is valid, false in otherwise

Definition at line 1895 of file GNEAdditionalHandler.cpp.

References INVALID_DOUBLE.

Referenced by buildBusStop(), buildChargingStation(), buildContainerStop(), buildParkingArea(), and buildTrainStop().

Here is the caller graph for this function:

◆ checkLanePosition()

bool GNEAdditionalHandler::checkLanePosition ( double pos,
const double length,
const double laneLength,
const bool friendlyPos )
protected

check if the given position over a lane is valid

Parameters
[in]pospos position of element over lane
[in]lengthelement's length
[in]laneLengthLength of the lane
[in]friendlyPosAttribute of element
Returns
true if the element position is valid, false in otherweise

Definition at line 1851 of file GNEAdditionalHandler.cpp.

Referenced by buildAccess(), buildDetectorE1Instant(), buildDetectorEntry(), buildDetectorExit(), buildE1Detector(), buildEdgeCalibrator(), buildLaneCalibrator(), buildPOILane(), buildSingleLaneDetectorE2(), and checkMultiLanePosition().

Here is the caller graph for this function:

◆ checkListOfVehicleTypes()

bool CommonHandler::checkListOfVehicleTypes ( const SumoXMLTag tag,
const std::string & id,
const std::vector< std::string > & vTypeIDs )
protectedinherited

check list of IDs

Definition at line 158 of file CommonHandler.cpp.

References SUMOXMLDefinitions::isValidTypeID(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildVariableSpeedSign().

Here is the caller graph for this function:

◆ checkMultiLanePosition()

bool GNEAdditionalHandler::checkMultiLanePosition ( double fromPos,
const double fromLaneLength,
const double toPos,
const double tolaneLength,
const bool friendlyPos )
protected

check if the given positions over two lanes are valid

Parameters
[in]fromPosposition of element over first lane
[in]fromLaneLengthlength of the first lane
[in]toPosposition of element over second lane
[in]toLaneLengthlength of the second lane
[in]friendlyPosflag for friendlyPos
Returns
true if the element positions is valid, false in otherwise

Definition at line 1964 of file GNEAdditionalHandler.cpp.

References checkLanePosition().

Referenced by buildMultiLaneDetectorE2(), and buildOverheadWire().

Here is the caller graph for this function:

◆ checkNegative() [1/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const double value,
const bool canBeZero )
protectedinherited

check if the given double value is NOT negative

Definition at line 280 of file CommonHandler.cpp.

References invalid_return< std::string >::value, TLF, toString(), and writeError().

◆ checkNegative() [2/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const int value,
const bool canBeZero )
protectedinherited

check if the given int value is NOT negative

Definition at line 262 of file CommonHandler.cpp.

References invalid_return< std::string >::value, TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRoute(), RouteHandler::parseRouteEmbedded(), and AdditionalHandler::parseRouteProbRerouteAttributes().

Here is the caller graph for this function:

◆ checkNegative() [3/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const SUMOTime value,
const bool canBeZero )
protectedinherited

check if the given SUMOTime value is NOT negative

Definition at line 298 of file CommonHandler.cpp.

References invalid_return< std::string >::value, time2string(), TLF, toString(), and writeError().

◆ checkOverlappingRerouterIntervals()

bool GNEAdditionalHandler::checkOverlappingRerouterIntervals ( GNEAdditional * rerouter,
const SUMOTime newBegin,
const SUMOTime newEnd )
protected

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

Definition at line 1824 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::getChildAdditionals(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, and TIME2STEPS.

Referenced by buildRerouterInterval().

Here is the caller graph for this function:

◆ checkParsedParent()

◆ checkPersonPlanParents()

bool CommonHandler::checkPersonPlanParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check person plan parents

Definition at line 214 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkStopParents()

bool CommonHandler::checkStopParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check stop parents

Definition at line 244 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkValidAdditionalID()

◆ checkValidDemandElementID()

◆ checkValidDetectorID()

bool CommonHandler::checkValidDetectorID ( const SumoXMLTag tag,
const std::string & value )
protectedinherited

check if the given detector ID is valid

Definition at line 338 of file CommonHandler.cpp.

References invalid_return< std::string >::value, SUMOXMLDefinitions::isValidDetectorID(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().

Here is the caller graph for this function:

◆ checkVehicleParents()

bool CommonHandler::checkVehicleParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check vehicle parents

Definition at line 183 of file CommonHandler.cpp.

References getEmbeddedRoute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, TLF, toString(), and writeError().

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkWithinDistribution()

bool CommonHandler::checkWithinDistribution ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check if the given object is within a distribution (VType or routes)

Definition at line 169 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMO_TAG_ROUTE_DISTRIBUTION, and SUMO_TAG_VTYPE_DISTRIBUTION.

◆ endParseAttributes()

◆ fixLaneDoublePosition()

void GNEAdditionalHandler::fixLaneDoublePosition ( double & from,
double & to,
const double laneLengt )
protected

fix the given positions over lane

Parameters
[in]frombegin position of element over lane
[in]toend position of element over lane
[in]laneLengthLength of the lane

Definition at line 1926 of file GNEAdditionalHandler.cpp.

References INVALID_DOUBLE.

◆ forceOverwriteElements()

void CommonHandler::forceOverwriteElements ( )
inherited

force overwritte elements (used if we're reloading elements)

Definition at line 42 of file CommonHandler.cpp.

References myOverwriteElements.

Referenced by GNEApplicationWindow::onCmdReloadDataElements().

Here is the caller graph for this function:

◆ forceRemainElements()

void CommonHandler::forceRemainElements ( )
inherited

force remain elements (used if we're reloading elements)

Definition at line 48 of file CommonHandler.cpp.

References myRemainElements.

◆ getAdditionalParent()

GNEAdditional * GNEAdditionalHandler::getAdditionalParent ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
SumoXMLTag tag ) const
protected

get additional parent

Definition at line 1974 of file GNEAdditionalHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), myNet, and SUMO_ATTR_ID.

Referenced by buildAccess(), buildDetectorEntry(), buildDetectorExit(), buildParkingSpace(), buildRerouterInterval(), buildTAZSink(), buildTAZSource(), and buildVariableSpeedSignStep().

Here is the caller graph for this function:

◆ getEmbeddedRoute()

CommonXMLStructure::SumoBaseObject * CommonHandler::getEmbeddedRoute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject) const
protectedinherited

get embedded route from children

Definition at line 115 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), SUMO_ATTR_ID, and SUMO_TAG_ROUTE.

Referenced by checkVehicleParents(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getRerouterIntervalParent()

GNEAdditional * GNEAdditionalHandler::getRerouterIntervalParent ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject) const
protected

◆ isAbortLoading()

bool CommonHandler::isAbortLoading ( ) const
inherited

abort loading

Definition at line 78 of file CommonHandler.cpp.

References myAbortLoading.

◆ isErrorCreatingElement()

bool CommonHandler::isErrorCreatingElement ( ) const
inherited

get flag for mark if a element wasn't created

Definition at line 60 of file CommonHandler.cpp.

References myErrorCreatingElement.

Referenced by GNEApplicationWindow::loadDataElements(), and GNEApplicationWindow::onCmdOpenDataElements().

Here is the caller graph for this function:

◆ isForceOverwriteElements()

bool CommonHandler::isForceOverwriteElements ( ) const
inherited

force overwritte elements (used if we're reloading elements)

Definition at line 66 of file CommonHandler.cpp.

References myOverwriteElements.

◆ isForceRemainElements()

bool CommonHandler::isForceRemainElements ( ) const
inherited

force remain elements (used if we're reloading elements)

Definition at line 72 of file CommonHandler.cpp.

References myRemainElements.

◆ operator=()

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

invalidate assignment operator

References GNEAdditionalHandler().

◆ parseAccessAttributes()

void AdditionalHandler::parseAccessAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse access attributes

Definition at line 888 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_ERROR, and SUMO_TAG_TRAIN_STOP.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseBusStopAttributes()

void AdditionalHandler::parseBusStopAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseCalibratorAttributes()

void AdditionalHandler::parseCalibratorAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseCalibratorFlowAttributes()

◆ parseChargingStationAttributes()

◆ parseClosingLaneRerouteAttributes()

void AdditionalHandler::parseClosingLaneRerouteAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse closing lane reroute attributes

Definition at line 1604 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_ERROR, and SUMO_TAG_INTERVAL.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseClosingRerouteAttributes()

void AdditionalHandler::parseClosingRerouteAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse closing reroute attributes

Definition at line 1629 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ID, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_ERROR, and SUMO_TAG_INTERVAL.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseContainerStopAttributes()

void AdditionalHandler::parseContainerStopAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse containerStop attributes

Definition at line 915 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), INVALID_DOUBLE, RGBColor::INVISIBLE, CommonHandler::myCommonXMLStructure, SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_STARTPOS, SUMO_TAG_CONTAINER_STOP, and SUMO_TAG_ERROR.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseDestProbRerouteAttributes()

void AdditionalHandler::parseDestProbRerouteAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse dest prob reroute attributes

Definition at line 1654 of file AdditionalHandler.cpp.

References CommonHandler::checkNegative(), CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_ERROR, and SUMO_TAG_INTERVAL.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseE1Attributes()

void AdditionalHandler::parseE1Attributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseE1InstantAttributes()

void AdditionalHandler::parseE1InstantAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse E1 instant attributes

Definition at line 1291 of file AdditionalHandler.cpp.

References checkDetectPersons(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_DETECT_PERSONS, SUMO_ATTR_FILE, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_NEXT_EDGES, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_ERROR, and SUMO_TAG_INSTANT_INDUCTION_LOOP.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseE2Attributes()

◆ parseE3Attributes()

◆ parseEdges()

std::vector< GNEEdge * > GNEAdditionalHandler::parseEdges ( const SumoXMLTag tag,
const std::string & id,
const std::vector< std::string > & edgeIDs )
protected

parse edges

Definition at line 2007 of file GNEAdditionalHandler.cpp.

References myNet, SUMO_TAG_EDGE, TLF, toString(), and CommonHandler::writeError().

Referenced by buildRerouter(), and buildTAZ().

Here is the caller graph for this function:

◆ parseEntryAttributes()

void AdditionalHandler::parseEntryAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse entry attributes

Definition at line 1241 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_ENTRY, SUMO_TAG_E3DETECTOR, and SUMO_TAG_ERROR.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseExitAttributes()

void AdditionalHandler::parseExitAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse exist attributes

Definition at line 1266 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, and SUMO_TAG_ERROR.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseJpsObstacleAttributes()

void AdditionalHandler::parseJpsObstacleAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse juPedSim obstacle attributes

Definition at line 2019 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), GNE_TAG_JPS_OBSTACLE, CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_SHAPE, and SUMO_TAG_ERROR.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseJpsWalkableAreaAttributes()

void AdditionalHandler::parseJpsWalkableAreaAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse juPedSim walkable area attributes

Definition at line 1996 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), GNE_TAG_JPS_WALKABLEAREA, CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_SHAPE, and SUMO_TAG_ERROR.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseLanes()

std::vector< GNELane * > GNEAdditionalHandler::parseLanes ( const SumoXMLTag tag,
const std::string & id,
const std::vector< std::string > & laneIDs )
protected

parse lanes

Definition at line 2025 of file GNEAdditionalHandler.cpp.

References myNet, SUMO_TAG_LANE, TLF, toString(), and CommonHandler::writeError().

Referenced by buildMultiLaneDetectorE2(), buildOverheadWire(), and buildVariableSpeedSign().

Here is the caller graph for this function:

◆ parseOverheadWire()

void AdditionalHandler::parseOverheadWire ( const SUMOSAXAttributes & attrs)
privateinherited

parse overhead wire segment

Definition at line 1816 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), INVALID_DOUBLE, CommonHandler::myCommonXMLStructure, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_OVERHEAD_WIRE_FORBIDDEN, SUMO_ATTR_STARTPOS, SUMO_ATTR_SUBSTATIONID, SUMO_TAG_ERROR, and SUMO_TAG_OVERHEAD_WIRE_SECTION.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseOverheadWireClamp()

void AdditionalHandler::parseOverheadWireClamp ( const SUMOSAXAttributes & attrs)
privateinherited

parse overhead wire clamp

Definition at line 1847 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_OVERHEAD_WIRECLAMP_END, SUMO_ATTR_OVERHEAD_WIRECLAMP_LANEEND, SUMO_ATTR_OVERHEAD_WIRECLAMP_LANESTART, SUMO_ATTR_OVERHEAD_WIRECLAMP_START, SUMO_ATTR_SUBSTATIONID, SUMO_TAG_ERROR, and SUMO_TAG_OVERHEAD_WIRE_CLAMP.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseParameters()

void CommonHandler::parseParameters ( const SUMOSAXAttributes & attrs)
protectedinherited

parse generic parameters

Definition at line 84 of file CommonHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), invalid_return< std::string >::value, SUMOXMLDefinitions::isValidParameterKey(), myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_ERROR, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, TLF, toString(), and writeError().

Referenced by AdditionalHandler::beginParseAttributes(), and RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseParentTags()

std::string CommonHandler::parseParentTags ( std::vector< SumoXMLTag > parentTags) const
privateinherited

parse list of parent tags

Definition at line 425 of file CommonHandler.cpp.

References TL, and toString().

Referenced by writeErrorInvalidParent(), writeErrorInvalidParent(), and writeErrorInvalidParent().

Here is the caller graph for this function:

◆ parseParkingAreaAttributes()

void AdditionalHandler::parseParkingAreaAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseParkingAreaRerouteAttributes()

void AdditionalHandler::parseParkingAreaRerouteAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse parking area reroute attributes

Definition at line 1680 of file AdditionalHandler.cpp.

References CommonHandler::checkNegative(), CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_ATTR_VISIBLE, SUMO_TAG_ERROR, SUMO_TAG_INTERVAL, and SUMO_TAG_PARKING_AREA_REROUTE.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseParkingSpaceAttributes()

void AdditionalHandler::parseParkingSpaceAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse parking space attributes

Definition at line 1049 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ANGLE, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_SLOPE, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_ERROR, SUMO_TAG_PARKING_AREA, and SUMO_TAG_PARKING_SPACE.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parsePOIAttributes()

◆ parsePolyAttributes()

void AdditionalHandler::parsePolyAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseRerouterAttributes()

void AdditionalHandler::parseRerouterAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

◆ parseRerouterIntervalAttributes()

void AdditionalHandler::parseRerouterIntervalAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse rerouter interval attributes

Definition at line 1582 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::getSUMOTimeReporting(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_ERROR, SUMO_TAG_INTERVAL, and SUMO_TAG_REROUTER.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseRouteProbeAttributes()

void AdditionalHandler::parseRouteProbeAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse route probe attributes

Definition at line 1735 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptPeriod(), SUMOSAXAttributes::getOptSUMOTimeReporting(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_BEGIN, SUMO_ATTR_EDGE, SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_PERIOD, SUMO_ATTR_VTYPES, SUMO_TAG_ERROR, SUMO_TAG_ROUTEPROBE, and SUMOTime_MAX_PERIOD.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseRouteProbRerouteAttributes()

void AdditionalHandler::parseRouteProbRerouteAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse route prob reroute attributes

Definition at line 1709 of file AdditionalHandler.cpp.

References CommonHandler::checkNegative(), CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_PROB, SUMO_TAG_ERROR, SUMO_TAG_INTERVAL, and SUMO_TAG_ROUTE_PROB_REROUTE.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseSumoBaseObject()

void AdditionalHandler::parseSumoBaseObject ( CommonXMLStructure::SumoBaseObject * obj)
inherited

parse SumoBaseObject (it's called recursivelly)

Definition at line 251 of file AdditionalHandler.cpp.

References buildAccess(), buildBusStop(), buildCalibratorFlow(), buildChargingStation(), buildClosingLaneReroute(), buildClosingReroute(), buildContainerStop(), buildDestProbReroute(), buildDetectorE1Instant(), buildDetectorE3(), buildDetectorEntry(), buildDetectorExit(), buildE1Detector(), buildEdgeCalibrator(), buildJpsObstacle(), buildJpsWalkableArea(), buildLaneCalibrator(), buildMultiLaneDetectorE2(), buildOverheadWire(), buildOverheadWireClamp(), buildParkingArea(), buildParkingAreaReroute(), buildParkingSpace(), buildPOI(), buildPOIGeo(), buildPOILane(), buildPolygon(), buildRerouter(), buildRerouterInterval(), buildRouteProbe(), buildRouteProbReroute(), buildSingleLaneDetectorE2(), buildTAZ(), buildTAZSink(), buildTAZSource(), buildTractionSubstation(), buildTrainStop(), buildVaporizer(), buildVariableSpeedSign(), buildVariableSpeedSignStep(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), CommonXMLStructure::SumoBaseObject::getColorAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getIntAttribute(), CommonXMLStructure::SumoBaseObject::getParameters(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getPeriodAttribute(), CommonXMLStructure::SumoBaseObject::getPositionAttribute(), CommonXMLStructure::SumoBaseObject::getPositionVectorAttribute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), CommonXMLStructure::SumoBaseObject::getVehicleParameter(), GNE_TAG_CALIBRATOR_LANE, GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonXMLStructure::SumoBaseObject::markAsCreated(), CommonHandler::myAbortLoading, parseSumoBaseObject(), parseVehicleClasses(), SUMO_ATTR_ACCEPTED_BADGES, SUMO_ATTR_ALLOW, SUMO_ATTR_ANGLE, SUMO_ATTR_BEGIN, SUMO_ATTR_CENTER, SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGEINTRANSIT, SUMO_ATTR_CHARGETYPE, SUMO_ATTR_CHARGINGPOWER, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_CURRENTLIMIT, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DETECT_PERSONS, SUMO_ATTR_DISALLOW, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_EFFICIENCY, SUMO_ATTR_END, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECT_ARRIVAL, SUMO_ATTR_FILE, SUMO_ATTR_FILL, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_GEO, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_HEIGHT, SUMO_ATTR_ICON, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_ATTR_LAT, SUMO_ATTR_LAYER, SUMO_ATTR_LEFTHAND, SUMO_ATTR_LENGTH, SUMO_ATTR_LINES, SUMO_ATTR_LINEWIDTH, SUMO_ATTR_LON, SUMO_ATTR_NAME, SUMO_ATTR_NEXT_EDGES, SUMO_ATTR_OFF, SUMO_ATTR_ONROAD, SUMO_ATTR_OPEN_ENTRY, SUMO_ATTR_OPTIONAL, SUMO_ATTR_OUTPUT, SUMO_ATTR_OVERHEAD_WIRE_FORBIDDEN, SUMO_ATTR_OVERHEAD_WIRECLAMP_END, SUMO_ATTR_OVERHEAD_WIRECLAMP_LANEEND, SUMO_ATTR_OVERHEAD_WIRECLAMP_LANESTART, SUMO_ATTR_OVERHEAD_WIRECLAMP_START, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_POSITION, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_PROB, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_ROUTEPROBE, SUMO_ATTR_SHAPE, SUMO_ATTR_SHOW_DETECTOR, SUMO_ATTR_SLOPE, SUMO_ATTR_SPEED, SUMO_ATTR_STARTPOS, SUMO_ATTR_SUBSTATIONID, SUMO_ATTR_TIME, SUMO_ATTR_TLID, SUMO_ATTR_TYPE, SUMO_ATTR_VISIBLE, SUMO_ATTR_VOLTAGE, SUMO_ATTR_VTYPES, SUMO_ATTR_WAITINGTIME, SUMO_ATTR_WEIGHT, SUMO_ATTR_WIDTH, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E1DETECTOR, SUMO_TAG_E2DETECTOR, SUMO_TAG_E3DETECTOR, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_FLOW, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_INTERVAL, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_OVERHEAD_WIRE_CLAMP, SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_PARKING_AREA, SUMO_TAG_PARKING_AREA_REROUTE, SUMO_TAG_PARKING_SPACE, SUMO_TAG_POI, SUMO_TAG_POLY, 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_TRACTION_SUBSTATION, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VAPORIZER, and SUMO_TAG_VSS.

Referenced by GNEAdditionalFrame::addAdditional(), GNEWireFrame::buildWireOverView(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), endParseAttributes(), GNEViewNet::onCmdAttachPOI(), GNEShapeFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEViewNet::onCmdReleasePOI(), GNEViewNet::onCmdTransformPOI(), GNEViewNet::onCmdTransformPOIGEO(), GNEViewNet::onCmdTriangulatePolygon(), parseSumoBaseObject(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ parseTAZAttributes()

void AdditionalHandler::parseTAZAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse TAZ attributes

Definition at line 1326 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), Position::INVALID, CommonHandler::myCommonXMLStructure, RGBColor::RED, SUMO_ATTR_CENTER, SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_FILL, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_ATTR_SHAPE, SUMO_TAG_ERROR, and SUMO_TAG_TAZ.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseTAZSinkAttributes()

void AdditionalHandler::parseTAZSinkAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse TAZ sink attributes

Definition at line 1379 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_ERROR, SUMO_TAG_TAZ, and SUMO_TAG_TAZSINK.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseTAZSourceAttributes()

void AdditionalHandler::parseTAZSourceAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse TAZ source attributes

Definition at line 1357 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), SUMOSAXAttributes::get(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_WEIGHT, SUMO_TAG_ERROR, SUMO_TAG_TAZ, and SUMO_TAG_TAZSOURCE.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseTractionSubstation()

void AdditionalHandler::parseTractionSubstation ( const SUMOSAXAttributes & attrs)
privateinherited

parse traction substation

Definition at line 1791 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), Position::INVALID, CommonHandler::myCommonXMLStructure, SUMO_ATTR_CURRENTLIMIT, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_VOLTAGE, SUMO_TAG_ERROR, and SUMO_TAG_TRACTION_SUBSTATION.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseTrainStopAttributes()

void AdditionalHandler::parseTrainStopAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse trainStop attributes

Definition at line 849 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), INVALID_DOUBLE, RGBColor::INVISIBLE, CommonHandler::myCommonXMLStructure, SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_STARTPOS, SUMO_TAG_ERROR, and SUMO_TAG_TRAIN_STOP.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseVaporizerAttributes()

void AdditionalHandler::parseVaporizerAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse vaporizer attributes

Definition at line 1766 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getSUMOTimeReporting(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_BEGIN, SUMO_ATTR_EDGE, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_NAME, SUMO_TAG_ERROR, and SUMO_TAG_VAPORIZER.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseVariableSpeedSignAttributes()

void AdditionalHandler::parseVariableSpeedSignAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse variable speed sign attributes

Definition at line 1401 of file AdditionalHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_VTYPES, SUMO_TAG_ERROR, and SUMO_TAG_VSS.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ parseVariableSpeedSignStepAttributes()

void AdditionalHandler::parseVariableSpeedSignStepAttributes ( const SUMOSAXAttributes & attrs)
privateinherited

parse variable speed sign step attributes

Definition at line 1428 of file AdditionalHandler.cpp.

References CommonHandler::checkParsedParent(), OptionsCont::getFloat(), SUMOSAXAttributes::getOpt(), OptionsCont::getOptions(), SUMOSAXAttributes::getSUMOTimeReporting(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_SPEED, SUMO_ATTR_TIME, SUMO_TAG_ERROR, SUMO_TAG_STEP, and SUMO_TAG_VSS.

Referenced by beginParseAttributes().

Here is the caller graph for this function:

◆ postParserTasks()

bool GNEAdditionalHandler::postParserTasks ( )
virtual

run post parser tasks

Implements AdditionalHandler.

Definition at line 80 of file GNEAdditionalHandler.cpp.

◆ retrieveAdditionalElement()

GNEAdditional * GNEAdditionalHandler::retrieveAdditionalElement ( const std::vector< SumoXMLTag > tags,
const std::string & id )
protected

◆ writeError()

bool CommonHandler::writeError ( const std::string & error)
protectedinherited

write error and enable error creating element

Definition at line 375 of file CommonHandler.cpp.

References myErrorCreatingElement, and WRITE_ERROR.

Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), AdditionalHandler::checkCalibratorFlowParents(), AdditionalHandler::checkDetectPersons(), GNEMeanDataHandler::checkExcludeEmpty(), checkFileName(), checkListOfVehicleTypes(), checkNegative(), checkNegative(), checkNegative(), DataHandler::checkParent(), checkParsedParent(), MeanDataHandler::checkType(), checkValidAdditionalID(), checkValidDemandElementID(), checkValidDetectorID(), checkVehicleParents(), GNERouteHandler::checkViaAttribute(), GNERouteHandler::getDistributionElements(), DataHandler::myStartElement(), GNEMeanDataHandler::parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), GNEMeanDataHandler::parseEdges(), GNERouteHandler::parseEdges(), RouteHandler::parseFlow(), GNEAdditionalHandler::parseLanes(), RouteHandler::parseNestedCFM(), parseParameters(), AdditionalHandler::parsePOIAttributes(), RouteHandler::parseRouteEmbedded(), RouteHandler::parseStopParameters(), RouteHandler::parseTranship(), RouteHandler::parseTrip(), RouteHandler::parseWalk(), writeErrorInvalidLanes(), writeErrorInvalidParent(), writeErrorInvalidParent(), writeErrorInvalidParent(), and writeErrorInvalidPosition().

◆ writeErrorInvalidLanes()

bool CommonHandler::writeErrorInvalidLanes ( const SumoXMLTag tag,
const std::string & id )
protectedinherited

write error "invalid list of lanes"

Definition at line 389 of file CommonHandler.cpp.

References TLF, toString(), and writeError().

◆ writeErrorInvalidParent() [1/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::string & id,
const std::vector< SumoXMLTag > parentTags,
const std::string & parentID )
protectedinherited

write error "invalid parent element" giving ids of current and parent element

Definition at line 395 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNERouteHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildRouteRef(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVTypeRef(), GNERouteHandler::buildWalk(), GNERouteHandler::parseEdge(), GNERouteHandler::parseJunction(), and GNERouteHandler::parseTAZ().

◆ writeErrorInvalidParent() [2/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::vector< SumoXMLTag > parentTags )
protectedinherited

write error "invalid parent element" without giving IDs

Definition at line 415 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

◆ writeErrorInvalidParent() [3/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::vector< SumoXMLTag > parentTags,
const std::string & parentID )
protectedinherited

write error "invalid parent element" giving only the id of parent element

Definition at line 405 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

◆ writeErrorInvalidPosition()

◆ writeWarningDuplicated()

bool CommonHandler::writeWarningDuplicated ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLTag checkedTag )
protectedinherited

write warning duplicated element

Definition at line 368 of file CommonHandler.cpp.

References TLF, toString(), and WRITE_WARNING.

Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().

Here is the caller graph for this function:

◆ writeWarningOverwriting()

void CommonHandler::writeWarningOverwriting ( const SumoXMLTag tag,
const std::string & id )
protectedinherited

write warning overwritting element

Definition at line 362 of file CommonHandler.cpp.

References TLF, toString(), and WRITE_WARNING.

Field Documentation

◆ myAbortLoading

bool CommonHandler::myAbortLoading = false
protectedinherited

◆ myAllowUndoRedo

◆ myCommonXMLStructure

CommonXMLStructure CommonHandler::myCommonXMLStructure
protectedinherited

common XML Structure

Definition at line 74 of file CommonHandler.h.

Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), RouteHandler::beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), DataHandler::getAttributes(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), RouteHandler::parseRouteEmbedded(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseRouteRef(), RouteHandler::parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseVTypeRef(), and RouteHandler::parseWalk().

◆ myErrorCreatingElement

bool CommonHandler::myErrorCreatingElement = false
protectedinherited

flag for mark if a element wasn't created

Definition at line 77 of file CommonHandler.h.

Referenced by isErrorCreatingElement(), and writeError().

◆ myFilename

const std::string CommonHandler::myFilename
protectedinherited

filename

Definition at line 71 of file CommonHandler.h.

Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), CommonHandler(), and RouteHandler::parseVType().

◆ myNet

◆ myOverwriteElements

◆ myRemainElements


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