138 Position getLanePos(
const std::string& poiID,
const std::string& laneID,
double lanePos,
double lanePosLat);
170 const double startPos,
const double endPos,
const int parametersSet,
171 const std::string& name,
const std::vector<std::string>& lines,
int personCapacity,
double parkingLength,
172 bool friendlyPosition,
bool blockMovement);
203 const std::string& name,
const std::vector<std::string>& lines,
bool friendlyPosition,
bool blockMovement);
223 const std::string& name,
double chargingPower,
double efficiency,
bool chargeInTransit,
SUMOTime chargeDelay,
bool friendlyPosition,
bool blockMovement);
243 const std::string& name,
bool friendlyPosition,
int roadSideCapacity,
bool onRoad,
double width,
const std::string& length,
double angle,
bool blockMovement);
275 const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement);
298 const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
299 double jamThreshold,
bool friendlyPos,
bool blockMovement);
321 static GNEAdditional*
buildMultiLaneDetectorE2(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
const std::vector<GNELane*>& lanes,
double pos,
double endPos,
const std::string& freq,
const std::string& trafficLight,
322 const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
double jamThreshold,
323 bool friendlyPos,
bool blockMovement);
340 static GNEAdditional*
buildDetectorE3(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
Position pos,
SUMOTime freq,
const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
bool blockMovement);
382 static GNEAdditional*
buildDetectorE1Instant(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
GNELane* lane,
double pos,
const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement);
398 static GNEAdditional*
buildCalibrator(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
GNELane* lane,
double pos,
const std::string& name,
const std::string& outfile,
SUMOTime freq,
const std::string& routeprobe,
bool centerAfterCreation);
415 static GNEAdditional*
buildCalibrator(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
GNEEdge* edge,
double pos,
const std::string& name,
const std::string& outfile,
SUMOTime freq,
const std::string& routeprobe,
bool centerAfterCreation);
443 const std::string& vehsPerHour,
const std::string& speed,
const RGBColor& color,
const std::string& departLane,
const std::string& departPos,
444 const std::string& departSpeed,
const std::string& arrivalLane,
const std::string& arrivalPos,
const std::string& arrivalSpeed,
445 const std::string& line,
int personNumber,
int containerNumber,
bool reroute,
const std::string& departPosLat,
460 static GNEAdditional*
buildRerouter(
GNENet* net,
bool allowUndoRedo,
const std::string&
id,
Position pos,
const std::vector<GNEEdge*>& edges,
double prob,
const std::string& name,
const std::string& file,
bool off,
SUMOTime timeThreshold,
const std::string& vTypes,
bool blockMovement);
589 double getPosition(
double pos,
GNELane& lane,
bool friendlyPos,
const std::string& additionalID);
606 static bool fixE2DetectorPosition(
double& pos,
double& length,
const double laneLength,
const bool friendlyPos);
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
SumoXMLTag
Numbers representing SUMO-XML - element names.
Stack used to save the last inserted element.
std::vector< StackElement > myInsertedElements
vector used as stack
GNEShape * getLastInsertedShape() const
return last inserted shape
GNETAZElement * getTAZElementParent(GNENet *net, SumoXMLTag expectedTag) const
retrieve parent TAZElement correspond to current status of myInsertedElements
void commitTAZElementInsertion(GNETAZElement *TAZElementCreated)
commit TAZElement element insertion (used to save last correct created element)
GNETAZElement * getLastInsertedTAZElement() const
return last inserted TAZElement
GNEAdditional * getLastInsertedAdditional() const
return last inserted additional
void commitAdditionalInsertion(GNEAdditional *additionalCreated)
commit additional element insertion (used to save last correct created element)
void commitShapeInsertion(GNEShape *shapeCreated)
commit shape element insertion (used to save last correct created element)
void popElement()
pop last inserted element (used only in function myEndElement)
GNEShape * getShapeParent(GNENet *net, SumoXMLTag expectedTag) const
retrieve parent shape correspond to current status of myInsertedElements
void insertElement(SumoXMLTag tag)
insert new element (called only in function myStartElement)
GNEAdditional * getAdditionalParent(GNENet *net, SumoXMLTag expectedTag) const
retrieve parent additional correspond to current status of myInsertedElements
Builds additional objects for GNENet (busStops, chargingStations, detectors, etc.....
static bool checkOverlappingRerouterIntervals(GNEAdditional *rerouter, SUMOTime newBegin, SUMOTime newEnd)
check if an overlapping is produced in rerouter if a interval with certain begin and end is inserted
static bool checkAndFixDetectorPosition(double &pos, const double laneLength, const bool friendlyPos)
check if the position of a detector over a lane is valid
static bool parseAndBuildTAZSource(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Builds a TAZ Source.
static bool parseAndBuildRerouterClosingLaneReroute(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Closing Lane reroute.
static bool parseAndBuildTAZSink(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Builds a TAZ Sink.
static GNEAdditional * buildMultiLaneDetectorE2(GNENet *net, bool allowUndoRedo, const std::string &id, const std::vector< GNELane * > &lanes, double pos, double endPos, const std::string &freq, const std::string &trafficLight, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
Builds a multi-lane Area Detector (E2)
~GNEAdditionalHandler()
Destructor.
static GNEAdditional * buildChargingStation(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, double chargingPower, double efficiency, bool chargeInTransit, SUMOTime chargeDelay, bool friendlyPosition, bool blockMovement)
Builds a charging Station.
void parseAndBuildPoly(const SUMOSAXAttributes &attrs)
Parses his values and builds a Poly.
static GNEAdditional * buildVaporizer(GNENet *net, bool allowUndoRedo, GNEEdge *edge, SUMOTime start, SUMOTime endTime, const std::string &name, bool centerAfterCreation)
Builds a vaporizer (lane speed additional)
static bool parseAndBuildBusStop(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a bus stop.
static bool parseAndBuildDetectorExit(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Exit detector.
static GNEAdditional * buildBusStop(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, int personCapacity, double parkingLength, bool friendlyPosition, bool blockMovement)
Builds a bus stop.
static GNEAdditional * buildClosingLaneReroute(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNELane *closedLane, SVCPermissions permissions)
static bool parseAndBuildParkingSpace(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a parking space.
static GNEAdditional * buildVariableSpeedSign(GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, const std::vector< GNELane * > &destLanes, const std::string &name, bool blockMovement)
Builds a VariableSpeedSign (lane speed additional)
static bool buildAdditional(GNENet *net, bool allowUndoRedo, SumoXMLTag tag, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Build additionals.
static bool parseAndBuildRerouter(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a rerouter.
static GNEAdditional * builParkingAreaReroute(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEAdditional *newParkignArea, double probability, bool visible)
static bool accessCanBeCreated(GNEAdditional *busStopParent, GNEEdge *edge)
check if a GNEAccess can be created in a certain Edge
static bool parseAndBuildCalibratorFlow(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses flow values of Calibrators.
static bool parseAndBuildRerouterClosingReroute(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Closing Reroute.
static GNEAdditional * buildDetectorE1(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
Builds a induction loop detector (E1)
static bool parseAndBuildChargingStation(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a charging station.
static GNEAdditional * builDestProbReroute(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability)
static GNEAdditional * buildClosingReroute(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, GNEEdge *closedEdge, SVCPermissions permissions)
static GNETAZElement * buildTAZSink(GNENet *net, bool allowUndoRedo, GNETAZElement *TAZ, GNEEdge *edge, double arrivalWeight)
Builds a TAZSink (Traffic Assignment Zone)
static GNEAdditional * buildDetectorE3(GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement)
Builds a multi entry exit detector (E3)
static bool parseAndBuildVaporizer(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Builds a Vaporizer.
static bool fixE2DetectorPosition(double &pos, double &length, const double laneLength, const bool friendlyPos)
check if the position of a detector over a lane is valid
double getPosition(double pos, GNELane &lane, bool friendlyPos, const std::string &additionalID)
extracts the position, checks whether it shall be mirrored and checks whether it is within the lane.
static bool parseAndBuildRerouterParkingAreaReroute(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a parkingAreaReroute.
static bool parseAndBuildCalibrator(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a mesoscopic or microscopic calibrator.
static bool parseAndBuildTAZ(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Builds a TAZ.
LastInsertedElement * myLastInsertedElement
LastInsertedElement used for insert children.
static GNETAZElement * buildTAZSource(GNENet *net, bool allowUndoRedo, GNETAZElement *TAZ, GNEEdge *edge, double departWeight)
Builds a TAZSource (Traffic Assignment Zone)
static bool parseAndBuildRouteProbe(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds routeProbe.
static bool parseAndBuildDetectorE1(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a induction loop detector (GNENet *net, bool allowUndoRedo,...
static GNEAdditional * buildSingleLaneDetectorE2(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, double length, const std::string &freq, const std::string &trafficLight, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
Builds a single-lane Area Detector (E2)
static GNEAdditional * buildParkingArea(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, bool friendlyPosition, int roadSideCapacity, bool onRoad, double width, const std::string &length, double angle, bool blockMovement)
Builds a Parking Area.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
static bool parseAndBuildRerouterInterval(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Rerouter Interval.
static GNEAdditional * buildRouteProbe(GNENet *net, bool allowUndoRedo, const std::string &id, GNEEdge *edge, const std::string &freq, const std::string &name, const std::string &file, SUMOTime begin, bool centerAfterCreation)
builds a Route probe
static GNEAdditional * buildDetectorEntry(GNENet *net, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
Builds a entry detector (E3)
GNEAdditionalHandler(const std::string &file, GNENet *net, GNEAdditional *additionalParent=nullptr)
Constructor.
static bool parseAndBuildDetectorE1Instant(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Instant induction loop detector (GNENet *net, bool allowUndoRedo,...
GNEAdditionalHandler(const GNEAdditionalHandler &s)=delete
invalidate copy constructor
static bool parseAndBuildParkingArea(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a parking area.
static GNEAdditional * buildVariableSpeedSignStep(GNENet *net, bool allowUndoRedo, GNEAdditional *VSSParent, double time, double speed)
Builds a VariableSpeedSign Step.
static GNEAdditional * buildCalibrator(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &name, const std::string &outfile, SUMOTime freq, const std::string &routeprobe, bool centerAfterCreation)
builds a microscopic calibrator over a lane
void myEndElement(int element)
Called when a closing tag occurs.
static GNETAZElement * buildTAZ(GNENet *net, bool allowUndoRedo, const std::string &id, const PositionVector &shape, const RGBColor &color, const std::vector< GNEEdge * > &edges, bool blockMovement)
Builds a TAZ (Traffic Assignment Zone)
static bool parseAndBuildDetectorE3(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a multi entry exit detector (GNENet *net, bool allowUndoRedo,...
static GNEAdditional * buildRerouter(GNENet *net, bool allowUndoRedo, const std::string &id, Position pos, const std::vector< GNEEdge * > &edges, double prob, const std::string &name, const std::string &file, bool off, SUMOTime timeThreshold, const std::string &vTypes, bool blockMovement)
builds a rerouter
static bool parseAndBuildVariableSpeedSign(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Variable Speed Signal (GNENet *net, bool allowUndoRedo,...
GNEAdditionalHandler & operator=(const GNEAdditionalHandler &s)=delete
invalidate assignment operator
static GNEAdditional * buildDetectorExit(GNENet *net, bool allowUndoRedo, GNEAdditional *E3Parent, GNELane *lane, double pos, bool friendlyPos, bool blockMovement)
Builds a exit detector (E3)
GNENet * myNet
pointer to net
static bool parseAndBuildDetectorE2(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a lane area detector (GNENet *net, bool allowUndoRedo,...
void parseAndBuildPOI(const SUMOSAXAttributes &attrs)
Parses his values and builds a POI.
static GNEAdditional * buildParkingSpace(GNENet *net, bool allowUndoRedo, GNEAdditional *parkingAreaParent, Position pos, double width, double length, double angle, bool blockMovement)
Builds a Parking Space.
static bool parseAndBuildContainerStop(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a container stop.
static GNEAdditional * buildRouteProbReroute(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterIntervalParent, const std::string &newRouteId, double probability)
static GNEAdditional * buildContainerStop(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, const double startPos, const double endPos, const int parametersSet, const std::string &name, const std::vector< std::string > &lines, bool friendlyPosition, bool blockMovement)
Builds a container stop.
void parseParameter(const SUMOSAXAttributes &attrs)
Parse parameter and insert it in the last created additional.
static GNEAdditional * buildRerouterInterval(GNENet *net, bool allowUndoRedo, GNEAdditional *rerouterParent, SUMOTime begin, SUMOTime end)
builds a rerouter interval
static GNEAdditional * buildDetectorE1Instant(GNENet *net, bool allowUndoRedo, const std::string &id, GNELane *lane, double pos, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
Builds a Instant Induction Loop Detector (E1Instant)
static GNEAdditional * buildAccess(GNENet *net, bool allowUndoRedo, GNEAdditional *busStop, GNELane *lane, double pos, const std::string &length, bool friendlyPos, bool blockMovement)
Builds an Access.
static bool parseAndBuildVariableSpeedSignStep(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Variable Speed Signal Step.
static GNEAdditional * buildCalibratorFlow(GNENet *net, bool allowUndoRedo, GNEAdditional *calibratorParent, GNEDemandElement *route, GNEDemandElement *vType, const std::string &vehsPerHour, const std::string &speed, const RGBColor &color, const std::string &departLane, const std::string &departPos, const std::string &departSpeed, const std::string &arrivalLane, const std::string &arrivalPos, const std::string &arrivalSpeed, const std::string &line, int personNumber, int containerNumber, bool reroute, const std::string &departPosLat, const std::string &arrivalPosLat, SUMOTime begin, SUMOTime end)
builds a calibrator flow
static bool parseAndBuildRerouterRouteProbReroute(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Route Prob Reroute.
static bool parseAndBuildRerouterDestProbReroute(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Destiny Prob Reroute.
static bool parseAndBuildAccess(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses values and adds access to the current bus stop.
Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
get lane position
static bool parseAndBuildDetectorEntry(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, LastInsertedElement *insertedAdditionals)
Parses his values and builds a Entry detector.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.
An Element which don't belongs to GNENet but has influency in the simulation.
A point in 2D or 3D with translation and scaling methods.
Encapsulated SAX-Attributes.
The XML-Handler for network loading.
StackElement(SumoXMLTag _tag)
constructor
GNETAZElement * TAZElement
TAZElement.
GNEAdditional * additional
additional