Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENetHelper::AttributeCarriers Class Reference

struct used for saving all attribute carriers of net, in different formats More...

#include <GNENetHelper.h>

Collaboration diagram for GNENetHelper::AttributeCarriers:
[legend]

Public Member Functions

 AttributeCarriers (GNENet *net)
 constructor
 
bool isNetworkElementAroundShape (GNEAttributeCarrier *AC, const PositionVector &shape) const
 check if shape of given AC (network element) is around the given shape
 
void remapJunctionAndEdgeIds ()
 remap junction and edge IDs
 
 ~AttributeCarriers ()
 destructor
 
function for attribute carriers
GNEAttributeCarrierretrieveAttributeCarrier (const GUIGlID id, bool hardFail=true) const
 get a single attribute carrier based on a GLID
 
std::vector< GNEAttributeCarrier * > retrieveAttributeCarriers (SumoXMLTag tag=SUMO_TAG_NOTHING)
 get the attribute carriers based on Type
 
std::vector< GNEAttributeCarrier * > retrieveAttributeCarriers (Supermode supermode, const bool onlySelected)
 get the attribute carriers based on supermode and selected
 
std::vector< GNEAttributeCarrier * > getSelectedAttributeCarriers (const bool ignoreCurrentSupermode)
 get all selected attribute carriers (or only relative to current supermode
 
function for junctions
GNEJunctionretrieveJunction (const std::string &id, bool hardFail=true) const
 get junction by id
 
const std::map< std::string, GNEJunction * > & getJunctions () const
 get junctions
 
std::vector< GNEJunction * > getSelectedJunctions () const
 return selected junctions
 
GNEJunctionregisterJunction (GNEJunction *junction)
 registers a junction in GNENet containers
 
void clearJunctions ()
 clear junctions
 
void addPrefixToJunctions (const std::string &prefix)
 add prefix to all junctions
 
void updateJunctionID (GNEJunction *junction, const std::string &newID)
 update junction ID in container
 
int getNumberOfSelectedJunctions () const
 get number of selected junctions
 
function for crossings
GNECrossingretrieveCrossing (GNEAttributeCarrier *AC, bool hardFail=true) const
 get Crossing by AC
 
const std::set< GNECrossing * > & getCrossings () const
 get crossings
 
std::vector< GNECrossing * > getSelectedCrossings () const
 return all selected crossings
 
void insertCrossing (GNECrossing *crossing)
 insert crossing
 
void deleteCrossing (GNECrossing *crossing)
 delete crossing
 
int getNumberOfSelectedCrossings () const
 get number of selected crossings
 
function for walkingAreas
GNEWalkingArearetrieveWalkingArea (GNEAttributeCarrier *AC, bool hardFail=true) const
 get WalkingArea by AC
 
const std::set< GNEWalkingArea * > & getWalkingAreas () const
 get walkingAreas
 
std::vector< GNEWalkingArea * > getSelectedWalkingAreas () const
 return all selected walkingAreas
 
void insertWalkingArea (GNEWalkingArea *walkingArea)
 insert walkingArea
 
void deleteWalkingArea (GNEWalkingArea *walkingArea)
 delete walkingArea
 
int getNumberOfSelectedWalkingAreas () const
 get number of selected walkingAreas
 
function for edgeTypes
GNEEdgeTyperetrieveEdgeType (const std::string &id, bool hardFail=true) const
 get edge type by id
 
GNEEdgeTyperegisterEdgeType (GNEEdgeType *edgeType)
 registers a edge in GNENet containers
 
const std::map< std::string, GNEEdgeType * > & getEdgeTypes () const
 map with the ID and pointer to edgeTypes of net
 
void clearEdgeTypes ()
 clear edgeTypes
 
void updateEdgeTypeID (GNEEdgeType *edgeType, const std::string &newID)
 update edgeType ID in container
 
std::string generateEdgeTypeID () const
 generate edgeType id
 
function for edges
GNEEdgeretrieveEdge (const std::string &id, bool hardFail=true) const
 get edge by id
 
std::vector< GNEEdge * > retrieveEdges (GNEJunction *from, GNEJunction *to) const
 get all edges by from and to GNEJunction
 
const std::map< std::string, GNEEdge * > & getEdges () const
 map with the ID and pointer to edges of net
 
std::vector< GNEEdge * > getSelectedEdges () const
 return all edges
 
GNEEdgeregisterEdge (GNEEdge *edge)
 registers an edge with GNENet containers
 
void clearEdges ()
 clear edges
 
void addPrefixToEdges (const std::string &prefix)
 add prefix to all edges
 
void updateEdgeID (GNEEdge *edge, const std::string &newID)
 update edge ID in container
 
int getNumberOfSelectedEdges () const
 get number of selected edges
 
function for lanes
GNELaneretrieveLane (const std::string &id, bool hardFail=true, bool checkVolatileChange=false) const
 get lane by id
 
GNELaneretrieveLane (GNEAttributeCarrier *AC, bool hardFail=true) const
 get lane by Attribute Carrier
 
const std::set< GNELane * > & getLanes () const
 get lanes
 
std::vector< GNELane * > getSelectedLanes () const
 get selected lanes
 
void insertLane (GNELane *lane)
 insert lane
 
void deleteLane (GNELane *lane)
 delete lane
 
int getNumberOfSelectedLanes () const
 get number of selected lanes
 
function for connections
GNEConnectionretrieveConnection (const std::string &id, bool hardFail=true) const
 get Connection by id
 
GNEConnectionretrieveConnection (GNEAttributeCarrier *AC, bool hardFail=true) const
 get connection by Attribute Carrier
 
const std::set< GNEConnection * > & getConnections () const
 get connections
 
std::vector< GNEConnection * > getSelectedConnections () const
 get selected connections
 
void insertConnection (GNEConnection *connection)
 insert connection
 
void deleteConnection (GNEConnection *connection)
 delete connection
 
int getNumberOfSelectedConnections () const
 get number of selected connections
 
function for additionals
GNEAdditionalretrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const
 Returns the named additional.
 
GNEAdditionalretrieveAdditional (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the named additional.
 
GNEAdditionalretrieveRerouterInterval (const std::string &rerouterID, const SUMOTime begin, const SUMOTime end) const
 Returns the rerouter interval defined by given begin and end.
 
const std::map< SumoXMLTag, std::set< GNEAdditional * > > & getAdditionals () const
 get additionals
 
std::vector< GNEAdditional * > getSelectedAdditionals () const
 get selected additionals
 
std::vector< GNEAdditional * > getSelectedShapes () const
 get selected shapes
 
int getNumberOfAdditionals () const
 get number of additionals
 
void clearAdditionals ()
 clear additionals
 
std::string generateAdditionalID (SumoXMLTag type) const
 generate additional id
 
int getNumberOfSelectedAdditionals () const
 get number of selected additionals (Including POIs, Polygons, TAZs and Wires)
 
int getNumberOfSelectedPureAdditionals () const
 get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires)
 
int getNumberOfSelectedPolygons () const
 get number of selected polygons
 
int getNumberOfSelectedPOIs () const
 get number of selected POIs
 
int getNumberOfSelectedTAZs () const
 get number of selected TAZs
 
int getNumberOfSelectedTAZSources () const
 get number of selected TAZSources
 
int getNumberOfSelectedTAZSinks () const
 get number of selected TAZSinks
 
int getNumberOfSelectedWires () const
 get number of selected Wires
 
function for demand elements
GNEDemandElementretrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const
 Returns the named demand element.
 
GNEDemandElementretrieveDemandElement (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the named demand element.
 
GNEDemandElementretrieveFirstDemandElement (SumoXMLTag type) const
 Returns the first demand element sorted by ID (or null if type is empty)
 
std::vector< GNEDemandElement * > getSelectedDemandElements () const
 get selected demand elements
 
const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & getDemandElements () const
 get demand elements
 
int getNumberOfDemandElements () const
 Return the number of demand elements.
 
std::string generateDemandElementID (SumoXMLTag tag) const
 generate demand element id
 
GNEDemandElementgetDefaultType () const
 get default type
 
void clearDemandElements ()
 clear demand elements
 
void addDefaultVTypes ()
 add default VTypes
 
int getStopIndex ()
 get (and update) stop index
 
int getNumberOfSelectedDemandElements () const
 get number of selected demand elements
 
int getNumberOfSelectedRoutes () const
 get number of selected routes
 
int getNumberOfSelectedVehicles () const
 get number of selected vehicles
 
int getNumberOfSelectedPersons () const
 get number of selected persons
 
int getNumberOfSelectedPersonTrips () const
 get number of selected person trips
 
int getNumberOfSelectedWalks () const
 get number of selected walks
 
int getNumberOfSelectedRides () const
 get number of selected rides
 
int getNumberOfSelectedContainers () const
 get number of selected containers
 
int getNumberOfSelectedTransport () const
 get number of selected transports
 
int getNumberOfSelectedTranships () const
 get number of selected tranships
 
int getNumberOfSelectedStops () const
 get number of selected stops
 
function for data sets
GNEDataSetretrieveDataSet (const std::string &id, bool hardFail=true) const
 Returns the named data set.
 
GNEDataSetretrieveDataSet (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the named data set.
 
const std::set< GNEDataSet * > & getDataSets () const
 get demand elements
 
std::string generateDataSetID (const std::string &prefix) const
 generate data set id
 
function for data intervals
GNEDataIntervalretrieveDataInterval (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the data interval.
 
const std::set< GNEDataInterval * > & getDataIntervals () const
 get all data intervals of network
 
void insertDataInterval (GNEDataInterval *dataInterval)
 insert data interval
 
void deleteDataInterval (GNEDataInterval *dataInterval)
 delete data interval
 
function for generic datas
GNEGenericDataretrieveGenericData (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the generic data.
 
std::vector< GNEGenericData * > getSelectedGenericDatas () const
 get selected generic datas
 
const std::map< SumoXMLTag, std::set< GNEGenericData * > > & getGenericDatas () const
 get all generic datas
 
std::vector< GNEGenericData * > retrieveGenericDatas (const SumoXMLTag genericDataTag, const double begin, const double end)
 retrieve generic datas within the given interval
 
int getNumberOfGenericDatas () const
 Return the number of generic datas.
 
int getNumberOfSelectedEdgeDatas () const
 get number of selected edge datas
 
int getNumberOfSelectedEdgeRelDatas () const
 get number of selected edge rel datas
 
int getNumberOfSelectedEdgeTAZRel () const
 get number of selected edge TAZ Rels
 
void insertGenericData (GNEGenericData *genericData)
 insert generic data
 
void deleteGenericData (GNEGenericData *genericData)
 delete generic data
 
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
 
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
 
function for meanDatas
GNEMeanDataretrieveMeanData (SumoXMLTag type, const std::string &id, bool hardFail=true) const
 Returns the named meanData.
 
GNEMeanDataretrieveMeanData (GNEAttributeCarrier *AC, bool hardFail=true) const
 Returns the named meanData.
 
const std::map< SumoXMLTag, std::set< GNEMeanData * > > & getMeanDatas () const
 get meanDatas
 
int getNumberOfMeanDatas () const
 get number of meanDatas
 
void clearMeanDatas ()
 clear meanDatas
 
std::string generateMeanDataID (SumoXMLTag type) const
 generate meanData id
 

Protected Member Functions

void updateDemandElementFrames (const GNETagProperties &tagProperty)
 update demand element frames (called after insert/delete demand element)
 
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
 
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
 
void deleteEdgeType (GNEEdgeType *edgeType)
 deletes edgeType
 
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
 
Insertion and erasing of GNEAdditionals items
bool additionalExist (const GNEAdditional *additional) const
 return true if given additional exist
 
void insertAdditional (GNEAdditional *additional)
 Insert a additional element int GNENet container.
 
void deleteAdditional (GNEAdditional *additional)
 delete additional element of GNENet container
 
Insertion and erasing of GNEDemandElements items
bool demandElementExist (GNEDemandElement *demandElement) const
 return true if given demand element exist
 
void insertDemandElement (GNEDemandElement *demandElement)
 Insert a demand element element int GNENet container.
 
void deleteDemandElement (GNEDemandElement *demandElement, const bool updateFrames)
 delete demand element element of GNENet container
 
Insertion and erasing of data items
bool dataSetExist (GNEDataSet *dataSet) const
 return true if given demand element exist
 
void insertDataSet (GNEDataSet *dataSet)
 Insert a demand element element int GNENet container.
 
void deleteDataSet (GNEDataSet *dataSet)
 delete demand element element of GNENet container
 
Insertion and erasing of GNEMeanDatas items
bool meanDataExist (const GNEMeanData *meanData) const
 return true if given meanData exist
 
void insertMeanData (GNEMeanData *meanData)
 Insert a meanData element int GNENet container.
 
void deleteMeanData (GNEMeanData *meanData)
 delete meanData element of GNENet container
 

Private Member Functions

 AttributeCarriers (const AttributeCarriers &)=delete
 Invalidated copy constructor.
 
AttributeCarriersoperator= (const AttributeCarriers &)=delete
 Invalidated assignment operator.
 

Private Attributes

std::map< SumoXMLTag, std::set< GNEAdditional * > > myAdditionals
 map with the tag and pointer to additional elements of net
 
std::set< GNEConnection * > myConnections
 set with connetions
 
std::set< GNECrossing * > myCrossings
 set with crossings
 
std::set< GNEDataInterval * > myDataIntervals
 set with all data intervals of network
 
std::set< GNEDataSet * > myDataSets
 set with the ID and pointer to all datasets of net
 
std::map< SumoXMLTag, std::set< GNEDemandElement * > > myDemandElements
 map with the tag and pointer to demand elements of net
 
std::map< std::string, GNEEdge * > myEdges
 map with the ID and pointer to edges of net
 
std::map< std::string, GNEEdgeType * > myEdgeTypes
 map with the ID and pointer to edgeTypes of net
 
std::map< SumoXMLTag, std::set< GNEGenericData * > > myGenericDatas
 map with the tag and pointer to all generic datas
 
std::map< std::string, GNEJunction * > myJunctions
 map with the ID and pointer to junctions of net
 
std::set< GNELane * > myLanes
 set with lanes
 
std::map< SumoXMLTag, std::set< GNEMeanData * > > myMeanDatas
 map with the tag and pointer to meanData elements of net
 
GNENetmyNet
 pointer to net
 
int myStopIndex
 stop index
 
std::set< GNEWalkingArea * > myWalkingAreas
 set with walkingAreas
 

Friends

class GNEAdditionalHandler
 declare friend class
 
class GNEChange_Additional
 
class GNEChange_DataInterval
 
class GNEChange_DataSet
 
class GNEChange_DemandElement
 
class GNEChange_Edge
 
class GNEChange_EdgeType
 
class GNEChange_GenericData
 
class GNEChange_Junction
 
class GNEChange_MeanData
 
class GNEChange_Shape
 
class GNEChange_TAZElement
 
class GNEDataHandler
 
class GNERouteHandler
 

Detailed Description

struct used for saving all attribute carriers of net, in different formats

Definition at line 72 of file GNENetHelper.h.

Constructor & Destructor Documentation

◆ AttributeCarriers() [1/2]

◆ ~AttributeCarriers()

GNENetHelper::AttributeCarriers::~AttributeCarriers ( )

destructor

Definition at line 85 of file GNENetHelper.cpp.

References DEFAULT_VTYPES, and WRITE_DEBUG.

◆ AttributeCarriers() [2/2]

GNENetHelper::AttributeCarriers::AttributeCarriers ( const AttributeCarriers )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addDefaultVTypes()

void GNENetHelper::AttributeCarriers::addDefaultVTypes ( )

add default VTypes

Definition at line 1523 of file GNENetHelper.cpp.

References DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_RAILTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEReferenceCounter::incRef(), SVC_BICYCLE, SVC_IGNORING, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_RAIL, and SVC_TAXI.

Referenced by GNENet::computeAndUpdate(), and GNENet::setViewNet().

Here is the caller graph for this function:

◆ additionalExist()

bool GNENetHelper::AttributeCarriers::additionalExist ( const GNEAdditional additional) const
protected

return true if given additional exist

Definition at line 2350 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

Referenced by GNEChange_Additional::~GNEChange_Additional().

Here is the caller graph for this function:

◆ addPrefixToEdges()

void GNENetHelper::AttributeCarriers::addPrefixToEdges ( const std::string &  prefix)

add prefix to all edges

Definition at line 786 of file GNENetHelper.cpp.

References GNEEdge::setMicrosimID().

Referenced by GNELoadThread::run().

Here is the caller graph for this function:

◆ addPrefixToJunctions()

void GNENetHelper::AttributeCarriers::addPrefixToJunctions ( const std::string &  prefix)

add prefix to all junctions

Definition at line 459 of file GNENetHelper.cpp.

References GUIGlObject::setMicrosimID().

Referenced by GNELoadThread::run().

Here is the caller graph for this function:

◆ clearAdditionals()

void GNENetHelper::AttributeCarriers::clearAdditionals ( )

clear additionals

Definition at line 1124 of file GNENetHelper.cpp.

Referenced by GNENet::computeAndUpdate().

Here is the caller graph for this function:

◆ clearDemandElements()

void GNENetHelper::AttributeCarriers::clearDemandElements ( )

clear demand elements

Definition at line 1508 of file GNENetHelper.cpp.

Referenced by GNENet::computeAndUpdate().

Here is the caller graph for this function:

◆ clearEdges()

void GNENetHelper::AttributeCarriers::clearEdges ( )

clear edges

Definition at line 780 of file GNENetHelper.cpp.

Referenced by GNENet::computeAndUpdate().

Here is the caller graph for this function:

◆ clearEdgeTypes()

void GNENetHelper::AttributeCarriers::clearEdgeTypes ( )

clear edgeTypes

Definition at line 674 of file GNENetHelper.cpp.

◆ clearJunctions()

void GNENetHelper::AttributeCarriers::clearJunctions ( )

clear junctions

Definition at line 453 of file GNENetHelper.cpp.

Referenced by GNENet::computeAndUpdate().

Here is the caller graph for this function:

◆ clearMeanDatas()

void GNENetHelper::AttributeCarriers::clearMeanDatas ( )

clear meanDatas

Definition at line 2216 of file GNENetHelper.cpp.

◆ dataSetExist()

bool GNENetHelper::AttributeCarriers::dataSetExist ( GNEDataSet dataSet) const
protected

return true if given demand element exist

Definition at line 2472 of file GNENetHelper.cpp.

◆ deleteAdditional()

void GNENetHelper::AttributeCarriers::deleteAdditional ( GNEAdditional additional)
protected

delete additional element of GNENet container

Exceptions
processErrorif additional wasn't previously inserted

Definition at line 2383 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().

Here is the caller graph for this function:

◆ deleteConnection()

void GNENetHelper::AttributeCarriers::deleteConnection ( GNEConnection connection)

delete connection

Definition at line 1003 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().

Here is the caller graph for this function:

◆ deleteCrossing()

void GNENetHelper::AttributeCarriers::deleteCrossing ( GNECrossing crossing)

delete crossing

Definition at line 555 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEJunction::rebuildGNECrossings(), and GNEJunction::~GNEJunction().

Here is the caller graph for this function:

◆ deleteDataInterval()

void GNENetHelper::AttributeCarriers::deleteDataInterval ( GNEDataInterval dataInterval)

delete data interval

Definition at line 1933 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEDataSet::removeDataIntervalChild().

Here is the caller graph for this function:

◆ deleteDataSet()

void GNENetHelper::AttributeCarriers::deleteDataSet ( GNEDataSet dataSet)
protected

delete demand element element of GNENet container

Exceptions
processErrorif demand element wasn't previously inserted

Definition at line 2500 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEChange_DataSet::redo(), GNEChange_DataSet::undo(), and GNEChange_DataSet::~GNEChange_DataSet().

Here is the caller graph for this function:

◆ deleteDemandElement()

void GNENetHelper::AttributeCarriers::deleteDemandElement ( GNEDemandElement demandElement,
const bool  updateFrames 
)
protected

delete demand element element of GNENet container

Exceptions
processErrorif demand element wasn't previously inserted

Definition at line 2440 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().

Here is the caller graph for this function:

◆ deleteEdgeType()

void GNENetHelper::AttributeCarriers::deleteEdgeType ( GNEEdgeType edgeType)
protected

deletes edgeType

Definition at line 2292 of file GNENetHelper.cpp.

References GUIGlObject::getMicrosimID().

Referenced by GNEChange_EdgeType::redo(), GNEChange_EdgeType::undo(), and GNEChange_EdgeType::~GNEChange_EdgeType().

Here is the caller graph for this function:

◆ deleteGenericData()

void GNENetHelper::AttributeCarriers::deleteGenericData ( GNEGenericData genericData)

delete generic data

Definition at line 2057 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEDataInterval::removeGenericDataChild().

Here is the caller graph for this function:

◆ deleteLane()

void GNENetHelper::AttributeCarriers::deleteLane ( GNELane lane)

delete lane

Definition at line 918 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEEdge::removeLane(), and GNEEdge::~GNEEdge().

Here is the caller graph for this function:

◆ deleteMeanData()

void GNENetHelper::AttributeCarriers::deleteMeanData ( GNEMeanData meanData)
protected

delete meanData element of GNENet container

Exceptions
processErrorif meanData wasn't previously inserted

Definition at line 2553 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GNETagProperties::isPlacedInRTree().

Referenced by GNEChange_MeanData::redo(), GNEChange_MeanData::undo(), and GNEChange_MeanData::~GNEChange_MeanData().

Here is the caller graph for this function:

◆ deleteSingleEdge()

void GNENetHelper::AttributeCarriers::deleteSingleEdge ( GNEEdge edge)
protected

◆ deleteSingleJunction()

void GNENetHelper::AttributeCarriers::deleteSingleJunction ( GNEJunction junction)
protected

deletes a single junction

Definition at line 2257 of file GNENetHelper.cpp.

References GNEReferenceCounter::decRef(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), and GNEJunction::setResponsible().

Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().

Here is the caller graph for this function:

◆ deleteWalkingArea()

void GNENetHelper::AttributeCarriers::deleteWalkingArea ( GNEWalkingArea walkingArea)

delete walkingArea

Definition at line 623 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEJunction::clearWalkingAreas(), and GNEJunction::~GNEJunction().

Here is the caller graph for this function:

◆ demandElementExist()

bool GNENetHelper::AttributeCarriers::demandElementExist ( GNEDemandElement demandElement) const
protected

return true if given demand element exist

Definition at line 2407 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

Referenced by GNEChange_DemandElement::~GNEChange_DemandElement().

Here is the caller graph for this function:

◆ edgeTypeExist()

bool GNENetHelper::AttributeCarriers::edgeTypeExist ( const GNEEdgeType edgeType) const
protected

Definition at line 2271 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID().

Referenced by GNEChange_EdgeType::~GNEChange_EdgeType().

Here is the caller graph for this function:

◆ generateAdditionalID()

◆ generateDataSetID()

std::string GNENetHelper::AttributeCarriers::generateDataSetID ( const std::string &  prefix) const

generate data set id

Definition at line 1892 of file GNENetHelper.cpp.

References SUMO_TAG_DATASET, and toString().

◆ generateDemandElementID()

◆ generateEdgeTypeID()

std::string GNENetHelper::AttributeCarriers::generateEdgeTypeID ( ) const

generate edgeType id

Definition at line 701 of file GNENetHelper.cpp.

References toString().

◆ generateMeanDataID()

std::string GNENetHelper::AttributeCarriers::generateMeanDataID ( SumoXMLTag  type) const

generate meanData id

Definition at line 2231 of file GNENetHelper.cpp.

References OptionsCont::getOptions(), SUMO_TAG_MEANDATA_EDGE, SUMO_TAG_MEANDATA_LANE, and toString().

◆ getAdditionals()

◆ getConnections()

const std::set< GNEConnection * > & GNENetHelper::AttributeCarriers::getConnections ( ) const

get connections

Definition at line 976 of file GNENetHelper.cpp.

Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().

Here is the caller graph for this function:

◆ getCrossings()

const std::set< GNECrossing * > & GNENetHelper::AttributeCarriers::getCrossings ( ) const

get crossings

Definition at line 528 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveNetwork(), GNEChange_Crossing::redo(), GNEChange_Crossing::undo(), and GNEJunction::~GNEJunction().

Here is the caller graph for this function:

◆ getDataIntervals()

const std::set< GNEDataInterval * > & GNENetHelper::AttributeCarriers::getDataIntervals ( ) const

get all data intervals of network

Definition at line 1917 of file GNENetHelper.cpp.

Referenced by GNENet::enableUpdateData(), GNENet::getDataSetIntervalMaximumEnd(), and GNENet::getDataSetIntervalMinimumBegin().

Here is the caller graph for this function:

◆ getDataSets()

const std::set< GNEDataSet * > & GNENetHelper::AttributeCarriers::getDataSets ( ) const

get demand elements

Definition at line 1886 of file GNENetHelper.cpp.

Referenced by GNENet::clearDataElements(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEApplicationWindow::onUpdSaveDataElementsAs(), and GNENet::saveDataElementsConfirmed().

Here is the caller graph for this function:

◆ getDefaultType()

GNEDemandElement * GNENetHelper::AttributeCarriers::getDefaultType ( ) const

get default type

Definition at line 1497 of file GNENetHelper.cpp.

References DEFAULT_VTYPE_ID, SUMO_TAG_VTYPE, and TL.

Referenced by GNECalibratorDialog::onCmdAddFlow(), and DemandElementSelector::refreshDemandElementSelector().

Here is the caller graph for this function:

◆ getDemandElements()

const std::map< SumoXMLTag, std::set< GNEDemandElement * > > & GNENetHelper::AttributeCarriers::getDemandElements ( ) const

get demand elements

Definition at line 1387 of file GNENetHelper.cpp.

Referenced by GNENet::adjustPersonPlans(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNENet::clearDemandElements(), GNENet::computeDemandElements(), GNEVTypeDistribution::getAttributeDouble(), GNEDemandElement::getTypeParent(), GNENet::joinRoutes(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onCmdSaveSumoConfig(), DemandElementSelector::onCmdSelectDemandElement(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEFrameAttributeModules::AttributesEditorRow::refreshAttributesEditorRow(), DemandElementSelector::refreshDemandElementSelector(), GNENet::saveDemandElements(), GNENet::saveDemandElementsConfirmed(), GNEDeleteFrame::selectedACsToDelete(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNETypeDistributionFrame::TypeDistributionSelector::TypeDistributionSelector(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateRouteTable(), GNECalibratorDialog::updateVehicleTypeTable(), GNENet::writeDemandByType(), GNEVTypeDistribution::writeDemandElement(), GNENet::writeRouteComment(), GNENet::writeRoutes(), GNENet::writeVTypeComment(), GNENet::writeVTypeDistributions(), and GNENet::writeVTypes().

Here is the caller graph for this function:

◆ getEdges()

◆ getEdgeTypes()

const std::map< std::string, GNEEdgeType * > & GNENetHelper::AttributeCarriers::getEdgeTypes ( ) const

map with the ID and pointer to edgeTypes of net

Definition at line 669 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onUpdSaveEdgeTypes(), GNEApplicationWindow::onUpdSaveEdgeTypesAs(), GNENet::saveEdgeTypes(), and GNENet::saveNetwork().

Here is the caller graph for this function:

◆ getGenericDatas()

const std::map< SumoXMLTag, std::set< GNEGenericData * > > & GNENetHelper::AttributeCarriers::getGenericDatas ( ) const

get all generic datas

Definition at line 1975 of file GNENetHelper.cpp.

Referenced by GNEViewNet::buildColorRainbow(), GNENet::computeDataElements(), GNEViewNet::getEdgeDataAttrs(), GNEViewNet::getRelDataAttrs(), and GNEDeleteFrame::selectedACsToDelete().

Here is the caller graph for this function:

◆ getJunctions()

◆ getLanes()

const std::set< GNELane * > & GNENetHelper::AttributeCarriers::getLanes ( ) const

get lanes

Definition at line 891 of file GNENetHelper.cpp.

Referenced by GNEViewNet::buildColorRainbow(), GNENetworkSelector::onCmdUseSelectedElements(), and GNEEdge::~GNEEdge().

Here is the caller graph for this function:

◆ getMeanDatas()

const std::map< SumoXMLTag, std::set< GNEMeanData * > > & GNENetHelper::AttributeCarriers::getMeanDatas ( ) const

get meanDatas

Definition at line 2200 of file GNENetHelper.cpp.

Referenced by GNENet::clearMeanDataElements(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNENet::writeMeanDataEdgeComment(), GNENet::writeMeanDataLaneComment(), and GNENet::writeMeanDatas().

Here is the caller graph for this function:

◆ getNumberOfAdditionals()

int GNENetHelper::AttributeCarriers::getNumberOfAdditionals ( ) const

get number of additionals

Definition at line 1114 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), GNEApplicationWindow::onCmdSaveNeteditConfig(), GNEApplicationWindow::onCmdSaveSumoConfig(), and GNEApplicationWindow::onUpdSaveAdditionalsAs().

Here is the caller graph for this function:

◆ getNumberOfDemandElements()

int GNENetHelper::AttributeCarriers::getNumberOfDemandElements ( ) const

Return the number of demand elements.

Definition at line 1393 of file GNENetHelper.cpp.

References GNE_ATTR_DEFAULT_VTYPE, SUMO_TAG_VTYPE, and GNEAttributeCarrier::True.

Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), GNEApplicationWindow::onCmdSaveNeteditConfig(), GNEApplicationWindow::onCmdSaveSumoConfig(), and GNEApplicationWindow::onUpdSaveDemandElementsAs().

Here is the caller graph for this function:

◆ getNumberOfGenericDatas()

int GNENetHelper::AttributeCarriers::getNumberOfGenericDatas ( ) const

Return the number of generic datas.

Definition at line 1997 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveNeteditConfig().

Here is the caller graph for this function:

◆ getNumberOfMeanDatas()

int GNENetHelper::AttributeCarriers::getNumberOfMeanDatas ( ) const

get number of meanDatas

Definition at line 2206 of file GNENetHelper.cpp.

Referenced by GNEApplicationWindow::onCmdSaveNeteditConfig(), GNEApplicationWindow::onCmdSaveSumoConfig(), and GNEApplicationWindow::onUpdSaveMeanDatasAs().

Here is the caller graph for this function:

◆ getNumberOfSelectedAdditionals()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedAdditionals ( ) const

get number of selected additionals (Including POIs, Polygons, TAZs and Wires)

Definition at line 1222 of file GNENetHelper.cpp.

◆ getNumberOfSelectedConnections()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedConnections ( ) const

get number of selected connections

Definition at line 1014 of file GNENetHelper.cpp.

◆ getNumberOfSelectedContainers()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedContainers ( ) const

get number of selected containers

Definition at line 1723 of file GNENetHelper.cpp.

References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

◆ getNumberOfSelectedCrossings()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedCrossings ( ) const

get number of selected crossings

Definition at line 566 of file GNENetHelper.cpp.

◆ getNumberOfSelectedDemandElements()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedDemandElements ( ) const

get number of selected demand elements

Definition at line 1563 of file GNENetHelper.cpp.

◆ getNumberOfSelectedEdgeDatas()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeDatas ( ) const

get number of selected edge datas

Definition at line 2008 of file GNENetHelper.cpp.

References GNE_TAG_EDGEREL_SINGLE.

◆ getNumberOfSelectedEdgeRelDatas()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeRelDatas ( ) const

get number of selected edge rel datas

Definition at line 2021 of file GNENetHelper.cpp.

References SUMO_TAG_EDGEREL.

◆ getNumberOfSelectedEdges()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdges ( ) const

get number of selected edges

Definition at line 827 of file GNENetHelper.cpp.

Referenced by GNELane::buildEdgeOperations(), GNELane::buildTemplateOperations(), and GNEEdge::getMoveOperation().

Here is the caller graph for this function:

◆ getNumberOfSelectedEdgeTAZRel()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeTAZRel ( ) const

get number of selected edge TAZ Rels

Definition at line 2034 of file GNENetHelper.cpp.

References SUMO_TAG_TAZREL.

◆ getNumberOfSelectedJunctions()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedJunctions ( ) const

get number of selected junctions

Definition at line 498 of file GNENetHelper.cpp.

Referenced by GNEJunction::getPopUpMenu().

Here is the caller graph for this function:

◆ getNumberOfSelectedLanes()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedLanes ( ) const

get number of selected lanes

Definition at line 929 of file GNENetHelper.cpp.

◆ getNumberOfSelectedPersons()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersons ( ) const

get number of selected persons

Definition at line 1639 of file GNENetHelper.cpp.

References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

◆ getNumberOfSelectedPersonTrips()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersonTrips ( ) const

get number of selected person trips

Definition at line 1657 of file GNENetHelper.cpp.

References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

◆ getNumberOfSelectedPOIs()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedPOIs ( ) const

get number of selected POIs

Definition at line 1256 of file GNENetHelper.cpp.

References GNE_TAG_POIGEO, GNE_TAG_POILANE, POIGEO, and SUMO_TAG_POI.

◆ getNumberOfSelectedPolygons()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedPolygons ( ) const

get number of selected polygons

Definition at line 1244 of file GNENetHelper.cpp.

References SUMO_TAG_POLY.

◆ getNumberOfSelectedPureAdditionals()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedPureAdditionals ( ) const

get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires)

Definition at line 1236 of file GNENetHelper.cpp.

◆ getNumberOfSelectedRides()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedRides ( ) const

get number of selected rides

Definition at line 1701 of file GNENetHelper.cpp.

References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

◆ getNumberOfSelectedRoutes()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedRoutes ( ) const

get number of selected routes

Definition at line 1577 of file GNENetHelper.cpp.

References GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, and SUMO_TAG_ROUTE.

◆ getNumberOfSelectedStops()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedStops ( ) const

◆ getNumberOfSelectedTAZs()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZs ( ) const

get number of selected TAZs

Definition at line 1278 of file GNENetHelper.cpp.

References SUMO_TAG_TAZ, and TAZ.

◆ getNumberOfSelectedTAZSinks()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSinks ( ) const

get number of selected TAZSinks

Definition at line 1302 of file GNENetHelper.cpp.

References SUMO_TAG_TAZSINK.

◆ getNumberOfSelectedTAZSources()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSources ( ) const

get number of selected TAZSources

Definition at line 1290 of file GNENetHelper.cpp.

References SUMO_TAG_TAZSOURCE.

◆ getNumberOfSelectedTranships()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedTranships ( ) const

get number of selected tranships

Definition at line 1763 of file GNENetHelper.cpp.

References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

◆ getNumberOfSelectedTransport()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedTransport ( ) const

get number of selected transports

Definition at line 1741 of file GNENetHelper.cpp.

References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

◆ getNumberOfSelectedVehicles()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedVehicles ( ) const

get number of selected vehicles

Definition at line 1601 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.

◆ getNumberOfSelectedWalkingAreas()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalkingAreas ( ) const

get number of selected walkingAreas

Definition at line 634 of file GNENetHelper.cpp.

◆ getNumberOfSelectedWalks()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalks ( ) const

get number of selected walks

Definition at line 1679 of file GNENetHelper.cpp.

References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

◆ getNumberOfSelectedWires()

int GNENetHelper::AttributeCarriers::getNumberOfSelectedWires ( ) const

get number of selected Wires

Definition at line 1314 of file GNENetHelper.cpp.

◆ getSelectedAdditionals()

std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedAdditionals ( ) const

get selected additionals

Definition at line 1084 of file GNENetHelper.cpp.

◆ getSelectedAttributeCarriers()

std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers ( const bool  ignoreCurrentSupermode)

get all selected attribute carriers (or only relative to current supermode

Definition at line 371 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().

Here is the caller graph for this function:

◆ getSelectedConnections()

std::vector< GNEConnection * > GNENetHelper::AttributeCarriers::getSelectedConnections ( ) const

get selected connections

Definition at line 982 of file GNENetHelper.cpp.

◆ getSelectedCrossings()

std::vector< GNECrossing * > GNENetHelper::AttributeCarriers::getSelectedCrossings ( ) const

return all selected crossings

Definition at line 534 of file GNENetHelper.cpp.

◆ getSelectedDemandElements()

std::vector< GNEDemandElement * > GNENetHelper::AttributeCarriers::getSelectedDemandElements ( ) const

get selected demand elements

Definition at line 1372 of file GNENetHelper.cpp.

Referenced by GNEVehicle::getPopUpMenu().

Here is the caller graph for this function:

◆ getSelectedEdges()

std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::getSelectedEdges ( ) const

◆ getSelectedGenericDatas()

std::vector< GNEGenericData * > GNENetHelper::AttributeCarriers::getSelectedGenericDatas ( ) const

get selected generic datas

Definition at line 1960 of file GNENetHelper.cpp.

◆ getSelectedJunctions()

std::vector< GNEJunction * > GNENetHelper::AttributeCarriers::getSelectedJunctions ( ) const

return selected junctions

Definition at line 422 of file GNENetHelper.cpp.

Referenced by GNENet::joinSelectedJunctions(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), and GNEMoveFrame::show().

Here is the caller graph for this function:

◆ getSelectedLanes()

std::vector< GNELane * > GNENetHelper::AttributeCarriers::getSelectedLanes ( ) const

get selected lanes

Definition at line 897 of file GNENetHelper.cpp.

Referenced by GNEViewNet::addRestrictedLane(), GNELane::buildLaneOperations(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdResetOppositeLane(), GNEViewNet::removeRestrictedLane(), and GNEViewNet::restrictLane().

Here is the caller graph for this function:

◆ getSelectedShapes()

std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedShapes ( ) const

get selected shapes

Definition at line 1099 of file GNENetHelper.cpp.

Referenced by GNEViewNet::onCmdClosePolygon(), GNEViewNet::onCmdOpenPolygon(), GNEViewNet::onCmdSimplifyShape(), and GNEMoveFrame::show().

Here is the caller graph for this function:

◆ getSelectedWalkingAreas()

std::vector< GNEWalkingArea * > GNENetHelper::AttributeCarriers::getSelectedWalkingAreas ( ) const

return all selected walkingAreas

Definition at line 602 of file GNENetHelper.cpp.

◆ getStopIndex()

int GNENetHelper::AttributeCarriers::getStopIndex ( )

get (and update) stop index

Definition at line 1557 of file GNENetHelper.cpp.

◆ getWalkingAreas()

const std::set< GNEWalkingArea * > & GNENetHelper::AttributeCarriers::getWalkingAreas ( ) const

get walkingAreas

Definition at line 596 of file GNENetHelper.cpp.

Referenced by GNEViewParent::onCmdLocate(), and GNEJunction::~GNEJunction().

Here is the caller graph for this function:

◆ insertAdditional()

void GNENetHelper::AttributeCarriers::insertAdditional ( GNEAdditional additional)
protected

Insert a additional element int GNENet container.

Exceptions
processErrorif route was already inserted

Definition at line 2364 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().

Here is the caller graph for this function:

◆ insertConnection()

void GNENetHelper::AttributeCarriers::insertConnection ( GNEConnection connection)

insert connection

Definition at line 995 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEEdge::retrieveGNEConnection().

Here is the caller graph for this function:

◆ insertCrossing()

void GNENetHelper::AttributeCarriers::insertCrossing ( GNECrossing crossing)

insert crossing

Definition at line 547 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEJunction::retrieveGNECrossing().

Here is the caller graph for this function:

◆ insertDataInterval()

void GNENetHelper::AttributeCarriers::insertDataInterval ( GNEDataInterval dataInterval)

insert data interval

Definition at line 1923 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEDataSet::addDataIntervalChild().

Here is the caller graph for this function:

◆ insertDataSet()

void GNENetHelper::AttributeCarriers::insertDataSet ( GNEDataSet dataSet)
protected

Insert a demand element element int GNENet container.

Exceptions
processErrorif route was already inserted

Definition at line 2487 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEChange_DataSet::redo(), and GNEChange_DataSet::undo().

Here is the caller graph for this function:

◆ insertDemandElement()

◆ insertEdge()

void GNENetHelper::AttributeCarriers::insertEdge ( GNEEdge edge)
protected

Definition at line 2310 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().

Here is the caller graph for this function:

◆ insertEdgeType()

void GNENetHelper::AttributeCarriers::insertEdgeType ( GNEEdgeType edgeType)
protected

inserts a single edgeType into the net and into the underlying netbuild-container

Definition at line 2277 of file GNENetHelper.cpp.

References GUIGlObject::getMicrosimID().

Referenced by GNEChange_EdgeType::redo(), and GNEChange_EdgeType::undo().

Here is the caller graph for this function:

◆ insertGenericData()

void GNENetHelper::AttributeCarriers::insertGenericData ( GNEGenericData genericData)

insert generic data

Definition at line 2047 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEDataInterval::addGenericDataChild().

Here is the caller graph for this function:

◆ insertJunction()

void GNENetHelper::AttributeCarriers::insertJunction ( GNEJunction junction)
protected

Definition at line 2250 of file GNENetHelper.cpp.

References GNEJunction::getNBNode().

Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().

Here is the caller graph for this function:

◆ insertLane()

void GNENetHelper::AttributeCarriers::insertLane ( GNELane lane)

insert lane

Definition at line 910 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEEdge::addLane().

Here is the caller graph for this function:

◆ insertMeanData()

void GNENetHelper::AttributeCarriers::insertMeanData ( GNEMeanData meanData)
protected

Insert a meanData element int GNENet container.

Exceptions
processErrorif route was already inserted

Definition at line 2534 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::isPlacedInRTree(), and GNEMeanData::updateGeometry().

Referenced by GNEChange_MeanData::redo(), and GNEChange_MeanData::undo().

Here is the caller graph for this function:

◆ insertWalkingArea()

void GNENetHelper::AttributeCarriers::insertWalkingArea ( GNEWalkingArea walkingArea)

insert walkingArea

Definition at line 615 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().

Referenced by GNEJunction::retrieveGNEWalkingArea().

Here is the caller graph for this function:

◆ isNetworkElementAroundShape()

bool GNENetHelper::AttributeCarriers::isNetworkElementAroundShape ( GNEAttributeCarrier AC,
const PositionVector shape 
) const

◆ meanDataExist()

bool GNENetHelper::AttributeCarriers::meanDataExist ( const GNEMeanData meanData) const
protected

return true if given meanData exist

Definition at line 2520 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and TL.

Referenced by GNEChange_MeanData::~GNEChange_MeanData().

Here is the caller graph for this function:

◆ operator=()

AttributeCarriers & GNENetHelper::AttributeCarriers::operator= ( const AttributeCarriers )
privatedelete

Invalidated assignment operator.

◆ registerEdge()

GNEEdge * GNENetHelper::AttributeCarriers::registerEdge ( GNEEdge edge)

registers an edge with GNENet containers

Definition at line 759 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().

Here is the caller graph for this function:

◆ registerEdgeType()

GNEEdgeType * GNENetHelper::AttributeCarriers::registerEdgeType ( GNEEdgeType edgeType)

registers a edge in GNENet containers

Definition at line 659 of file GNENetHelper.cpp.

References GUIGlObject::getMicrosimID(), and GNEReferenceCounter::incRef().

Referenced by GNENet::initJunctionsAndEdges().

Here is the caller graph for this function:

◆ registerJunction()

GNEJunction * GNENetHelper::AttributeCarriers::registerJunction ( GNEJunction junction)

registers a junction in GNENet containers

Definition at line 435 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().

Here is the caller graph for this function:

◆ remapJunctionAndEdgeIds()

void GNENetHelper::AttributeCarriers::remapJunctionAndEdgeIds ( )

remap junction and edge IDs

Definition at line 156 of file GNENetHelper.cpp.

Referenced by GNENet::computeAndUpdate().

Here is the caller graph for this function:

◆ retrieveAdditional() [1/2]

GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the named additional.

Parameters
[in]idThe attribute carrier related with the additional element
[in]hardFailWhether attempts to retrieve a nonexisting additional should result in an exception

Definition at line 1041 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

◆ retrieveAdditional() [2/2]

GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional ( SumoXMLTag  type,
const std::string &  id,
bool  hardFail = true 
) const

Returns the named additional.

Parameters
[in]idThe attribute carrier related with the additional element
[in]typetag with the type of additional
[in]idThe id of the additional to return.
[in]hardFailWhether attempts to retrieve a nonexisting additional should result in an exception

Definition at line 1026 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(), GNEBusStop::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(), GNERouteHandler::parseTAZ(), GNEAdditional::replaceAdditionalParent(), GNEDemandElement::replaceFirstParentAdditional(), GNEDemandElement::replaceLastParentAdditional(), GNEGenericData::replaceParentTAZElement(), GNEAccess::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStop::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEWalk::setAttribute(), GNEElementTree::showAttributeCarrierParents(), and GNEViewNetHelper::ObjectsUnderCursor::updateAdditionalElements().

◆ retrieveAttributeCarrier()

GNEAttributeCarrier * GNENetHelper::AttributeCarriers::retrieveAttributeCarrier ( const GUIGlID  id,
bool  hardFail = true 
) const

get a single attribute carrier based on a GLID

Parameters
[in]idsthe GL IDs for which to retrieve the AC
[in]hardFailWhether attempts to retrieve a nonexisting AttributeCarrier should result in an exception
Exceptions
InvalidArgumentif GL ID doesn't have a associated Attribute Carrier

Definition at line 216 of file GNENetHelper.cpp.

References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().

Referenced by GNEViewNet::getAttributeCarriersInBoundary(), and GNEViewNet::recalculateBoundaries().

Here is the caller graph for this function:

◆ retrieveAttributeCarriers() [1/2]

std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers ( SumoXMLTag  tag = SUMO_TAG_NOTHING)

get the attribute carriers based on Type

Parameters
[in]typeThe GUI-type of the AC. SUMO_TAG_NOTHING returns all elements (Warning: bottleneck)

Definition at line 239 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), GNETagProperties::isDemandElement(), GNETagProperties::isGenericData(), GNETagProperties::isMeanData(), 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().

Here is the caller graph for this function:

◆ retrieveAttributeCarriers() [2/2]

std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers ( Supermode  supermode,
const bool  onlySelected 
)

get the attribute carriers based on supermode and selected

Definition at line 295 of file GNENetHelper.cpp.

References DATA, DEMAND, and NETWORK.

◆ retrieveConnection() [1/2]

GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection ( const std::string &  id,
bool  hardFail = true 
) const

get Connection by id

Parameters
[in]idThe id of the desired Connection
[in]hardFailWhether attempts to retrieve a nonexisting Connection should result in an exception
Exceptions
UnknownElement

Definition at line 941 of file GNENetHelper.cpp.

Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), and GNENet::deleteNetworkElement().

Here is the caller graph for this function:

◆ retrieveConnection() [2/2]

GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

get connection by Attribute Carrier

Parameters
[in]ACThe attribute carrier related with the connection
[in]hardFailWhether attempts to retrieve a nonexisting connection should result in an exception
Exceptions
UnknownElement

Definition at line 958 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID().

◆ retrieveCrossing()

GNECrossing * GNENetHelper::AttributeCarriers::retrieveCrossing ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

get Crossing by AC

Parameters
[in]ACThe attribute carrier related with the crossing
[in]hardFailWhether attempts to retrieve a nonexisting Crossing should result in an exception
Exceptions
UnknownElement

Definition at line 510 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID().

Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), and GNEFixNetworkElements::FixCrossingOptions::fixElements().

Here is the caller graph for this function:

◆ retrieveDataInterval()

GNEDataInterval * GNENetHelper::AttributeCarriers::retrieveDataInterval ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the data interval.

Parameters
[in]idThe attribute carrier related with the dataInterval element
[in]hardFailWhether attempts to retrieve a nonexisting data set should result in an exception

Definition at line 1903 of file GNENetHelper.cpp.

Referenced by GNEViewNet::deleteDataAttributeCarriers(), GNEChange_DataInterval::~GNEChange_DataInterval(), and GNEChange_GenericData::~GNEChange_GenericData().

Here is the caller graph for this function:

◆ retrieveDataSet() [1/2]

GNEDataSet * GNENetHelper::AttributeCarriers::retrieveDataSet ( const std::string &  id,
bool  hardFail = true 
) const

Returns the named data set.

Parameters
[in]idThe id of the data set to return.
[in]hardFailWhether attempts to retrieve a nonexisting data set should result in an exception

Definition at line 1857 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().

Here is the caller graph for this function:

◆ retrieveDataSet() [2/2]

GNEDataSet * GNENetHelper::AttributeCarriers::retrieveDataSet ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the named data set.

Parameters
[in]idThe attribute carrier related with the dataSet element
[in]hardFailWhether attempts to retrieve a nonexisting data set should result in an exception

Definition at line 1872 of file GNENetHelper.cpp.

◆ retrieveDemandElement() [1/2]

GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the named demand element.

Parameters
[in]idThe attribute carrier related with the demand element
[in]hardFailWhether attempts to retrieve a nonexisting demand element should result in an exception

Definition at line 1343 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

◆ retrieveDemandElement() [2/2]

GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement ( SumoXMLTag  type,
const std::string &  id,
bool  hardFail = true 
) const

Returns the named demand element.

Parameters
[in]typetag with the type of demand element
[in]idThe id of the demand element to return.
[in]hardFailWhether attempts to retrieve a nonexisting demand element should result in an exception

Definition at line 1328 of file GNENetHelper.cpp.

Referenced by GNEAdditionalHandler::buildCalibratorFlow(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleOverRoute(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::buildWalk(), GNERouteHandler::checkDuplicatedDemandElement(), GNERouteFrame::createPath(), GNEViewNet::deleteDemandAttributeCarriers(), GNEDemandElement::demandElementExist(), GNEJunction::drawDottedContoursBubble(), GNEJunction::drawDottedContoursShape(), GNERouteHandler::getContainerParent(), GNETypeDistributionFrame::TypeDistributionSelector::getCurrentTypeDistribution(), GNERouteHandler::getPersonParent(), GNERouteHandler::getPreviousPlanEdge(), GNEContainerFrame::GNEContainerFrame(), GNEPersonFrame::GNEPersonFrame(), GNETypeFrame::GNETypeFrame(), GNEVehicleFrame::GNEVehicleFrame(), GNECalibratorFlow::isValid(), GNERouteProbReroute::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNETranship::isValid(), GNETransport::isValid(), GNEVType::isValid(), GNEWalk::isValid(), GNEDemandElement::isValidDemandElementID(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditional::replaceDemandElementParent(), GNEDemandElement::replaceDemandElementParent(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStop::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEVehicle::setAttribute(), GNEWalk::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().

◆ retrieveEdge()

GNEEdge * GNENetHelper::AttributeCarriers::retrieveEdge ( const std::string &  id,
bool  hardFail = true 
) const

get edge by id

Parameters
[in]idThe id of the desired edge
[in]hardFailWhether attempts to retrieve a nonexisting edge should result in an exception
Exceptions
UnknownElement

Definition at line 711 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(), GNEVehicle::computePathElement(), 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(), GNEWalk::isValid(), GNEEdge::isValid(), GNERouteHandler::isViaAttributeValid(), GNEJunction::markAsModified(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEAttributeCarrier::parse(), GNERouteHandler::parseEdge(), GNEAdditionalHandler::parseEdges(), GNEMeanDataHandler::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(), GNEJunction::setMoveShape(), GNEElementTree::showHierarchicalElementChildren(), GNENet::splitEdgesBidi(), and GNENet::splitJunction().

◆ retrieveEdges()

std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::retrieveEdges ( GNEJunction from,
GNEJunction to 
) const

get all edges by from and to GNEJunction

Parameters
[in]idThe id of the desired edge
[in]hardFailWhether attempts to retrieve a nonexisting edge should result in an exception
Exceptions
UnknownElement

Definition at line 724 of file GNENetHelper.cpp.

Referenced by GNENet::createEdge(), GNEEdge::getOppositeEdges(), and GNECreateEdgeFrame::processClick().

Here is the caller graph for this function:

◆ retrieveEdgeType()

GNEEdgeType * GNENetHelper::AttributeCarriers::retrieveEdgeType ( const std::string &  id,
bool  hardFail = true 
) const

get edge type by id

Parameters
[in]idThe id of the desired edge type
[in]hardFailWhether attempts to retrieve a nonexisting edge type should result in an exception
Exceptions
UnknownElement

Definition at line 646 of file GNENetHelper.cpp.

Referenced by GNEEdgeType::isValid(), and GNECreateEdgeFrame::EdgeTypeSelector::onCmdDeleteEdgeType().

Here is the caller graph for this function:

◆ retrieveFirstDemandElement()

GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveFirstDemandElement ( SumoXMLTag  type) const

Returns the first demand element sorted by ID (or null if type is empty)

Parameters
[in]typetag with the type of demand element

Definition at line 1357 of file GNENetHelper.cpp.

◆ retrieveGenericData()

GNEGenericData * GNENetHelper::AttributeCarriers::retrieveGenericData ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the generic data.

Parameters
[in]idThe attribute carrier related with the genericData element
[in]hardFailWhether attempts to retrieve a nonexisting data set should result in an exception

Definition at line 1946 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

Referenced by GNEViewNet::deleteDataAttributeCarriers(), and GNEChange_GenericData::~GNEChange_GenericData().

Here is the caller graph for this function:

◆ retrieveGenericDataParameters() [1/2]

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 2098 of file GNENetHelper.cpp.

References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.

◆ retrieveGenericDataParameters() [2/2]

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 2070 of file GNENetHelper.cpp.

References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.

Referenced by GNEMatchGenericDataAttribute::onCmdSelectAttribute(), and GNEMatchGenericDataAttribute::onCmdSelectTag().

Here is the caller graph for this function:

◆ retrieveGenericDatas()

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 1981 of file GNENetHelper.cpp.

References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.

Referenced by GNEMatchGenericDataAttribute::onCmdProcessString().

Here is the caller graph for this function:

◆ retrieveJunction()

GNEJunction * GNENetHelper::AttributeCarriers::retrieveJunction ( const std::string &  id,
bool  hardFail = true 
) const

get junction by id

Parameters
[in]idThe id of the desired junction
[in]hardFailWhether attempts to retrieve a nonexisting junction should result in an exception
Exceptions
UnknownElement

Definition at line 403 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(), 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().

Here is the caller graph for this function:

◆ retrieveLane() [1/2]

GNELane * GNENetHelper::AttributeCarriers::retrieveLane ( const std::string &  id,
bool  hardFail = true,
bool  checkVolatileChange = false 
) const

get lane by id

Parameters
[in]idThe id of the desired lane
[in]hardFailWhether attempts to retrieve a nonexisting lane should result in an exception
[in]checkVolatileChangeUsed by additionals after recomputing with volatile options.
Exceptions
UnknownElement

Definition at line 839 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(), GNEAttributeCarrier::parse(), GNEAdditionalHandler::parseLanes(), GNEClosingLaneReroute::setAttribute(), and GNEElementTree::showHierarchicalElementChildren().

Here is the caller graph for this function:

◆ retrieveLane() [2/2]

GNELane * GNENetHelper::AttributeCarriers::retrieveLane ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

get lane by Attribute Carrier

Parameters
[in]ACThe attribute carrier related with the lane
[in]hardFailWhether attempts to retrieve a nonexisting lane should result in an exception
Exceptions
UnknownElement

Definition at line 873 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID().

◆ retrieveMeanData() [1/2]

GNEMeanData * GNENetHelper::AttributeCarriers::retrieveMeanData ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

Returns the named meanData.

Parameters
[in]idThe attribute carrier related with the meanData element
[in]hardFailWhether attempts to retrieve a nonexisting meanData should result in an exception

Definition at line 2186 of file GNENetHelper.cpp.

References GNETagProperties::getTag(), and GNEAttributeCarrier::getTagProperty().

◆ retrieveMeanData() [2/2]

GNEMeanData * GNENetHelper::AttributeCarriers::retrieveMeanData ( SumoXMLTag  type,
const std::string &  id,
bool  hardFail = true 
) const

Returns the named meanData.

Parameters
[in]idThe attribute carrier related with the meanData element
[in]typetag with the type of meanData
[in]idThe id of the meanData to return.
[in]hardFailWhether attempts to retrieve a nonexisting meanData should result in an exception

Definition at line 2171 of file GNENetHelper.cpp.

Referenced by GNEMeanDataHandler::buildEdgeMeanData(), GNEMeanDataHandler::buildLaneMeanData(), and GNEMeanData::isValid().

Here is the caller graph for this function:

◆ retrieveRerouterInterval()

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.

Parameters
[in]rerouterID
[in]beginSUMOTime begin
[in]endSUMOTime begin

Definition at line 1055 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().

Here is the caller graph for this function:

◆ retrieveWalkingArea()

GNEWalkingArea * GNENetHelper::AttributeCarriers::retrieveWalkingArea ( GNEAttributeCarrier AC,
bool  hardFail = true 
) const

get WalkingArea by AC

Parameters
[in]ACThe attribute carrier related with the walkingArea
[in]hardFailWhether attempts to retrieve a nonexisting WalkingArea should result in an exception
Exceptions
UnknownElement

Definition at line 578 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID().

◆ updateDemandElementFrames()

void GNENetHelper::AttributeCarriers::updateDemandElementFrames ( const GNETagProperties tagProperty)
protected

◆ updateEdgeID()

void GNENetHelper::AttributeCarriers::updateEdgeID ( GNEEdge edge,
const std::string &  newID 
)

update edge ID in container

Definition at line 802 of file GNENetHelper.cpp.

References NBEdge::getID(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEAttributeCarrier::getTagStr(), and GNEEdge::setMicrosimID().

Referenced by GNEEdge::setAttribute().

Here is the caller graph for this function:

◆ updateEdgeTypeID()

void GNENetHelper::AttributeCarriers::updateEdgeTypeID ( GNEEdgeType edgeType,
const std::string &  newID 
)

update edgeType ID in container

Definition at line 680 of file GNENetHelper.cpp.

References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().

Referenced by GNEEdgeType::setAttribute().

Here is the caller graph for this function:

◆ updateJunctionID()

void GNENetHelper::AttributeCarriers::updateJunctionID ( GNEJunction junction,
const std::string &  newID 
)

update junction ID in container

Definition at line 475 of file GNENetHelper.cpp.

References NBNode::buildCrossings(), GNEAttributeCarrier::getID(), Named::getID(), GNEJunction::getNBNode(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().

Referenced by GNEJunction::setAttribute().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ GNEAdditionalHandler

friend class GNEAdditionalHandler
friend

declare friend class

Definition at line 75 of file GNENetHelper.h.

◆ GNEChange_Additional

friend class GNEChange_Additional
friend

Definition at line 81 of file GNENetHelper.h.

◆ GNEChange_DataInterval

Definition at line 86 of file GNENetHelper.h.

◆ GNEChange_DataSet

friend class GNEChange_DataSet
friend

Definition at line 85 of file GNENetHelper.h.

◆ GNEChange_DemandElement

Definition at line 84 of file GNENetHelper.h.

◆ GNEChange_Edge

friend class GNEChange_Edge
friend

Definition at line 80 of file GNENetHelper.h.

◆ GNEChange_EdgeType

friend class GNEChange_EdgeType
friend

Definition at line 79 of file GNENetHelper.h.

◆ GNEChange_GenericData

Definition at line 87 of file GNENetHelper.h.

◆ GNEChange_Junction

friend class GNEChange_Junction
friend

Definition at line 78 of file GNENetHelper.h.

◆ GNEChange_MeanData

friend class GNEChange_MeanData
friend

Definition at line 88 of file GNENetHelper.h.

◆ GNEChange_Shape

friend class GNEChange_Shape
friend

Definition at line 82 of file GNENetHelper.h.

◆ GNEChange_TAZElement

friend class GNEChange_TAZElement
friend

Definition at line 83 of file GNENetHelper.h.

◆ GNEDataHandler

friend class GNEDataHandler
friend

Definition at line 77 of file GNENetHelper.h.

◆ GNERouteHandler

friend class GNERouteHandler
friend

Definition at line 76 of file GNENetHelper.h.

Field Documentation

◆ myAdditionals

std::map<SumoXMLTag, std::set<GNEAdditional*> > GNENetHelper::AttributeCarriers::myAdditionals
private

map with the tag and pointer to additional elements of net

Definition at line 744 of file GNENetHelper.h.

Referenced by AttributeCarriers().

◆ myConnections

std::set<GNEConnection*> GNENetHelper::AttributeCarriers::myConnections
private

set with connetions

Definition at line 741 of file GNENetHelper.h.

◆ myCrossings

std::set<GNECrossing*> GNENetHelper::AttributeCarriers::myCrossings
private

set with crossings

Definition at line 726 of file GNENetHelper.h.

◆ myDataIntervals

std::set<GNEDataInterval*> GNENetHelper::AttributeCarriers::myDataIntervals
private

set with all data intervals of network

Definition at line 753 of file GNENetHelper.h.

◆ myDataSets

std::set<GNEDataSet*> GNENetHelper::AttributeCarriers::myDataSets
private

set with the ID and pointer to all datasets of net

Definition at line 750 of file GNENetHelper.h.

◆ myDemandElements

std::map<SumoXMLTag, std::set<GNEDemandElement*> > GNENetHelper::AttributeCarriers::myDemandElements
private

map with the tag and pointer to demand elements of net

Definition at line 747 of file GNENetHelper.h.

Referenced by AttributeCarriers().

◆ myEdges

std::map<std::string, GNEEdge*> GNENetHelper::AttributeCarriers::myEdges
private

map with the ID and pointer to edges of net

Definition at line 735 of file GNENetHelper.h.

◆ myEdgeTypes

std::map<std::string, GNEEdgeType*> GNENetHelper::AttributeCarriers::myEdgeTypes
private

map with the ID and pointer to edgeTypes of net

Definition at line 732 of file GNENetHelper.h.

◆ myGenericDatas

std::map<SumoXMLTag, std::set<GNEGenericData*> > GNENetHelper::AttributeCarriers::myGenericDatas
private

map with the tag and pointer to all generic datas

Definition at line 756 of file GNENetHelper.h.

Referenced by AttributeCarriers().

◆ myJunctions

std::map<std::string, GNEJunction*> GNENetHelper::AttributeCarriers::myJunctions
private

map with the ID and pointer to junctions of net

Definition at line 723 of file GNENetHelper.h.

◆ myLanes

std::set<GNELane*> GNENetHelper::AttributeCarriers::myLanes
private

set with lanes

Definition at line 738 of file GNENetHelper.h.

◆ myMeanDatas

std::map<SumoXMLTag, std::set<GNEMeanData*> > GNENetHelper::AttributeCarriers::myMeanDatas
private

map with the tag and pointer to meanData elements of net

Definition at line 759 of file GNENetHelper.h.

Referenced by AttributeCarriers().

◆ myNet

GNENet* GNENetHelper::AttributeCarriers::myNet
private

pointer to net

Definition at line 717 of file GNENetHelper.h.

◆ myStopIndex

int GNENetHelper::AttributeCarriers::myStopIndex
private

stop index

Definition at line 720 of file GNENetHelper.h.

◆ myWalkingAreas

std::set<GNEWalkingArea*> GNENetHelper::AttributeCarriers::myWalkingAreas
private

set with walkingAreas

Definition at line 729 of file GNENetHelper.h.


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