![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used for saving all attribute carriers of net, in different formats More...
#include <GNENetHelper.h>
Public Member Functions | |
AttributeCarriers (GNENet *net) | |
constructor More... | |
bool | isNetworkElementAroundShape (GNEAttributeCarrier *AC, const PositionVector &shape) const |
check if shape of given AC (network element) is around the given shape More... | |
void | remapJunctionAndEdgeIds () |
remap junction and edge IDs More... | |
~AttributeCarriers () | |
destructor More... | |
function for attribute carriers | |
GNEAttributeCarrier * | retrieveAttributeCarrier (const GUIGlID id, bool hardFail=true) const |
get a single attribute carrier based on a GLID More... | |
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (SumoXMLTag tag=SUMO_TAG_NOTHING) |
get the attribute carriers based on Type More... | |
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (Supermode supermode, const bool onlySelected) |
get the attribute carriers based on supermode and selected More... | |
std::vector< GNEAttributeCarrier * > | getSelectedAttributeCarriers (const bool ignoreCurrentSupermode) |
get all selected attribute carriers (or only relative to current supermode More... | |
function for junctions | |
GNEJunction * | retrieveJunction (const std::string &id, bool hardFail=true) const |
get junction by id More... | |
const std::map< std::string, GNEJunction * > & | getJunctions () const |
get junctions More... | |
std::vector< GNEJunction * > | getSelectedJunctions () const |
return selected junctions More... | |
GNEJunction * | registerJunction (GNEJunction *junction) |
registers a junction in GNENet containers More... | |
void | clearJunctions () |
clear junctions More... | |
void | updateJunctionID (GNEJunction *junction, const std::string &newID) |
update junction ID in container More... | |
int | getNumberOfSelectedJunctions () const |
get number of selected junctions More... | |
function for crossings | |
GNECrossing * | retrieveCrossing (GNEAttributeCarrier *AC, bool hardFail=true) const |
get Crossing by AC More... | |
const std::set< GNECrossing * > & | getCrossings () const |
get crossings More... | |
std::vector< GNECrossing * > | getSelectedCrossings () const |
return all selected crossings More... | |
void | insertCrossing (GNECrossing *crossing) |
insert crossing More... | |
void | deleteCrossing (GNECrossing *crossing) |
delete crossing More... | |
int | getNumberOfSelectedCrossings () const |
get number of selected crossings More... | |
function for walkingAreas | |
GNEWalkingArea * | retrieveWalkingArea (GNEAttributeCarrier *AC, bool hardFail=true) const |
get WalkingArea by AC More... | |
const std::set< GNEWalkingArea * > & | getWalkingAreas () const |
get walkingAreas More... | |
std::vector< GNEWalkingArea * > | getSelectedWalkingAreas () const |
return all selected walkingAreas More... | |
void | insertWalkingArea (GNEWalkingArea *walkingArea) |
insert walkingArea More... | |
void | deleteWalkingArea (GNEWalkingArea *walkingArea) |
delete walkingArea More... | |
int | getNumberOfSelectedWalkingAreas () const |
get number of selected walkingAreas More... | |
function for edgeTypes | |
GNEEdgeType * | retrieveEdgeType (const std::string &id, bool hardFail=true) const |
get edge type by id More... | |
GNEEdgeType * | registerEdgeType (GNEEdgeType *edgeType) |
registers a edge in GNENet containers More... | |
const std::map< std::string, GNEEdgeType * > & | getEdgeTypes () const |
map with the ID and pointer to edgeTypes of net More... | |
void | clearEdgeTypes () |
clear edgeTypes More... | |
void | updateEdgeTypeID (GNEEdgeType *edgeType, const std::string &newID) |
update edgeType ID in container More... | |
std::string | generateEdgeTypeID () const |
generate edgeType id More... | |
function for edges | |
GNEEdge * | retrieveEdge (const std::string &id, bool hardFail=true) const |
get edge by id More... | |
std::vector< GNEEdge * > | retrieveEdges (GNEJunction *from, GNEJunction *to) const |
get all edges by from and to GNEJunction More... | |
const std::map< std::string, GNEEdge * > & | getEdges () const |
map with the ID and pointer to edges of net More... | |
std::vector< GNEEdge * > | getSelectedEdges () const |
return all edges More... | |
GNEEdge * | registerEdge (GNEEdge *edge) |
registers an edge with GNENet containers More... | |
void | clearEdges () |
clear edges More... | |
void | updateEdgeID (GNEEdge *edge, const std::string &newID) |
update edge ID in container More... | |
int | getNumberOfSelectedEdges () const |
get number of selected edges More... | |
function for lanes | |
GNELane * | retrieveLane (const std::string &id, bool hardFail=true, bool checkVolatileChange=false) const |
get lane by id More... | |
GNELane * | retrieveLane (GNEAttributeCarrier *AC, bool hardFail=true) const |
get lane by Attribute Carrier More... | |
const std::set< GNELane * > & | getLanes () const |
get lanes More... | |
std::vector< GNELane * > | getSelectedLanes () const |
get selected lanes More... | |
void | insertLane (GNELane *lane) |
insert lane More... | |
void | deleteLane (GNELane *lane) |
delete lane More... | |
int | getNumberOfSelectedLanes () const |
get number of selected lanes More... | |
function for connections | |
GNEConnection * | retrieveConnection (const std::string &id, bool hardFail=true) const |
get Connection by id More... | |
GNEConnection * | retrieveConnection (GNEAttributeCarrier *AC, bool hardFail=true) const |
get connection by Attribute Carrier More... | |
const std::set< GNEConnection * > & | getConnections () const |
get connections More... | |
std::vector< GNEConnection * > | getSelectedConnections () const |
get selected connections More... | |
void | insertConnection (GNEConnection *connection) |
insert connection More... | |
void | deleteConnection (GNEConnection *connection) |
delete connection More... | |
int | getNumberOfSelectedConnections () const |
get number of selected connections More... | |
function for additionals | |
GNEAdditional * | retrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const |
Returns the named additional. More... | |
GNEAdditional * | retrieveAdditional (GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the named additional. More... | |
GNEAdditional * | retrieveRerouterInterval (const std::string &rerouterID, const SUMOTime begin, const SUMOTime end) const |
Returns the rerouter interval defined by given begin and end. More... | |
const std::map< SumoXMLTag, std::set< GNEAdditional * > > & | getAdditionals () const |
get additionals More... | |
std::vector< GNEAdditional * > | getSelectedAdditionals () const |
get selected additionals More... | |
std::vector< GNEAdditional * > | getSelectedShapes () const |
get selected shapes More... | |
int | getNumberOfAdditionals () const |
get number of additionals More... | |
void | clearAdditionals () |
clear additionals More... | |
std::string | generateAdditionalID (SumoXMLTag type) const |
generate additional id More... | |
int | getNumberOfSelectedAdditionals () const |
get number of selected additionals (Including POIs, Polygons, TAZs and Wires) More... | |
int | getNumberOfSelectedPureAdditionals () const |
get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires) More... | |
int | getNumberOfSelectedPolygons () const |
get number of selected polygons More... | |
int | getNumberOfSelectedPOIs () const |
get number of selected POIs More... | |
int | getNumberOfSelectedTAZs () const |
get number of selected TAZs More... | |
int | getNumberOfSelectedTAZSources () const |
get number of selected TAZSources More... | |
int | getNumberOfSelectedTAZSinks () const |
get number of selected TAZSinks More... | |
int | getNumberOfSelectedWires () const |
get number of selected Wires More... | |
function for demand elements | |
GNEDemandElement * | retrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const |
Returns the named demand element. More... | |
GNEDemandElement * | retrieveDemandElement (GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the named demand element. More... | |
std::vector< GNEDemandElement * > | getSelectedDemandElements () const |
get selected demand elements More... | |
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & | getDemandElements () const |
get demand elements More... | |
int | getNumberOfDemandElements () const |
Return the number of demand elements. More... | |
std::string | generateDemandElementID (SumoXMLTag tag) const |
generate demand element id More... | |
GNEDemandElement * | getDefaultType () const |
get default type More... | |
void | clearDemandElements () |
clear demand elements More... | |
void | addDefaultVTypes () |
add default VTypes More... | |
int | getStopIndex () |
get (and update) stop index More... | |
int | getNumberOfSelectedDemandElements () const |
get number of selected demand elements More... | |
int | getNumberOfSelectedRoutes () const |
get number of selected routes More... | |
int | getNumberOfSelectedVehicles () const |
get number of selected vehicles More... | |
int | getNumberOfSelectedPersons () const |
get number of selected persons More... | |
int | getNumberOfSelectedPersonTrips () const |
get number of selected person trips More... | |
int | getNumberOfSelectedWalks () const |
get number of selected walks More... | |
int | getNumberOfSelectedRides () const |
get number of selected rides More... | |
int | getNumberOfSelectedContainers () const |
get number of selected containers More... | |
int | getNumberOfSelectedTransport () const |
get number of selected transports More... | |
int | getNumberOfSelectedTranships () const |
get number of selected tranships More... | |
int | getNumberOfSelectedStops () const |
get number of selected stops More... | |
function for data sets | |
GNEDataSet * | retrieveDataSet (const std::string &id, bool hardFail=true) const |
Returns the named data set. More... | |
GNEDataSet * | retrieveDataSet (GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the named data set. More... | |
const std::set< GNEDataSet * > & | getDataSets () const |
get demand elements More... | |
std::string | generateDataSetID (const std::string &prefix) const |
generate data set id More... | |
function for data intervals | |
GNEDataInterval * | retrieveDataInterval (GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the data interval. More... | |
const std::set< GNEDataInterval * > & | getDataIntervals () const |
get all data intervals of network More... | |
void | insertDataInterval (GNEDataInterval *dataInterval) |
insert data interval More... | |
void | deleteDataInterval (GNEDataInterval *dataInterval) |
delete data interval More... | |
function for generic datas | |
GNEGenericData * | retrieveGenericData (GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the generic data. More... | |
std::vector< GNEGenericData * > | getSelectedGenericDatas () const |
get selected generic datas More... | |
const std::map< SumoXMLTag, std::set< GNEGenericData * > > & | getGenericDatas () const |
get all generic datas More... | |
std::vector< GNEGenericData * > | retrieveGenericDatas (const SumoXMLTag genericDataTag, const double begin, const double end) |
retrieve generic datas within the given interval More... | |
int | getNumberOfSelectedEdgeDatas () const |
get number of selected edge datas More... | |
int | getNumberOfSelectedEdgeRelDatas () const |
get number of selected edge rel datas More... | |
int | getNumberOfSelectedEdgeTAZRel () const |
get number of selected edge TAZ Rels More... | |
void | insertGenericData (GNEGenericData *genericData) |
insert generic data More... | |
void | deleteGenericData (GNEGenericData *genericData) |
delete generic data More... | |
std::set< std::string > | retrieveGenericDataParameters (const std::string &genericDataTag, const double begin, const double end) const |
return a set of parameters for the given data Interval More... | |
std::set< std::string > | retrieveGenericDataParameters (const std::string &dataSetID, const std::string &genericDataTag, const std::string &beginStr, const std::string &endStr) const |
return a set of parameters for the given dataSet, generic data Type, begin and end More... | |
Protected Member Functions | |
Insertion and erasing of GNEJunctions | |
inserts a single junction into the net and into the underlying netbuild-container | |
void | insertJunction (GNEJunction *junction) |
void | deleteSingleJunction (GNEJunction *junction) |
deletes a single junction More... | |
Insertion and erasing of GNEEdgeTypes | |
return true if given edgeType exist | |
bool | edgeTypeExist (const GNEEdgeType *edgeType) const |
void | insertEdgeType (GNEEdgeType *edgeType) |
inserts a single edgeType into the net and into the underlying netbuild-container More... | |
void | deleteEdgeType (GNEEdgeType *edgeType) |
deletes edgeType More... | |
Insertion and erasing of GNEEdges | |
inserts a single edge into the net and into the underlying netbuild-container | |
void | insertEdge (GNEEdge *edge) |
void | deleteSingleEdge (GNEEdge *edge) |
deletes a single edge More... | |
Insertion and erasing of GNEAdditionals items | |
bool | additionalExist (const GNEAdditional *additional) const |
return true if given additional exist More... | |
void | insertAdditional (GNEAdditional *additional) |
Insert a additional element int GNENet container. More... | |
void | deleteAdditional (GNEAdditional *additional) |
delete additional element of GNENet container More... | |
Insertion and erasing of GNEDemandElements items | |
bool | demandElementExist (GNEDemandElement *demandElement) const |
return true if given demand element exist More... | |
void | insertDemandElement (GNEDemandElement *demandElement) |
Insert a demand element element int GNENet container. More... | |
void | deleteDemandElement (GNEDemandElement *demandElement) |
delete demand element element of GNENet container More... | |
Insertion and erasing of data items | |
bool | dataSetExist (GNEDataSet *dataSet) const |
return true if given demand element exist More... | |
void | insertDataSet (GNEDataSet *dataSet) |
Insert a demand element element int GNENet container. More... | |
void | deleteDataSet (GNEDataSet *dataSet) |
delete demand element element of GNENet container More... | |
Private Member Functions | |
AttributeCarriers (const AttributeCarriers &)=delete | |
Invalidated copy constructor. More... | |
AttributeCarriers & | operator= (const AttributeCarriers &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
std::map< SumoXMLTag, std::set< GNEAdditional * > > | myAdditionals |
map with the tag and pointer to additional elements of net More... | |
std::set< GNEConnection * > | myConnections |
set with connetions More... | |
std::set< GNECrossing * > | myCrossings |
set with crossings More... | |
std::set< GNEDataInterval * > | myDataIntervals |
set with all data intervals of network More... | |
std::set< GNEDataSet * > | myDataSets |
set with the ID and pointer to all datasets of net More... | |
std::map< SumoXMLTag, std::set< GNEDemandElement * > > | myDemandElements |
map with the tag and pointer to demand elements of net More... | |
std::map< std::string, GNEEdge * > | myEdges |
map with the ID and pointer to edges of net More... | |
std::map< std::string, GNEEdgeType * > | myEdgeTypes |
map with the ID and pointer to edgeTypes of net More... | |
std::map< SumoXMLTag, std::set< GNEGenericData * > > | myGenericDatas |
map with the tag and pointer to all generic datas More... | |
std::map< std::string, GNEJunction * > | myJunctions |
map with the ID and pointer to junctions of net More... | |
std::set< GNELane * > | myLanes |
set with lanes More... | |
GNENet * | myNet |
pointer to net More... | |
int | myStopIndex |
stop index More... | |
std::set< GNEWalkingArea * > | myWalkingAreas |
set with walkingAreas More... | |
struct used for saving all attribute carriers of net, in different formats
Definition at line 71 of file GNENetHelper.h.
GNENetHelper::AttributeCarriers::AttributeCarriers | ( | GNENet * | net | ) |
constructor
Definition at line 45 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getTagPropertiesByType(), myAdditionals, myDemandElements, and myGenericDatas.
GNENetHelper::AttributeCarriers::~AttributeCarriers | ( | ) |
destructor
Definition at line 71 of file GNENetHelper.cpp.
References DEFAULT_VTYPES, and WRITE_DEBUG.
|
privatedelete |
Invalidated copy constructor.
void GNENetHelper::AttributeCarriers::addDefaultVTypes | ( | ) |
add default VTypes
Definition at line 1405 of file GNENetHelper.cpp.
References DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEReferenceCounter::incRef(), SVC_BICYCLE, SVC_IGNORING, SVC_PASSENGER, SVC_PEDESTRIAN, and SVC_TAXI.
Referenced by GNENet::computeAndUpdate(), and GNENet::setViewNet().
|
protected |
return true if given additional exist
Definition at line 2136 of file GNENetHelper.cpp.
References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().
Referenced by GNEChange_Additional::~GNEChange_Additional().
void GNENetHelper::AttributeCarriers::clearAdditionals | ( | ) |
clear additionals
Definition at line 1040 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearDemandElements | ( | ) |
clear demand elements
Definition at line 1390 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearEdges | ( | ) |
clear edges
Definition at line 720 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearEdgeTypes | ( | ) |
clear edgeTypes
Definition at line 615 of file GNENetHelper.cpp.
void GNENetHelper::AttributeCarriers::clearJunctions | ( | ) |
clear junctions
Definition at line 418 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
|
protected |
return true if given demand element exist
Definition at line 2251 of file GNENetHelper.cpp.
|
protected |
delete additional element of GNENet container
processError | if additional wasn't previously inserted |
Definition at line 2169 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GNETagProperties::isPlacedInRTree().
Referenced by GNEChange_Additional::redo(), GNEChange_Additional::undo(), and GNEChange_Additional::~GNEChange_Additional().
void GNENetHelper::AttributeCarriers::deleteConnection | ( | GNEConnection * | connection | ) |
delete connection
Definition at line 919 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().
void GNENetHelper::AttributeCarriers::deleteCrossing | ( | GNECrossing * | crossing | ) |
delete crossing
Definition at line 500 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::rebuildGNECrossings(), and GNEJunction::~GNEJunction().
void GNENetHelper::AttributeCarriers::deleteDataInterval | ( | GNEDataInterval * | dataInterval | ) |
delete data interval
Definition at line 1809 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataSet::removeDataIntervalChild().
|
protected |
delete demand element element of GNENet container
processError | if demand element wasn't previously inserted |
Definition at line 2279 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEChange_DataSet::redo(), GNEChange_DataSet::undo(), and GNEChange_DataSet::~GNEChange_DataSet().
|
protected |
delete demand element element of GNENet container
processError | if demand element wasn't previously inserted |
Definition at line 2224 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEChange_DemandElement::redo(), GNEChange_DemandElement::undo(), and GNEChange_DemandElement::~GNEChange_DemandElement().
|
protected |
deletes edgeType
Definition at line 2078 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEChange_EdgeType::redo(), GNEChange_EdgeType::undo(), and GNEChange_EdgeType::~GNEChange_EdgeType().
void GNENetHelper::AttributeCarriers::deleteGenericData | ( | GNEGenericData * | genericData | ) |
delete generic data
Definition at line 1922 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataInterval::removeGenericDataChild().
void GNENetHelper::AttributeCarriers::deleteLane | ( | GNELane * | lane | ) |
delete lane
Definition at line 838 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::removeLane(), and GNEEdge::~GNEEdge().
|
protected |
deletes a single edge
Definition at line 2108 of file GNENetHelper.cpp.
References GNEReferenceCounter::decRef(), GNEInspectorFrame::TemplateEditor::getEdgeTemplate(), GNEEdge::getFromJunction(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getNBEdge(), GNEEdge::getToJunction(), GNEJunction::removeIncomingGNEEdge(), GNEJunction::removeOutgoingGNEEdge(), GNEInspectorFrame::TemplateEditor::setEdgeTemplate(), and GNEEdge::setResponsible().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
protected |
deletes a single junction
Definition at line 2043 of file GNENetHelper.cpp.
References GNEReferenceCounter::decRef(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), and GNEJunction::setResponsible().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
void GNENetHelper::AttributeCarriers::deleteWalkingArea | ( | GNEWalkingArea * | walkingArea | ) |
delete walkingArea
Definition at line 564 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::clearWalkingAreas(), and GNEJunction::~GNEJunction().
|
protected |
return true if given demand element exist
Definition at line 2193 of file GNENetHelper.cpp.
References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().
Referenced by GNEChange_DemandElement::~GNEChange_DemandElement().
|
protected |
Definition at line 2057 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID().
Referenced by GNEChange_EdgeType::~GNEChange_EdgeType().
std::string GNENetHelper::AttributeCarriers::generateAdditionalID | ( | SumoXMLTag | type | ) | const |
generate additional id
Definition at line 1055 of file GNENetHelper.cpp.
References OptionsCont::getOptions(), OptionsCont::getString(), GNE_TAG_CALIBRATOR_LANE, GNE_TAG_MULTI_LANE_AREA_DETECTOR, GNE_TAG_POIGEO, GNE_TAG_POILANE, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_PARKING_AREA, SUMO_TAG_POI, SUMO_TAG_POLY, SUMO_TAG_REROUTER, SUMO_TAG_ROUTEPROBE, SUMO_TAG_TAZ, SUMO_TAG_TRACTION_SUBSTATION, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VSS, and toString().
Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAttributesCreatorRow::generateID(), GNEShapeFrame::processClick(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
std::string GNENetHelper::AttributeCarriers::generateDataSetID | ( | const std::string & | prefix | ) | const |
generate data set id
Definition at line 1768 of file GNENetHelper.cpp.
References SUMO_TAG_DATASET, and toString().
std::string GNENetHelper::AttributeCarriers::generateDemandElementID | ( | SumoXMLTag | tag | ) | const |
generate demand element id
Definition at line 1306 of file GNENetHelper.cpp.
References OptionsCont::getOptions(), OptionsCont::getString(), GNEAttributeCarrier::getTagProperty(), GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_VTYPE, and toString().
Referenced by GNEVehicleFrame::addVehicle(), GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNECalibratorDialog::onCmdAddVehicleType(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
std::string GNENetHelper::AttributeCarriers::generateEdgeTypeID | ( | ) | const |
const std::map< SumoXMLTag, std::set< GNEAdditional * > > & GNENetHelper::AttributeCarriers::getAdditionals | ( | ) | const |
get additionals
Definition at line 994 of file GNENetHelper.cpp.
Referenced by GNENet::clearAdditionalElements(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNEViewParent::onCmdLocate(), GNEMatchGenericDataAttribute::onCmdSetFromTAZ(), GNEMatchGenericDataAttribute::onCmdSetToTAZ(), GNESelectorParent::refreshSelectorParentModule(), GNENet::saveAdditionals(), GNEDeleteFrame::selectedACsToDelete(), GNEMatchGenericDataAttribute::updateTAZComboBox(), GNENet::writeAdditionalByType(), GNENet::writeCalibratorComment(), GNENet::writeDetectorComment(), GNENet::writeOtherAdditionalsComment(), GNENet::writeRouteProbeComment(), GNENet::writeShapesComment(), GNENet::writeStoppingPlaceComment(), GNENet::writeTAZComment(), and GNENet::writeWireComment().
const std::set< GNEConnection * > & GNENetHelper::AttributeCarriers::getConnections | ( | ) | const |
get connections
Definition at line 892 of file GNENetHelper.cpp.
Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().
const std::set< GNECrossing * > & GNENetHelper::AttributeCarriers::getCrossings | ( | ) | const |
get crossings
Definition at line 473 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdSaveNetwork(), GNEChange_Crossing::redo(), GNEChange_Crossing::undo(), and GNEJunction::~GNEJunction().
const std::set< GNEDataInterval * > & GNENetHelper::AttributeCarriers::getDataIntervals | ( | ) | const |
get all data intervals of network
Definition at line 1793 of file GNENetHelper.cpp.
Referenced by GNENet::enableUpdateData(), GNENet::getDataSetIntervalMaximumEnd(), and GNENet::getDataSetIntervalMinimumBegin().
const std::set< GNEDataSet * > & GNENetHelper::AttributeCarriers::getDataSets | ( | ) | const |
get demand elements
Definition at line 1762 of file GNENetHelper.cpp.
Referenced by GNENet::clearDataElements(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEApplicationWindow::onUpdSaveDataElementsAs(), and GNENet::saveDataElementsConfirmed().
GNEDemandElement * GNENetHelper::AttributeCarriers::getDefaultType | ( | ) | const |
get default type
Definition at line 1379 of file GNENetHelper.cpp.
References DEFAULT_VTYPE_ID, and SUMO_TAG_VTYPE.
Referenced by GNECalibratorDialog::onCmdAddFlow(), and DemandElementSelector::refreshDemandElementSelector().
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & GNENetHelper::AttributeCarriers::getDemandElements | ( | ) | const |
get demand elements
Definition at line 1281 of file GNENetHelper.cpp.
Referenced by GNENet::adjustPersonPlans(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNENet::clearDemandElements(), GNENet::computeDemandElements(), GNENet::joinRoutes(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onCmdOpenSUMOGUI(), DemandElementSelector::onCmdSelectDemandElement(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), DemandElementSelector::refreshDemandElementSelector(), GNENet::saveDemandElements(), GNENet::saveDemandElementsConfirmed(), GNEDeleteFrame::selectedACsToDelete(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateRouteTable(), GNECalibratorDialog::updateVehicleTypeTable(), GNENet::writeDemandByType(), GNENet::writeRouteComment(), GNENet::writeRoutes(), GNENet::writeVTypeComment(), and GNENet::writeVTypes().
const std::map< std::string, GNEEdge * > & GNENetHelper::AttributeCarriers::getEdges | ( | ) | const |
map with the ID and pointer to edges of net
Definition at line 681 of file GNENetHelper.cpp.
Referenced by GNEPathManager::PathCalculator::calculateReachability(), GNEPathCreator::clearEdgeColors(), GNEConsecutiveSelector::clearPath(), GNENet::computeAndUpdate(), GNENet::computeNetwork(), GNENet::createEdge(), GNENet::deleteJunction(), GNEGenericDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNENet::initGNEConnections(), GNENet::initJunctionsAndEdges(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNEViewNet::onCmdLaneReachability(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onCmdSaveNetwork(), GNENetworkSelector::onCmdUseSelectedElements(), GNEApplicationWindow::onUpdNeedsNetworkElement(), GNENet::replaceJunctionByGeometry(), GNEPathCreator::setPossibleCandidates(), GNEPathCreator::setSpecialCandidates(), GNENet::setViewNet(), GNEPathCreator::updateEdgeColors(), and GNEConsecutiveSelector::updateLaneColors().
const std::map< std::string, GNEEdgeType * > & GNENetHelper::AttributeCarriers::getEdgeTypes | ( | ) | const |
map with the ID and pointer to edgeTypes of net
Definition at line 610 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onUpdSaveEdgeTypes(), GNEApplicationWindow::onUpdSaveEdgeTypesAs(), GNENet::saveEdgeTypes(), and GNENet::saveNetwork().
const std::map< SumoXMLTag, std::set< GNEGenericData * > > & GNENetHelper::AttributeCarriers::getGenericDatas | ( | ) | const |
get all generic datas
Definition at line 1851 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENet::computeDataElements(), GNEViewNet::getEdgeDataAttrs(), GNEViewNet::getRelDataAttrs(), and GNEDeleteFrame::selectedACsToDelete().
const std::map< std::string, GNEJunction * > & GNENetHelper::AttributeCarriers::getJunctions | ( | ) | const |
get junctions
Definition at line 381 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENet::checkJunctionPosition(), GNENet::cleanInvalidCrossings(), GNEPathCreator::clearJunctionColors(), GNENet::computeAndUpdate(), GNENet::createJunction(), GNEVehicleFrame::hide(), GNENet::joinSelectedJunctions(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onUpdSaveTLSPrograms(), GNENet::removeSolitaryJunctions(), GNEDeleteFrame::selectedACsToDelete(), GNEPathCreator::updateJunctionColors(), and GNEApplicationWindow::updateRecomputingLabel().
const std::set< GNELane * > & GNENetHelper::AttributeCarriers::getLanes | ( | ) | const |
get lanes
Definition at line 811 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENetworkSelector::onCmdUseSelectedElements(), and GNEEdge::~GNEEdge().
int GNENetHelper::AttributeCarriers::getNumberOfAdditionals | ( | ) | const |
get number of additionals
Definition at line 1030 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveAdditionalsAs().
int GNENetHelper::AttributeCarriers::getNumberOfDemandElements | ( | ) | const |
Return the number of demand elements.
Definition at line 1287 of file GNENetHelper.cpp.
References GNE_ATTR_DEFAULT_VTYPE, SUMO_TAG_VTYPE, and GNEAttributeCarrier::True.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveDemandElementsAs().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedAdditionals | ( | ) | const |
get number of selected additionals (Including POIs, Polygons, TAZs and Wires)
Definition at line 1131 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedConnections | ( | ) | const |
get number of selected connections
Definition at line 930 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedContainers | ( | ) | const |
get number of selected containers
Definition at line 1599 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedCrossings | ( | ) | const |
get number of selected crossings
Definition at line 511 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedDemandElements | ( | ) | const |
get number of selected demand elements
Definition at line 1439 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeDatas | ( | ) | const |
get number of selected edge datas
Definition at line 1873 of file GNENetHelper.cpp.
References SUMO_TAG_MEANDATA_EDGE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeRelDatas | ( | ) | const |
get number of selected edge rel datas
Definition at line 1886 of file GNENetHelper.cpp.
References SUMO_TAG_EDGEREL.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdges | ( | ) | const |
get number of selected edges
Definition at line 751 of file GNENetHelper.cpp.
Referenced by GNELane::buildEdgeOperations(), and GNELane::buildTemplateOperations().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeTAZRel | ( | ) | const |
get number of selected edge TAZ Rels
Definition at line 1899 of file GNENetHelper.cpp.
References SUMO_TAG_TAZREL.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedJunctions | ( | ) | const |
get number of selected junctions
Definition at line 447 of file GNENetHelper.cpp.
Referenced by GNEJunction::getPopUpMenu().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedLanes | ( | ) | const |
get number of selected lanes
Definition at line 849 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersons | ( | ) | const |
get number of selected persons
Definition at line 1515 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersonTrips | ( | ) | const |
get number of selected person trips
Definition at line 1533 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPOIs | ( | ) | const |
get number of selected POIs
Definition at line 1165 of file GNENetHelper.cpp.
References GNE_TAG_POIGEO, GNE_TAG_POILANE, POIGEO, and SUMO_TAG_POI.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPolygons | ( | ) | const |
get number of selected polygons
Definition at line 1153 of file GNENetHelper.cpp.
References SUMO_TAG_POLY.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPureAdditionals | ( | ) | const |
get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires)
Definition at line 1145 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedRides | ( | ) | const |
get number of selected rides
Definition at line 1577 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedRoutes | ( | ) | const |
get number of selected routes
Definition at line 1453 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, and SUMO_TAG_ROUTE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedStops | ( | ) | const |
get number of selected stops
Definition at line 1661 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, and SUMO_TAG_TRIP.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZs | ( | ) | const |
get number of selected TAZs
Definition at line 1187 of file GNENetHelper.cpp.
References SUMO_TAG_TAZ, and TAZ.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSinks | ( | ) | const |
get number of selected TAZSinks
Definition at line 1211 of file GNENetHelper.cpp.
References SUMO_TAG_TAZSINK.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSources | ( | ) | const |
get number of selected TAZSources
Definition at line 1199 of file GNENetHelper.cpp.
References SUMO_TAG_TAZSOURCE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTranships | ( | ) | const |
get number of selected tranships
Definition at line 1639 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTransport | ( | ) | const |
get number of selected transports
Definition at line 1617 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedVehicles | ( | ) | const |
get number of selected vehicles
Definition at line 1477 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_FLOW, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalkingAreas | ( | ) | const |
get number of selected walkingAreas
Definition at line 575 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalks | ( | ) | const |
get number of selected walks
Definition at line 1555 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWires | ( | ) | const |
get number of selected Wires
Definition at line 1223 of file GNENetHelper.cpp.
std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedAdditionals | ( | ) | const |
get selected additionals
Definition at line 1000 of file GNENetHelper.cpp.
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers | ( | const bool | ignoreCurrentSupermode | ) |
get all selected attribute carriers (or only relative to current supermode
Definition at line 336 of file GNENetHelper.cpp.
References GUISelectedStorage::getSelected(), GNEAttributeCarrier::getTagProperty(), gSelected, GNETagProperties::isAdditionalElement(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), and GNETagProperties::isNetworkElement().
Referenced by GNESelectorFrame::handleIDs(), GNEViewNet::hotkeyDel(), and GNEInspectorFrame::inspectSingleElement().
std::vector< GNEConnection * > GNENetHelper::AttributeCarriers::getSelectedConnections | ( | ) | const |
get selected connections
Definition at line 898 of file GNENetHelper.cpp.
std::vector< GNECrossing * > GNENetHelper::AttributeCarriers::getSelectedCrossings | ( | ) | const |
return all selected crossings
Definition at line 479 of file GNENetHelper.cpp.
std::vector< GNEDemandElement * > GNENetHelper::AttributeCarriers::getSelectedDemandElements | ( | ) | const |
get selected demand elements
Definition at line 1266 of file GNENetHelper.cpp.
Referenced by GNEVehicle::getPopUpMenu().
std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::getSelectedEdges | ( | ) | const |
return all edges
[in] | onlySelected | Whether to return only selected edges |
Definition at line 687 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdAddReversedEdge(), GNEViewNet::onCmdAddReversedEdgeDisconnected(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdResetEndPoints(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::removeRestrictedLane(), GNETAZFrame::CurrentTAZ::setTAZ(), and GNEMoveFrame::show().
std::vector< GNEGenericData * > GNENetHelper::AttributeCarriers::getSelectedGenericDatas | ( | ) | const |
get selected generic datas
Definition at line 1836 of file GNENetHelper.cpp.
std::vector< GNEJunction * > GNENetHelper::AttributeCarriers::getSelectedJunctions | ( | ) | const |
return selected junctions
Definition at line 387 of file GNENetHelper.cpp.
Referenced by GNENet::joinSelectedJunctions(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), and GNEMoveFrame::show().
std::vector< GNELane * > GNENetHelper::AttributeCarriers::getSelectedLanes | ( | ) | const |
get selected lanes
Definition at line 817 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNELane::buildLaneOperations(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdResetOppositeLane(), GNEViewNet::removeRestrictedLane(), and GNEViewNet::restrictLane().
std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedShapes | ( | ) | const |
get selected shapes
Definition at line 1015 of file GNENetHelper.cpp.
Referenced by GNEViewNet::onCmdClosePolygon(), GNEViewNet::onCmdOpenPolygon(), GNEViewNet::onCmdSimplifyShape(), and GNEMoveFrame::show().
std::vector< GNEWalkingArea * > GNENetHelper::AttributeCarriers::getSelectedWalkingAreas | ( | ) | const |
return all selected walkingAreas
Definition at line 543 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getStopIndex | ( | ) |
get (and update) stop index
Definition at line 1433 of file GNENetHelper.cpp.
const std::set< GNEWalkingArea * > & GNENetHelper::AttributeCarriers::getWalkingAreas | ( | ) | const |
get walkingAreas
Definition at line 537 of file GNENetHelper.cpp.
Referenced by GNEViewParent::onCmdLocate(), and GNEJunction::~GNEJunction().
|
protected |
Insert a additional element int GNENet container.
processError | if route was already inserted |
Definition at line 2150 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::isPlacedInRTree(), and GNEAdditional::updateGeometry().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEChange_Additional::redo(), and GNEChange_Additional::undo().
void GNENetHelper::AttributeCarriers::insertConnection | ( | GNEConnection * | connection | ) |
insert connection
Definition at line 911 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::retrieveGNEConnection().
void GNENetHelper::AttributeCarriers::insertCrossing | ( | GNECrossing * | crossing | ) |
insert crossing
Definition at line 492 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::retrieveGNECrossing().
void GNENetHelper::AttributeCarriers::insertDataInterval | ( | GNEDataInterval * | dataInterval | ) |
insert data interval
Definition at line 1799 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataSet::addDataIntervalChild().
|
protected |
Insert a demand element element int GNENet container.
processError | if route was already inserted |
Definition at line 2266 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEChange_DataSet::redo(), and GNEChange_DataSet::undo().
|
protected |
Insert a demand element element int GNENet container.
processError | if route was already inserted |
Definition at line 2207 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GNEDemandElement::updateGeometry().
Referenced by GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNERouteHandler::buildStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::buildWalk(), GNEChange_DemandElement::redo(), and GNEChange_DemandElement::undo().
|
protected |
Definition at line 2096 of file GNENetHelper.cpp.
References NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), NBEdge::getFromNode(), GNEEdge::getNBEdge(), and NBEdge::getToNode().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
protected |
inserts a single edgeType into the net and into the underlying netbuild-container
Definition at line 2063 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEChange_EdgeType::redo(), and GNEChange_EdgeType::undo().
void GNENetHelper::AttributeCarriers::insertGenericData | ( | GNEGenericData * | genericData | ) |
insert generic data
Definition at line 1912 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataInterval::addGenericDataChild().
|
protected |
Definition at line 2036 of file GNENetHelper.cpp.
References GNEJunction::getNBNode().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
void GNENetHelper::AttributeCarriers::insertLane | ( | GNELane * | lane | ) |
insert lane
Definition at line 830 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::addLane().
void GNENetHelper::AttributeCarriers::insertWalkingArea | ( | GNEWalkingArea * | walkingArea | ) |
insert walkingArea
Definition at line 556 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::retrieveGNEWalkingArea().
bool GNENetHelper::AttributeCarriers::isNetworkElementAroundShape | ( | GNEAttributeCarrier * | AC, |
const PositionVector & | shape | ||
) | const |
check if shape of given AC (network element) is around the given shape
Definition at line 150 of file GNENetHelper.cpp.
References PositionVector::around(), GNEAdditional::getAdditionalGeometry(), NBNode::getCenter(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNEAdditional::getPositionInView(), NBNode::getShape(), GUIGeometry::getShape(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), PositionVector::overlapsWith(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, and SUMO_TAG_LANE.
Referenced by GNEViewNet::onCmdSelectPolygonElements(), and GNETAZFrame::shapeDrawed().
|
privatedelete |
Invalidated assignment operator.
registers an edge with GNENet containers
Definition at line 700 of file GNENetHelper.cpp.
References GNEJunction::addIncomingGNEEdge(), GNEJunction::addOutgoingGNEEdge(), GNENetworkElement::getCenteringBoundary(), GNEEdge::getFromJunction(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getToJunction(), GNEReferenceCounter::incRef(), and GNEEdge::setResponsible().
Referenced by GNENet::initJunctionsAndEdges().
GNEEdgeType * GNENetHelper::AttributeCarriers::registerEdgeType | ( | GNEEdgeType * | edgeType | ) |
registers a edge in GNENet containers
Definition at line 600 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID(), and GNEReferenceCounter::incRef().
Referenced by GNENet::initJunctionsAndEdges().
GNEJunction * GNENetHelper::AttributeCarriers::registerJunction | ( | GNEJunction * | junction | ) |
registers a junction in GNENet containers
Definition at line 400 of file GNENetHelper.cpp.
References GNENetworkElement::getCenteringBoundary(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), NBNode::getPosition(), GNEReferenceCounter::incRef(), GNEJunction::setResponsible(), GNEJunction::updateGeometry(), and Position::z().
Referenced by GNENet::initJunctionsAndEdges().
void GNENetHelper::AttributeCarriers::remapJunctionAndEdgeIds | ( | ) |
remap junction and edge IDs
Definition at line 132 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | id | The attribute carrier related with the additional element |
[in] | hardFail | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 957 of file GNENetHelper.cpp.
References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | id | The attribute carrier related with the additional element |
[in] | type | tag with the type of additional |
[in] | id | The id of the additional to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 942 of file GNENetHelper.cpp.
Referenced by GNETAZFrame::addOrRemoveTAZMember(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingAreaReroute(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildWalk(), GNEAdditionalHandler::checkDuplicatedAdditional(), GNEViewNet::deleteNetworkAttributeCarriers(), GNEViewNet::drawTemporalE1TLSLines(), GNETAZFrame::dropTAZMembers(), GNEAdditionalHandler::getAdditionalParent(), GNERouteHandler::getPreviousPlanEdge(), GNEAccess::isValid(), GNECalibrator::isValid(), GNEEntryExitDetector::isValid(), GNELaneAreaDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETAZRelData::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNETranship::isValid(), GNETransport::isValid(), GNEWalk::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAttributesCreatorRow::isValidID(), GNEDemandElement::replaceAdditionalParent(), GNEAdditional::replaceAdditionalParent(), GNEGenericData::replaceParentTAZElement(), GNEAccess::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStop::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEWalk::setAttribute(), GNEElementTree::showAttributeCarrierParents(), and GNEViewNetHelper::ObjectsUnderCursor::updateAdditionalElements().
GNEAttributeCarrier * GNENetHelper::AttributeCarriers::retrieveAttributeCarrier | ( | const GUIGlID | id, |
bool | hardFail = true |
||
) | const |
get a single attribute carrier based on a GLID
[in] | ids | the GL IDs for which to retrieve the AC |
[in] | hardFail | Whether attempts to retrieve a nonexisting AttributeCarrier should result in an exception |
InvalidArgument | if GL ID doesn't have a associated Attribute Carrier |
Definition at line 192 of file GNENetHelper.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), and GNEViewNet::recalculateBoundaries().
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers | ( | SumoXMLTag | tag = SUMO_TAG_NOTHING | ) |
get the attribute carriers based on Type
[in] | type | The GUI-type of the AC. SUMO_TAG_NOTHING returns all elements (Warning: bottleneck) |
Definition at line 215 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getTagProperty(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_NOTHING, and SUMO_TAG_WALKINGAREA.
Referenced by GNESelectorFrame::getMatches().
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers | ( | Supermode | supermode, |
const bool | onlySelected | ||
) |
get the attribute carriers based on supermode and selected
Definition at line 267 of file GNENetHelper.cpp.
GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get Connection by id
[in] | id | The id of the desired Connection |
[in] | hardFail | Whether attempts to retrieve a nonexisting Connection should result in an exception |
UnknownElement |
Definition at line 861 of file GNENetHelper.cpp.
Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), and GNENet::deleteNetworkElement().
GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
get connection by Attribute Carrier
[in] | AC | The attribute carrier related with the connection |
[in] | hardFail | Whether attempts to retrieve a nonexisting connection should result in an exception |
UnknownElement |
Definition at line 878 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID().
GNECrossing * GNENetHelper::AttributeCarriers::retrieveCrossing | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
get Crossing by AC
[in] | AC | The attribute carrier related with the crossing |
[in] | hardFail | Whether attempts to retrieve a nonexisting Crossing should result in an exception |
UnknownElement |
Definition at line 459 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID().
Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), and GNEFixNetworkElements::FixCrossingOptions::fixElements().
GNEDataInterval * GNENetHelper::AttributeCarriers::retrieveDataInterval | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the data interval.
[in] | id | The attribute carrier related with the dataInterval element |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1779 of file GNENetHelper.cpp.
Referenced by GNEViewNet::deleteDataAttributeCarriers(), GNEChange_DataInterval::~GNEChange_DataInterval(), and GNEChange_GenericData::~GNEChange_GenericData().
GNEDataSet * GNENetHelper::AttributeCarriers::retrieveDataSet | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
Returns the named data set.
[in] | id | The id of the data set to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1733 of file GNENetHelper.cpp.
Referenced by GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEDataHandler::buildTAZRelationData(), GNEViewNet::deleteDataAttributeCarriers(), GNEGenericDataFrame::DataSetSelector::getDataSet(), GNEViewNetHelper::IntervalBar::getDataSet(), GNEDataSet::isValid(), GNEChange_Attribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_DataInterval::~GNEChange_DataInterval(), and GNEChange_DataSet::~GNEChange_DataSet().
GNEDataSet * GNENetHelper::AttributeCarriers::retrieveDataSet | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the named data set.
[in] | id | The attribute carrier related with the dataSet element |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1748 of file GNENetHelper.cpp.
GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the named demand element.
[in] | id | The attribute carrier related with the demand element |
[in] | hardFail | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 1252 of file GNENetHelper.cpp.
References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().
GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named demand element.
[in] | type | tag with the type of demand element |
[in] | id | The id of the demand element to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 1237 of file GNENetHelper.cpp.
Referenced by GNEAdditionalHandler::buildCalibratorFlow(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::buildWalk(), GNERouteHandler::checkDuplicatedDemandElement(), GNERouteFrame::createPath(), GNEViewNet::deleteDemandAttributeCarriers(), GNEJunction::drawDottedContours(), GNEVType::editVTypeDistribution(), GNERouteHandler::getContainerParent(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanEdge(), GNEContainerFrame::GNEContainerFrame(), GNEPersonFrame::GNEPersonFrame(), GNETypeFrame::GNETypeFrame(), GNEVehicleFrame::GNEVehicleFrame(), GNECalibratorFlow::isValid(), GNERouteProbReroute::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNETranship::isValid(), GNETransport::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEVTypeDistribution::isValid(), GNEWalk::isValid(), GNEDemandElement::isValidDemandElementID(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditional::replaceDemandElementParent(), GNEDemandElement::replaceDemandElementParent(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStop::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEWalk::setAttribute(), GNEDemandElement::setVTypeDistributionParent(), GNEElementTree::showAttributeCarrierParents(), GNEFrameAttributeModules::AttributesEditor::showAttributeEditorModule(), DemandElementSelector::showDemandElementSelector(), GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), and GNEViewNetHelper::ObjectsUnderCursor::updateDemandElements().
GNEEdge * GNENetHelper::AttributeCarriers::retrieveEdge | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get edge by id
[in] | id | The id of the desired edge |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 652 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNETAZFrame::CurrentTAZ::addTAZChild(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::buildWalk(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNENet::createEdge(), GNERouteFrame::createPath(), GNENet::createRoundabout(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEFixNetworkElements::FixEdgeOptions::fixElements(), GNEViewNet::getAttributeCarriersInBoundary(), GNEAdditional::getPopUpMenu(), GNERouteHandler::getPreviousPlanEdge(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::initTargets(), GNECalibrator::isValid(), GNEClosingReroute::isValid(), GNEDestProbReroute::isValid(), GNERouteProbe::isValid(), GNEVaporizer::isValid(), GNEEdgeRelData::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNETranship::isValid(), GNETransport::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEJunction::markAsModified(), GNEJunction::moveJunctionGeometry(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEAttributeCarrier::parse(), GNERouteHandler::parseEdge(), GNEAdditionalHandler::parseEdges(), GNERouteHandler::parseEdges(), GNEJunction::removeConnectionsTo(), GNEViewNet::removeRestrictedLane(), GNEGenericData::replaceFirstParentEdge(), GNEDemandElement::replaceFirstParentEdge(), GNEGenericData::replaceLastParentEdge(), GNEDemandElement::replaceLastParentEdge(), GNEViewNet::restrictLane(), GNEEdge::retrieveGNEConnection(), GNENet::selectRoundabout(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEEdge::setAttribute(), GNEJunction::setLogicValid(), GNEElementTree::showHierarchicalElementChildren(), GNENet::splitEdgesBidi(), and GNENet::splitJunction().
std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::retrieveEdges | ( | GNEJunction * | from, |
GNEJunction * | to | ||
) | const |
get all edges by from and to GNEJunction
[in] | id | The id of the desired edge |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 665 of file GNENetHelper.cpp.
Referenced by GNENet::createEdge(), GNEEdge::getOppositeEdges(), and GNECreateEdgeFrame::processClick().
GNEEdgeType * GNENetHelper::AttributeCarriers::retrieveEdgeType | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get edge type by id
[in] | id | The id of the desired edge type |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge type should result in an exception |
UnknownElement |
Definition at line 587 of file GNENetHelper.cpp.
Referenced by GNEEdgeType::isValid(), and GNECreateEdgeFrame::EdgeTypeSelector::onCmdDeleteEdgeType().
GNEGenericData * GNENetHelper::AttributeCarriers::retrieveGenericData | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the generic data.
[in] | id | The attribute carrier related with the genericData element |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1822 of file GNENetHelper.cpp.
References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().
Referenced by GNEViewNet::deleteDataAttributeCarriers(), and GNEChange_GenericData::~GNEChange_GenericData().
std::set< std::string > GNENetHelper::AttributeCarriers::retrieveGenericDataParameters | ( | const std::string & | dataSetID, |
const std::string & | genericDataTag, | ||
const std::string & | beginStr, | ||
const std::string & | endStr | ||
) | const |
return a set of parameters for the given dataSet, generic data Type, begin and end
Definition at line 1963 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
std::set< std::string > GNENetHelper::AttributeCarriers::retrieveGenericDataParameters | ( | const std::string & | genericDataTag, |
const double | begin, | ||
const double | end | ||
) | const |
return a set of parameters for the given data Interval
Definition at line 1935 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by GNEMatchGenericDataAttribute::onCmdSelectAttribute(), and GNEMatchGenericDataAttribute::onCmdSelectTag().
std::vector< GNEGenericData * > GNENetHelper::AttributeCarriers::retrieveGenericDatas | ( | const SumoXMLTag | genericDataTag, |
const double | begin, | ||
const double | end | ||
) |
retrieve generic datas within the given interval
Definition at line 1857 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by GNEMatchGenericDataAttribute::onCmdProcessString().
GNEJunction * GNENetHelper::AttributeCarriers::retrieveJunction | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get junction by id
[in] | id | The id of the desired junction |
[in] | hardFail | Whether attempts to retrieve a nonexisting junction should result in an exception |
UnknownElement |
Definition at line 368 of file GNENetHelper.cpp.
Referenced by GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildWalk(), GNENet::changeEdgeEndpoints(), GNEConnection::changeTLIndex(), GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::TLSDefinition::createTLS(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalRoundabout(), GNETLSEditorFrame::editJunction(), GNERouteHandler::getPreviousPlanJunction(), GNEEdge::GNEEdge(), GNEJunction::invalidateTLS(), GNEPersonTrip::isValid(), GNEVehicle::isValid(), GNEEdge::isValid(), GNEJunction::isValid(), GNEFrameAttributeModules::AttributesEditorRow::mergeJunction(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSDefinition::onCmdSaveChanges(), GNERouteHandler::parseJunction(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTLSConnections(), GNEDemandElement::replaceFirstParentJunction(), GNEJunction::replaceIncomingConnections(), GNEDemandElement::replaceLastParentJunction(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), GNEJunction::setJunctionType(), GNEElementTree::showHierarchicalElementChildren(), GNEEdge::updateFirstParentJunction(), and GNEEdge::updateSecondParentJunction().
GNELane * GNENetHelper::AttributeCarriers::retrieveLane | ( | const std::string & | id, |
bool | hardFail = true , |
||
bool | checkVolatileChange = false |
||
) | const |
get lane by id
[in] | id | The id of the desired lane |
[in] | hardFail | Whether attempts to retrieve a nonexisting lane should result in an exception |
[in] | checkVolatileChange | Used by additionals after recomputing with volatile options. |
UnknownElement |
Definition at line 763 of file GNENetHelper.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), GNELane::getIndex(), GNEEdge::getLanes(), SUMO_TAG_EDGE, SUMO_TAG_LANE, and toString().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTrainStop(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEAdditional::getPopUpMenu(), GNERouteHandler::getPreviousPlanEdge(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEContainerStop::isValid(), GNEEntryExitDetector::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNEParkingArea::isValid(), GNEStop::isValid(), GNEPOI::isValid(), GNEAdditionalHandler::parseLanes(), GNEClosingLaneReroute::setAttribute(), and GNEElementTree::showHierarchicalElementChildren().
GNELane * GNENetHelper::AttributeCarriers::retrieveLane | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
get lane by Attribute Carrier
[in] | AC | The attribute carrier related with the lane |
[in] | hardFail | Whether attempts to retrieve a nonexisting lane should result in an exception |
UnknownElement |
Definition at line 797 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveRerouterInterval | ( | const std::string & | rerouterID, |
const SUMOTime | begin, | ||
const SUMOTime | end | ||
) | const |
Returns the rerouter interval defined by given begin and end.
[in] | rerouter | ID |
[in] | begin | SUMOTime begin |
[in] | end | SUMOTime begin |
Definition at line 971 of file GNENetHelper.cpp.
References GNEHierarchicalElement::getChildAdditionals(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, SUMO_TAG_REROUTER, and time2string().
Referenced by GNEAdditionalHandler::getRerouterIntervalParent().
GNEWalkingArea * GNENetHelper::AttributeCarriers::retrieveWalkingArea | ( | GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
get WalkingArea by AC
[in] | AC | The attribute carrier related with the walkingArea |
[in] | hardFail | Whether attempts to retrieve a nonexisting WalkingArea should result in an exception |
UnknownElement |
Definition at line 523 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID().
void GNENetHelper::AttributeCarriers::updateEdgeID | ( | GNEEdge * | edge, |
const std::string & | newID | ||
) |
update edge ID in container
Definition at line 726 of file GNENetHelper.cpp.
References NBEdge::getID(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEAttributeCarrier::getTagStr(), and GNEEdge::setMicrosimID().
Referenced by GNEEdge::setAttribute().
void GNENetHelper::AttributeCarriers::updateEdgeTypeID | ( | GNEEdgeType * | edgeType, |
const std::string & | newID | ||
) |
update edgeType ID in container
Definition at line 621 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().
Referenced by GNEEdgeType::setAttribute().
void GNENetHelper::AttributeCarriers::updateJunctionID | ( | GNEJunction * | junction, |
const std::string & | newID | ||
) |
update junction ID in container
Definition at line 424 of file GNENetHelper.cpp.
References NBNode::buildCrossings(), GNEAttributeCarrier::getID(), Named::getID(), GNEJunction::getNBNode(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().
Referenced by GNEJunction::setAttribute().
|
friend |
declare friend class
Definition at line 74 of file GNENetHelper.h.
|
friend |
Definition at line 80 of file GNENetHelper.h.
|
friend |
Definition at line 85 of file GNENetHelper.h.
|
friend |
Definition at line 84 of file GNENetHelper.h.
|
friend |
Definition at line 83 of file GNENetHelper.h.
|
friend |
Definition at line 79 of file GNENetHelper.h.
|
friend |
Definition at line 78 of file GNENetHelper.h.
|
friend |
Definition at line 86 of file GNENetHelper.h.
|
friend |
Definition at line 77 of file GNENetHelper.h.
|
friend |
Definition at line 81 of file GNENetHelper.h.
|
friend |
Definition at line 82 of file GNENetHelper.h.
|
friend |
Definition at line 76 of file GNENetHelper.h.
|
friend |
Definition at line 75 of file GNENetHelper.h.
|
private |
map with the tag and pointer to additional elements of net
Definition at line 675 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
set with connetions
Definition at line 672 of file GNENetHelper.h.
|
private |
set with crossings
Definition at line 657 of file GNENetHelper.h.
|
private |
set with all data intervals of network
Definition at line 684 of file GNENetHelper.h.
|
private |
set with the ID and pointer to all datasets of net
Definition at line 681 of file GNENetHelper.h.
|
private |
map with the tag and pointer to demand elements of net
Definition at line 678 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with the ID and pointer to edges of net
Definition at line 666 of file GNENetHelper.h.
|
private |
map with the ID and pointer to edgeTypes of net
Definition at line 663 of file GNENetHelper.h.
|
private |
map with the tag and pointer to all generic datas
Definition at line 687 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with the ID and pointer to junctions of net
Definition at line 654 of file GNENetHelper.h.
|
private |
set with lanes
Definition at line 669 of file GNENetHelper.h.
|
private |
pointer to net
Definition at line 648 of file GNENetHelper.h.
|
private |
stop index
Definition at line 651 of file GNENetHelper.h.
|
private |
set with walkingAreas
Definition at line 660 of file GNENetHelper.h.