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

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

#include <GNEAdditionalHandler.h>

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

Data Structures

struct  NeteditParameters
 struct for Netedit parameters More...
 

Public Member Functions

bool beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs)
 begin parse attributes
 
void endParseAttributes ()
 end parse attributes
 
 GNEAdditionalHandler (GNENet *net, const bool allowUndoRedo, const bool overwrite)
 Constructor.
 
bool isErrorCreatingElement () const
 get flag for check if a element wasn't created
 
void parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj)
 parse SumoBaseObject (it's called recursivelly)
 
 ~GNEAdditionalHandler ()
 Destructor.
 
build functions
void 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 Parameterised::Map &parameters)
 Builds a bus stop.
 
void 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 Parameterised::Map &parameters)
 Builds a train stop.
 
void 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.
 
void 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 Parameterised::Map &parameters)
 Builds a container stop.
 
void 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.
 
void 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.
 
void 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.
 
void 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)
 
void 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)
 
void 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)
 
void 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)
 
void buildDetectorEntry (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &laneID, const double pos, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a entry detector (E3)
 
void buildDetectorExit (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &laneID, const double pos, const bool friendlyPos, const Parameterised::Map &parameters)
 Builds a exit detector (E3)
 
void 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)
 
void 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
 
void 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
 
void buildCalibratorFlow (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOVehicleParameter &vehicleParameter)
 builds a calibrator flow
 
void 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
 
void buildRerouterInterval (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOTime begin, const SUMOTime end)
 builds a rerouter interval
 
void buildClosingLaneReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &closedLane, SVCPermissions permissions)
 builds a closing lane reroute
 
void buildClosingReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &closedEdgeID, SVCPermissions permissions)
 builds a closing edge reroute
 
void buildDestProbReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newEdgeDestinationID, const double probability)
 builds a dest prob reroute
 
void buildParkingAreaReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newParkignAreaID, const double probability, const bool visible)
 builds a parking area reroute
 
void buildRouteProbReroute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &newRouteID, const double probability)
 builds a route prob reroute
 
void 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
 
void 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)
 
void buildVariableSpeedSignStep (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const SUMOTime time, const std::string &speed)
 Builds a VariableSpeedSign Step.
 
void 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)
 
void 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)
 
void buildTAZSource (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const double departWeight)
 Builds a TAZSource (Traffic Assignment Zone)
 
void buildTAZSink (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const double arrivalWeight)
 Builds a TAZSink (Traffic Assignment Zone)
 
void 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
 
void 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
 
void 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
 
void 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 bool relativePath, 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.
 
void 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, bool relativePath, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI using the given values.
 
void 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 bool relativePath, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI over lane using the given values.
 
void 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, bool relativePath, const double width, const double height, const std::string &name, const Parameterised::Map &parameters)
 Builds a POI in GEO coordinaten using the given values.
 
void 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.
 
void 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 accessCanBeCreated (GNEAdditional *busStopParent, GNEEdge *edge)
 check if a GNEAccess can be created in a certain Edge
 
static bool checkFriendlyPosSmallLanes (double pos, const double length, const double laneLength, const bool friendlyPos)
 check if enable friendly pos in small lanes
 
static bool checkLaneDoublePosition (double from, const double to, const double laneLength, const bool friendlyPos)
 check if the given positions over a lane is valid
 
static bool checkLanePosition (double pos, const double length, const double laneLength, const bool friendlyPos)
 check if the given position over a lane is valid
 
static 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
 
static 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
 
static void fixLaneDoublePosition (double &from, double &to, const double laneLengt)
 fix the given positions over lane
 
static void fixLanePosition (double &pos, double &length, const double laneLength)
 fix given position over lane
 
static void fixMultiLanePosition (double fromPos, const double fromLaneLength, double toPos, const double tolaneLength)
 fix the given positions over two lanes
 

Protected Member Functions

bool checkDuplicatedID (const std::vector< SumoXMLTag > tags, const std::string &id)
 check if given ID correspond to a duplicated additionals
 
bool checkListOfVehicleTypes (const std::vector< std::string > &vTypeIDs) const
 check list of IDs
 
GNEAdditionalgetAdditionalParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, SumoXMLTag tag) const
 get additional parent
 
GNEAdditionalgetRerouterIntervalParent (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get rerouter interval parent
 
void overwriteAdditional ()
 remove overwritten additional
 
std::vector< GNEEdge * > parseEdges (const SumoXMLTag tag, const std::vector< std::string > &edgeIDs)
 parse edges
 
std::vector< GNELane * > parseLanes (const SumoXMLTag tag, const std::vector< std::string > &laneIDs)
 parse lanes
 
void writeError (const std::string &error)
 write error and enable error creating element
 
void writeErrorDuplicated (const SumoXMLTag tag, const std::string &id)
 write error "duplicated additional"
 
void writeErrorInvalidFilename (const SumoXMLTag tag, const std::string &id)
 write error "invalid filename"
 
void writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id)
 write error "invalid list of lanes"
 
void writeErrorInvalidNegativeValue (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute)
 write error "invalid negative element"
 
void writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const SumoXMLTag parent, const std::string &parentID)
 write error "invalid parent element"
 
void writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id)
 write error "invalid position"
 
void writeErrorInvalidVTypes (const SumoXMLTag tag, const std::string &id)
 write error "invalid list of vehicle types"
 
void writeInvalidID (const SumoXMLTag tag, const std::string &id)
 write invalid id
 

Private Member Functions

bool checkDetectPersons (const SumoXMLTag currentTag, const std::string &id, const std::string &detectPersons)
 check detect persons
 
void checkParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok)
 check parents
 
 GNEAdditionalHandler ()
 invalidate default constructo
 
 GNEAdditionalHandler (const GNEAdditionalHandler &s)=delete
 invalidate copy constructor
 
GNEAdditionalHandleroperator= (const GNEAdditionalHandler &s)=delete
 invalidate assignment operator
 
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
 
void parseParameters (const SUMOSAXAttributes &attrs)
 parse generic parameters
 

Private Attributes

GNEAdditionalmyAdditionalToOverwrite = nullptr
 additional to overwrite (using undor-redo
 
const bool myAllowUndoRedo
 allow undo/redo
 
CommonXMLStructure myCommonXMLStructure
 common XML Structure
 
bool myErrorCreatingElement = false
 flag for check if a element wasn't created
 
GNENetmyNet
 pointer to GNENet
 
const bool myOverwrite
 check if overwrite
 

Detailed Description

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

Definition at line 41 of file GNEAdditionalHandler.h.

Constructor & Destructor Documentation

◆ GNEAdditionalHandler() [1/3]

GNEAdditionalHandler::GNEAdditionalHandler ( GNENet net,
const bool  allowUndoRedo,
const bool  overwrite 
)

Constructor.

Definition at line 68 of file GNEAdditionalHandler.cpp.

◆ ~GNEAdditionalHandler()

GNEAdditionalHandler::~GNEAdditionalHandler ( )

Destructor.

Definition at line 75 of file GNEAdditionalHandler.cpp.

◆ GNEAdditionalHandler() [2/3]

GNEAdditionalHandler::GNEAdditionalHandler ( )
private

invalidate default constructo

Definition at line 2196 of file GNEAdditionalHandler.cpp.

◆ GNEAdditionalHandler() [3/3]

GNEAdditionalHandler::GNEAdditionalHandler ( const GNEAdditionalHandler s)
privatedelete

invalidate copy constructor

Member Function Documentation

◆ accessCanBeCreated()

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

check if a GNEAccess can be created in a certain Edge

Definition at line 1828 of file GNEAdditionalHandler.cpp.

References GNEHierarchicalElement::getChildAdditionals(), GNEEdge::getLanes(), and SUMO_ATTR_LANE.

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 44 of file AdditionalHandler.cpp.

References CommonXMLStructure::abortSUMOBaseOBject(), GNE_TAG_CALIBRATOR_LANE, GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, AdditionalHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), AdditionalHandler::parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::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 AdditionalHandler::writeError().

Referenced by GNEGeneralHandler::beginTag().

Here is the caller graph for this function:

◆ buildAccess()

void 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()

void 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 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]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 80 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEBusStop::buildBusStop(), checkDuplicatedID(), checkLaneDoublePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_TAG_BUS_STOP, SUMO_TAG_LANE, SUMO_TAG_TRAIN_STOP, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildCalibratorFlow()

◆ buildChargingStation()

void 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 270 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLaneDoublePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_CHARGEDELAY, SUMO_ATTR_CHARGINGPOWER, SUMO_TAG_CHARGING_STATION, SUMO_TAG_LANE, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildClosingLaneReroute()

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

◆ buildClosingReroute()

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

◆ buildContainerStop()

void 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 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]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 227 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLaneDoublePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_PARKING_LENGTH, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_LANE, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildDestProbReroute()

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

◆ buildDetectorE1Instant()

void 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 704 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANE, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildDetectorE3()

void 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 GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), E3, GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), myAllowUndoRedo, myNet, overwriteAdditional(), SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_ENTRY_EXIT_DETECTOR, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), writeErrorInvalidVTypes(), and writeInvalidID().

◆ buildDetectorEntry()

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

◆ buildDetectorExit()

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

◆ buildE1Detector()

void 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 413 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_PERIOD, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_LANE, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), writeErrorInvalidVTypes(), and writeInvalidID().

◆ buildEdgeCalibrator()

void 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 800 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEAdditionalHandler::NeteditParameters::centerAfterCreation, GUISUMOAbstractView::centerTo(), checkDuplicatedID(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEEdge::getLanes(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_CALIBRATOR_LANE, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_CALIBRATOR, SUMO_TAG_EDGE, SUMO_TAG_ROUTEPROBE, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildJpsObstacle()

void 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 1800 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_JPS_OBSTACLE, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), NamespaceIDs::polygons, TL, writeErrorDuplicated(), and writeInvalidID().

Referenced by buildPolygon().

Here is the caller graph for this function:

◆ buildJpsWalkableArea()

void 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 1772 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_JPS_WALKABLEAREA, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), NamespaceIDs::polygons, TL, writeErrorDuplicated(), and writeInvalidID().

Referenced by buildPolygon().

Here is the caller graph for this function:

◆ buildLaneCalibrator()

void 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 745 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEAdditionalHandler::NeteditParameters::centerAfterCreation, GUISUMOAbstractView::centerTo(), checkDuplicatedID(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_CALIBRATOR_LANE, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_CALIBRATOR, SUMO_TAG_LANE, SUMO_TAG_ROUTEPROBE, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildMultiLaneDetectorE2()

void 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 528 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEAdditional::areLaneConsecutives(), GNEUndoList::begin(), checkDuplicatedID(), checkMultiLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_MULTI_LANE_AREA_DETECTOR, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), SUMOXMLDefinitions::isValidNetID(), myAllowUndoRedo, myNet, overwriteAdditional(), parseLanes(), SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_HALTING_TIME_THRESHOLD, SUMO_ATTR_JAM_DIST_THRESHOLD, SUMO_ATTR_PERIOD, SUMO_TAG_LANE_AREA_DETECTOR, TL, TLF, AdditionalHandler::writeError(), writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidLanes(), writeErrorInvalidNegativeValue(), writeErrorInvalidPosition(), writeErrorInvalidVTypes(), and writeInvalidID().

◆ buildOverheadWire()

void 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 1557 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEAdditional::areLaneConsecutives(), GNEUndoList::begin(), checkDuplicatedID(), checkMultiLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), parseLanes(), GNENetHelper::AttributeCarriers::retrieveAdditional(), SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_TRACTION_SUBSTATION, TL, TLF, AdditionalHandler::writeError(), writeErrorDuplicated(), writeErrorInvalidLanes(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildOverheadWireClamp()

void 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 1608 of file GNEAdditionalHandler.cpp.

◆ buildParkingArea()

void 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 315 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLaneDoublePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_LENGTH, SUMO_ATTR_ROADSIDE_CAPACITY, SUMO_ATTR_WIDTH, SUMO_const_laneWidth, SUMO_TAG_LANE, SUMO_TAG_PARKING_AREA, TL, TLF, AdditionalHandler::writeError(), writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildParkingAreaReroute()

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

◆ buildParkingSpace()

void 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()

void 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,
bool  relativePath,
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]relativePathset image file as relative path
[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 1651 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), SUMOXMLDefinitions::isValidFilename(), myAllowUndoRedo, myNet, overwriteAdditional(), NamespaceIDs::POIs, SUMO_ATTR_HEIGHT, SUMO_ATTR_WIDTH, SUMO_TAG_POI, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), and writeInvalidID().

◆ buildPOIGeo()

void 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,
bool  relativePath,
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]relativePathset image file as relative path
[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 1734 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GeoConvHelper::getFinal(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), SUMOXMLDefinitions::isValidFilename(), myAllowUndoRedo, myNet, overwriteAdditional(), POIGEO, NamespaceIDs::POIs, SUMO_ATTR_HEIGHT, SUMO_ATTR_WIDTH, SUMO_TAG_POI, TL, TLF, AdditionalHandler::writeError(), writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), and writeInvalidID().

◆ buildPOILane()

void 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 bool  relativePath,
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]relativePathset image file as relative path
[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 1687 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), SUMOXMLDefinitions::isValidFilename(), myAllowUndoRedo, myNet, overwriteAdditional(), NamespaceIDs::POIs, GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_HEIGHT, SUMO_ATTR_WIDTH, SUMO_TAG_LANE, SUMO_TAG_POI, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildPolygon()

void 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 bool  relativePath,
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]relativePathset image file as relative path
[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 1616 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), buildJpsObstacle(), buildJpsWalkableArea(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), NamespaceIDs::polygons, SUMO_ATTR_LINEWIDTH, SUMO_TAG_POLY, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), and writeInvalidID().

◆ buildRerouter()

void 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

◆ buildRerouterInterval()

◆ buildRouteProbe()

void 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 1132 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEAdditionalHandler::NeteditParameters::centerAfterCreation, GUISUMOAbstractView::centerTo(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEAdditional::getPositionInView(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), SUMOXMLDefinitions::isValidFilename(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_ATTR_BEGIN, SUMO_ATTR_PERIOD, SUMO_TAG_EDGE, SUMO_TAG_ROUTEPROBE, TL, writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), and writeInvalidID().

◆ buildRouteProbReroute()

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

◆ buildSingleLaneDetectorE2()

void 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 459 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkFriendlyPosSmallLanes(), checkLanePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNE_TAG_MULTI_LANE_AREA_DETECTOR, GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), SUMOXMLDefinitions::isValidNetID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), 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, AdditionalHandler::writeError(), writeErrorDuplicated(), writeErrorInvalidFilename(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), writeErrorInvalidVTypes(), and writeInvalidID().

◆ buildTAZ()

void 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

◆ buildTAZSink()

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

◆ buildTAZSource()

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

◆ buildTractionSubstation()

void 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 1526 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), SUMO_ATTR_CURRENTLIMIT, SUMO_ATTR_VOLTAGE, SUMO_TAG_TRACTION_SUBSTATION, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), and writeInvalidID().

◆ buildTrainStop()

void 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 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]parametersgeneric parameters

Implements AdditionalHandler.

Definition at line 124 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), GNEBusStop::buildTrainStop(), checkDuplicatedID(), checkLaneDoublePosition(), GNEUndoList::end(), GNENet::getAttributeCarriers(), NBEdge::getFinalLength(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_PERSON_CAPACITY, SUMO_TAG_BUS_STOP, SUMO_TAG_LANE, SUMO_TAG_TRAIN_STOP, TL, writeErrorDuplicated(), writeErrorInvalidNegativeValue(), writeErrorInvalidParent(), writeErrorInvalidPosition(), and writeInvalidID().

◆ buildVaporizer()

void 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

◆ buildVariableSpeedSign()

void 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

check conditions

Implements AdditionalHandler.

Definition at line 1178 of file GNEAdditionalHandler.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::addChildElement(), GNEUndoList::begin(), checkDuplicatedID(), checkListOfVehicleTypes(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertAdditional(), SUMOXMLDefinitions::isValidAdditionalID(), myAllowUndoRedo, myNet, overwriteAdditional(), parseLanes(), SUMO_TAG_VSS, TL, writeErrorDuplicated(), writeErrorInvalidVTypes(), and writeInvalidID().

◆ buildVariableSpeedSignStep()

◆ checkDetectPersons()

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

check detect persons

Definition at line 1943 of file AdditionalHandler.cpp.

References StringBijection< T >::hasString(), SUMOXMLDefinitions::PersonModeValues, SUMO_ATTR_DETECT_PERSONS, TLF, toString(), and AdditionalHandler::writeError().

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

Here is the caller graph for this function:

◆ checkDuplicatedID()

bool GNEAdditionalHandler::checkDuplicatedID ( const std::vector< SumoXMLTag tags,
const std::string &  id 
)
protected

◆ checkFriendlyPosSmallLanes()

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

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 1912 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 
)
static

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

References INVALID_DOUBLE.

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

Here is the caller graph for this function:

◆ checkLanePosition()

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

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

Referenced by buildAccess(), buildDetectorE1Instant(), buildDetectorEntry(), buildDetectorExit(), buildE1Detector(), buildEdgeCalibrator(), buildLaneCalibrator(), buildPOILane(), buildSingleLaneDetectorE2(), checkMultiLanePosition(), GNEAccess::getAdditionalProblem(), GNEEntryExitDetector::getAdditionalProblem(), GNEInductionLoopDetector::getAdditionalProblem(), GNEInstantInductionLoopDetector::getAdditionalProblem(), and GNEPOI::getAdditionalProblem().

Here is the caller graph for this function:

◆ checkListOfVehicleTypes()

bool GNEAdditionalHandler::checkListOfVehicleTypes ( const std::vector< std::string > &  vTypeIDs) const
protected

check list of IDs

Definition at line 2080 of file GNEAdditionalHandler.cpp.

References SUMOXMLDefinitions::isValidTypeID().

Referenced by 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 
)
static

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

References checkLanePosition().

Referenced by buildMultiLaneDetectorE2(), and buildOverheadWire().

Here is the caller graph for this function:

◆ checkOverlappingRerouterIntervals()

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

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

Definition at line 1842 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:

◆ checkParent()

◆ endParseAttributes()

◆ fixLaneDoublePosition()

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

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

References INVALID_DOUBLE.

Referenced by GNEStoppingPlace::fixAdditionalProblem().

Here is the caller graph for this function:

◆ fixLanePosition()

void GNEAdditionalHandler::fixLanePosition ( double &  pos,
double &  length,
const double  laneLength 
)
static

fix given position over lane

Parameters
[in]pospos position of element over lane
[in]laneLengthLength of the lane

Definition at line 1891 of file GNEAdditionalHandler.cpp.

Referenced by GNEAccess::fixAdditionalProblem(), GNEEntryExitDetector::fixAdditionalProblem(), GNEInductionLoopDetector::fixAdditionalProblem(), GNEInstantInductionLoopDetector::fixAdditionalProblem(), GNELaneAreaDetector::fixAdditionalProblem(), GNEPOI::fixAdditionalProblem(), fixMultiLanePosition(), and GNEDetector::getGeometryPositionOverLane().

Here is the caller graph for this function:

◆ fixMultiLanePosition()

void GNEAdditionalHandler::fixMultiLanePosition ( double  fromPos,
const double  fromLaneLength,
double  toPos,
const double  tolaneLength 
)
static

fix the given positions over two lanes

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

Definition at line 2013 of file GNEAdditionalHandler.cpp.

References fixLanePosition().

Referenced by GNELaneAreaDetector::fixAdditionalProblem(), and GNEOverheadWire::fixAdditionalProblem().

Here is the caller graph for this function:

◆ getAdditionalParent()

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

◆ getRerouterIntervalParent()

◆ isErrorCreatingElement()

bool AdditionalHandler::isErrorCreatingElement ( ) const
inherited

get flag for check if a element wasn't created

Definition at line 728 of file AdditionalHandler.cpp.

References AdditionalHandler::myErrorCreatingElement.

Referenced by GNEGeneralHandler::isErrorCreatingElement().

Here is the caller graph for this function:

◆ operator=()

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

invalidate assignment operator

◆ overwriteAdditional()

◆ parseAccessAttributes()

◆ parseBusStopAttributes()

◆ parseCalibratorAttributes()

◆ parseCalibratorFlowAttributes()

◆ parseChargingStationAttributes()

◆ parseClosingLaneRerouteAttributes()

void AdditionalHandler::parseClosingLaneRerouteAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseClosingRerouteAttributes()

void AdditionalHandler::parseClosingRerouteAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseContainerStopAttributes()

◆ parseDestProbRerouteAttributes()

void AdditionalHandler::parseDestProbRerouteAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseE1Attributes()

◆ parseE1InstantAttributes()

◆ parseE2Attributes()

◆ parseE3Attributes()

◆ parseEdges()

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

parse edges

Definition at line 2124 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), SUMO_TAG_EDGE, TLF, toString(), and AdditionalHandler::writeError().

Referenced by buildRerouter(), and buildTAZ().

Here is the caller graph for this function:

◆ parseEntryAttributes()

◆ parseExitAttributes()

◆ parseJpsObstacleAttributes()

void AdditionalHandler::parseJpsObstacleAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseJpsWalkableAreaAttributes()

void AdditionalHandler::parseJpsWalkableAreaAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseLanes()

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

parse lanes

Definition at line 2142 of file GNEAdditionalHandler.cpp.

References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_TAG_LANE, TLF, toString(), and AdditionalHandler::writeError().

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

Here is the caller graph for this function:

◆ parseOverheadWire()

◆ parseOverheadWireClamp()

void AdditionalHandler::parseOverheadWireClamp ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseParameters()

void AdditionalHandler::parseParameters ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseParkingAreaAttributes()

◆ parseParkingAreaRerouteAttributes()

◆ parseParkingSpaceAttributes()

◆ parsePOIAttributes()

void AdditionalHandler::parsePOIAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parsePolyAttributes()

◆ parseRerouterAttributes()

◆ parseRerouterIntervalAttributes()

void AdditionalHandler::parseRerouterIntervalAttributes ( const SUMOSAXAttributes attrs)
privateinherited

parse rerouter interval attributes

Definition at line 1457 of file AdditionalHandler.cpp.

References CommonXMLStructure::SumoBaseObject::addTimeAttribute(), AdditionalHandler::checkParent(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getSUMOTimeReporting(), AdditionalHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, and SUMO_TAG_REROUTER.

Referenced by AdditionalHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseRouteProbeAttributes()

◆ parseRouteProbRerouteAttributes()

void AdditionalHandler::parseRouteProbRerouteAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseSumoBaseObject()

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

parse SumoBaseObject (it's called recursivelly)

Definition at line 249 of file AdditionalHandler.cpp.

References AdditionalHandler::buildAccess(), AdditionalHandler::buildBusStop(), AdditionalHandler::buildCalibratorFlow(), AdditionalHandler::buildChargingStation(), AdditionalHandler::buildClosingLaneReroute(), AdditionalHandler::buildClosingReroute(), AdditionalHandler::buildContainerStop(), AdditionalHandler::buildDestProbReroute(), AdditionalHandler::buildDetectorE1Instant(), AdditionalHandler::buildDetectorE3(), AdditionalHandler::buildDetectorEntry(), AdditionalHandler::buildDetectorExit(), AdditionalHandler::buildE1Detector(), AdditionalHandler::buildEdgeCalibrator(), AdditionalHandler::buildJpsObstacle(), AdditionalHandler::buildJpsWalkableArea(), AdditionalHandler::buildLaneCalibrator(), AdditionalHandler::buildMultiLaneDetectorE2(), AdditionalHandler::buildOverheadWire(), AdditionalHandler::buildOverheadWireClamp(), AdditionalHandler::buildParkingArea(), AdditionalHandler::buildParkingAreaReroute(), AdditionalHandler::buildParkingSpace(), AdditionalHandler::buildPOI(), AdditionalHandler::buildPOIGeo(), AdditionalHandler::buildPOILane(), AdditionalHandler::buildPolygon(), AdditionalHandler::buildRerouter(), AdditionalHandler::buildRerouterInterval(), AdditionalHandler::buildRouteProbe(), AdditionalHandler::buildRouteProbReroute(), AdditionalHandler::buildSingleLaneDetectorE2(), AdditionalHandler::buildTAZ(), AdditionalHandler::buildTAZSink(), AdditionalHandler::buildTAZSource(), AdditionalHandler::buildTractionSubstation(), AdditionalHandler::buildTrainStop(), AdditionalHandler::buildVaporizer(), AdditionalHandler::buildVariableSpeedSign(), AdditionalHandler::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(), AdditionalHandler::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_RELATIVEPATH, 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 GNEShapeFrame::addShape(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), AdditionalHandler::endParseAttributes(), GNEViewNet::onCmdTransformPOI(), AdditionalHandler::parseSumoBaseObject(), and GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ parseTAZAttributes()

◆ parseTAZSinkAttributes()

void AdditionalHandler::parseTAZSinkAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseTAZSourceAttributes()

void AdditionalHandler::parseTAZSourceAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseTractionSubstation()

◆ parseTrainStopAttributes()

◆ parseVaporizerAttributes()

void AdditionalHandler::parseVaporizerAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseVariableSpeedSignAttributes()

void AdditionalHandler::parseVariableSpeedSignAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ parseVariableSpeedSignStepAttributes()

void AdditionalHandler::parseVariableSpeedSignStepAttributes ( const SUMOSAXAttributes attrs)
privateinherited

◆ writeError()

◆ writeErrorDuplicated()

void GNEAdditionalHandler::writeErrorDuplicated ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

◆ writeErrorInvalidFilename()

void GNEAdditionalHandler::writeErrorInvalidFilename ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

write error "invalid filename"

Definition at line 2068 of file GNEAdditionalHandler.cpp.

References TL, TLF, toString(), and AdditionalHandler::writeError().

Referenced by buildDetectorE1Instant(), buildDetectorE3(), buildE1Detector(), buildMultiLaneDetectorE2(), buildPOI(), buildPOIGeo(), buildPOILane(), buildRouteProbe(), and buildSingleLaneDetectorE2().

Here is the caller graph for this function:

◆ writeErrorInvalidLanes()

void GNEAdditionalHandler::writeErrorInvalidLanes ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

write error "invalid list of lanes"

Definition at line 2074 of file GNEAdditionalHandler.cpp.

References TL, TLF, toString(), and AdditionalHandler::writeError().

Referenced by buildMultiLaneDetectorE2(), and buildOverheadWire().

Here is the caller graph for this function:

◆ writeErrorInvalidNegativeValue()

void GNEAdditionalHandler::writeErrorInvalidNegativeValue ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLAttr  attribute 
)
protected

◆ writeErrorInvalidParent()

void GNEAdditionalHandler::writeErrorInvalidParent ( const SumoXMLTag  tag,
const std::string &  id,
const SumoXMLTag  parent,
const std::string &  parentID 
)
protected

◆ writeErrorInvalidPosition()

void GNEAdditionalHandler::writeErrorInvalidPosition ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

write error "invalid position"

Definition at line 2027 of file GNEAdditionalHandler.cpp.

References TL, TLF, toString(), and AdditionalHandler::writeError().

Referenced by buildAccess(), buildBusStop(), buildChargingStation(), buildContainerStop(), buildDetectorE1Instant(), buildDetectorEntry(), buildDetectorExit(), buildE1Detector(), buildEdgeCalibrator(), buildLaneCalibrator(), buildMultiLaneDetectorE2(), buildOverheadWire(), buildParkingArea(), buildPOILane(), buildSingleLaneDetectorE2(), and buildTrainStop().

Here is the caller graph for this function:

◆ writeErrorInvalidVTypes()

void GNEAdditionalHandler::writeErrorInvalidVTypes ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

write error "invalid list of vehicle types"

Definition at line 2062 of file GNEAdditionalHandler.cpp.

References TL, TLF, toString(), and AdditionalHandler::writeError().

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

Here is the caller graph for this function:

◆ writeInvalidID()

void GNEAdditionalHandler::writeInvalidID ( const SumoXMLTag  tag,
const std::string &  id 
)
protected

Field Documentation

◆ myAdditionalToOverwrite

GNEAdditional* GNEAdditionalHandler::myAdditionalToOverwrite = nullptr
private

additional to overwrite (using undor-redo

Definition at line 773 of file GNEAdditionalHandler.h.

Referenced by checkDuplicatedID(), and overwriteAdditional().

◆ myAllowUndoRedo

◆ myCommonXMLStructure

CommonXMLStructure AdditionalHandler::myCommonXMLStructure
privateinherited

common XML Structure

Definition at line 635 of file AdditionalHandler.h.

Referenced by AdditionalHandler::beginParseAttributes(), AdditionalHandler::checkParent(), AdditionalHandler::endParseAttributes(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), AdditionalHandler::parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), AdditionalHandler::parseTAZAttributes(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), and AdditionalHandler::parseVariableSpeedSignStepAttributes().

◆ myErrorCreatingElement

bool AdditionalHandler::myErrorCreatingElement = false
privateinherited

flag for check if a element wasn't created

Definition at line 638 of file AdditionalHandler.h.

Referenced by AdditionalHandler::isErrorCreatingElement(), and AdditionalHandler::writeError().

◆ myNet

◆ myOverwrite

const bool GNEAdditionalHandler::myOverwrite
private

check if overwrite

Definition at line 770 of file GNEAdditionalHandler.h.

Referenced by checkDuplicatedID().


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