![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEMeanDataHandler.h>
Public Member Functions | |
bool | beginParseAttributes (SumoXMLTag tag, const SUMOSAXAttributes &attrs) |
begin parse attributes | |
void | endParseAttributes () |
end parse attributes | |
GNEMeanDataHandler (GNENet *net, const std::string &filename, const bool allowUndoRedo, const bool overwrite) | |
Constructor. | |
bool | isErrorCreatingElement () const |
get flag for mark if a element wasn't created | |
void | parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj) |
parse SumoBaseObject (it's called recursivelly) | |
bool | postParserTasks () |
run post parser tasks | |
virtual | ~GNEMeanDataHandler () |
Destructor. | |
build functions | |
Builds edgeMeanData | |
bool | buildEdgeMeanData (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles, const std::vector< std::string > &writtenAttributes, const bool aggregate, const std::vector< std::string > &edgeIDs, const std::string &edgeFile, std::string excludeEmpty, const bool withInternal, const std::vector< std::string > &detectPersons, const double minSamples, const double maxTravelTime, const std::vector< std::string > &vTypes, const double speedThreshold) |
bool | buildLaneMeanData (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &id, const std::string &file, SUMOTime period, SUMOTime begin, SUMOTime end, const bool trackVehicles, const std::vector< std::string > &writtenAttributes, const bool aggregate, const std::vector< std::string > &edgeIDs, const std::string &edgeFile, std::string excludeEmpty, const bool withInternal, const std::vector< std::string > &detectPersons, const double minSamples, const double maxTravelTime, const std::vector< std::string > &vTypes, const double speedThreshold) |
Builds laneMeanData. | |
Protected Member Functions | |
bool | checkDuplicatedMeanDataElement (const SumoXMLTag tag, const std::string &id) |
check if given ID correspond to a duplicated mean data element | |
bool | checkExcludeEmpty (const SumoXMLTag tag, const std::string &id, const std::string &excludeEmpty) |
check if given excludeEmpty is valid | |
CommonXMLStructure::SumoBaseObject * | getEmbeddedRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const |
get embedded route from children | |
std::vector< SumoXMLAttr > | parseAttributes (const SumoXMLTag tag, const std::vector< std::string > &attrStrs) |
parse attributes | |
std::vector< GNEEdge * > | parseEdges (const SumoXMLTag tag, const std::vector< std::string > &edgeIDs) |
parse edges | |
void | parseParameters (const SUMOSAXAttributes &attrs) |
parse generic parameters | |
bool | writeError (const std::string &error) |
write error and enable error creating element | |
bool | writeErrorEmptyEdges (const SumoXMLTag tag, const std::string &id) |
write error "empty edges" | |
bool | writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id) |
write error "invalid list of lanes" | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving ids of current and parent element | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag) |
write error "invalid parent element" without giving IDs | |
bool | writeErrorInvalidParent (const SumoXMLTag tag, const SumoXMLTag parentTag, const std::string &parentID) |
write error "invalid parent element" giving only the id of parent element | |
bool | writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id) |
write error "invalid position" | |
bool | writeWarningDuplicated (const SumoXMLTag tag, const std::string &id, const SumoXMLTag checkedTag) |
write warning duplicated element | |
void | writeWarningOverwritting (const SumoXMLTag tag, const std::string &id) |
write warning overwritting element | |
check functions | |
void | checkParsedParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok) |
check parsed parents | |
bool | checkListOfVehicleTypes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &vTypeIDs) |
check list of IDs | |
bool | checkWithinDistribution (CommonXMLStructure::SumoBaseObject *obj) |
check if the given object is within a distribution (VType or routes) | |
bool | checkVehicleParents (CommonXMLStructure::SumoBaseObject *obj) |
check vehicle parents | |
bool | checkPersonPlanParents (CommonXMLStructure::SumoBaseObject *obj) |
check person plan parents | |
bool | checkContainerPlanParents (CommonXMLStructure::SumoBaseObject *obj) |
check container plan parents | |
bool | checkStopParents (CommonXMLStructure::SumoBaseObject *obj) |
check stop parents | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const int value, const bool canBeZero) |
check if the given int value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const double value, const bool canBeZero) |
check if the given double value is NOT negative | |
bool | checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const SUMOTime value, const bool canBeZero) |
check if the given SUMOTime value is NOT negative | |
bool | checkFileName (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const std::string &value) |
check if the given filename is valid | |
bool | checkValidAdditionalID (const SumoXMLTag tag, const std::string &value) |
check if the given additional ID is valid | |
bool | checkValidDetectorID (const SumoXMLTag tag, const std::string &value) |
check if the given detector ID is valid | |
bool | checkValidDemandElementID (const SumoXMLTag tag, const std::string &value) |
check if the given demand elmement ID is valid | |
Protected Attributes | |
const bool | myAllowUndoRedo |
allow undo/redo | |
CommonXMLStructure | myCommonXMLStructure |
common XML Structure | |
bool | myErrorCreatingElement = false |
flag for mark if a element wasn't created | |
const std::string | myFilename |
filename | |
GNENet * | myNet |
pointer to GNENet | |
const bool | myOverwrite |
check if overwrite | |
Private Member Functions | |
GNEMeanDataHandler ()=delete | |
invalidate default onstructor | |
GNEMeanDataHandler (const GNEMeanDataHandler &s)=delete | |
invalidate copy constructor | |
GNEMeanDataHandler & | operator= (const GNEMeanDataHandler &s)=delete |
invalidate assignment operator | |
parse meanMeanData attributes | |
parse edgeMeanData attributes | |
void | parseEdgeMeanData (const SUMOSAXAttributes &attrs) |
void | parseLaneMeanData (const SUMOSAXAttributes &attrs) |
parse laneMeanData attributes | |
Definition at line 36 of file GNEMeanDataHandler.h.
GNEMeanDataHandler::GNEMeanDataHandler | ( | GNENet * | net, |
const std::string & | filename, | ||
const bool | allowUndoRedo, | ||
const bool | overwrite | ||
) |
Constructor.
Definition at line 34 of file GNEMeanDataHandler.cpp.
|
virtual |
Destructor.
Definition at line 42 of file GNEMeanDataHandler.cpp.
|
privatedelete |
invalidate default onstructor
|
privatedelete |
invalidate copy constructor
|
inherited |
begin parse attributes
Definition at line 42 of file MeanDataHandler.cpp.
References CommonXMLStructure::abortSUMOBaseOBject(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::openSUMOBaseOBject(), MeanDataHandler::parseEdgeMeanData(), MeanDataHandler::parseLaneMeanData(), SUMO_TAG_MEANDATA_EDGE, SUMO_TAG_MEANDATA_LANE, SUMO_TAG_PARAM, TL, WRITE_WARNING, and CommonHandler::writeError().
Referenced by GNEGeneralHandler::beginTag().
|
virtual |
Implements MeanDataHandler.
Definition at line 53 of file GNEMeanDataHandler.cpp.
References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedMeanDataElement(), checkExcludeEmpty(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertMeanData(), myAllowUndoRedo, CommonHandler::myFilename, myNet, parseAttributes(), parseEdges(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_MAX_TRAVELTIME, SUMO_ATTR_MIN_SAMPLES, SUMO_ATTR_PERIOD, SUMO_TAG_MEANDATA_EDGE, TIME2STEPS, and TL.
|
virtual |
Builds laneMeanData.
Implements MeanDataHandler.
Definition at line 102 of file GNEMeanDataHandler.cpp.
References GNEUndoList::add(), GNEUndoList::begin(), checkDuplicatedMeanDataElement(), checkExcludeEmpty(), CommonHandler::checkNegative(), CommonHandler::checkValidAdditionalID(), GNEUndoList::end(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEReferenceCounter::incRef(), GNENetHelper::AttributeCarriers::insertMeanData(), myAllowUndoRedo, CommonHandler::myFilename, myNet, parseAttributes(), parseEdges(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_MAX_TRAVELTIME, SUMO_ATTR_MIN_SAMPLES, SUMO_ATTR_PERIOD, SUMO_TAG_MEANDATA_EDGE, SUMO_TAG_MEANDATA_LANE, TIME2STEPS, and TL.
|
protectedinherited |
check container plan parents
Definition at line 193 of file CommonHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
Referenced by RouteHandler::parseSumoBaseObject().
|
protected |
check if given ID correspond to a duplicated mean data element
Definition at line 185 of file GNEMeanDataHandler.cpp.
References GNENet::deleteMeanData(), GNENet::getAttributeCarriers(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myAllowUndoRedo, myNet, myOverwrite, GNENetHelper::AttributeCarriers::retrieveMeanData(), SUMO_TAG_DATASET, and CommonHandler::writeWarningDuplicated().
Referenced by buildEdgeMeanData(), and buildLaneMeanData().
|
protected |
check if given excludeEmpty is valid
Definition at line 206 of file GNEMeanDataHandler.cpp.
References DEFAULTS, SUMOXMLDefinitions::ExcludeEmptys, SUMO_ATTR_EXCLUDE_EMPTY, TLF, toString(), and CommonHandler::writeError().
Referenced by buildEdgeMeanData(), and buildLaneMeanData().
|
protectedinherited |
check if the given filename is valid
Definition at line 280 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidFilename(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRouteProbe(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
|
protectedinherited |
check list of IDs
Definition at line 122 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidTypeID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given double value is NOT negative
Definition at line 244 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
check if the given int value is NOT negative
Definition at line 226 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), buildEdgeMeanData(), GNEAdditionalHandler::buildLaneCalibrator(), buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRoute(), RouteHandler::parseRouteEmbedded(), and AdditionalHandler::parseRouteProbRerouteAttributes().
|
protectedinherited |
check if the given SUMOTime value is NOT negative
Definition at line 262 of file CommonHandler.cpp.
References time2string(), TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
check parsed parents
Definition at line 91 of file CommonHandler.cpp.
References CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_TAG_ERROR, TLF, toString(), and CommonHandler::writeError().
Referenced by AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePersonTrip(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseStop(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), and RouteHandler::parseWalk().
|
protectedinherited |
check person plan parents
Definition at line 178 of file CommonHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
Referenced by RouteHandler::parseSumoBaseObject().
|
protectedinherited |
check stop parents
Definition at line 208 of file CommonHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.
Referenced by RouteHandler::parseSumoBaseObject().
|
protectedinherited |
check if the given additional ID is valid
Definition at line 290 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildEdgeCalibrator(), buildEdgeMeanData(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), buildLaneMeanData(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), and GNEAdditionalHandler::buildVariableSpeedSign().
|
protectedinherited |
check if the given demand elmement ID is valid
Definition at line 314 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidVehicleID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), and GNERouteHandler::buildVTypeDistribution().
|
protectedinherited |
check if the given detector ID is valid
Definition at line 302 of file CommonHandler.cpp.
References SUMOXMLDefinitions::isValidDetectorID(), TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().
|
protectedinherited |
check vehicle parents
Definition at line 147 of file CommonHandler.cpp.
References CommonHandler::getEmbeddedRoute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, TLF, toString(), and CommonHandler::writeError().
Referenced by RouteHandler::parseSumoBaseObject().
|
protectedinherited |
check if the given object is within a distribution (VType or routes)
Definition at line 133 of file CommonHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMO_TAG_ROUTE_DISTRIBUTION, and SUMO_TAG_VTYPE_DISTRIBUTION.
|
inherited |
end parse attributes
Definition at line 70 of file MeanDataHandler.cpp.
References CommonXMLStructure::closeSUMOBaseOBject(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), CommonHandler::myCommonXMLStructure, MeanDataHandler::parseSumoBaseObject(), SUMO_TAG_MEANDATA_EDGE, and SUMO_TAG_MEANDATA_LANE.
Referenced by GNEGeneralHandler::endTag().
|
protectedinherited |
get embedded route from children
Definition at line 79 of file CommonHandler.cpp.
References CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), SUMO_ATTR_ID, and SUMO_TAG_ROUTE.
Referenced by CommonHandler::checkVehicleParents(), and RouteHandler::parseSumoBaseObject().
|
inherited |
get flag for mark if a element wasn't created
Definition at line 42 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement.
Referenced by GNEGeneralHandler::isErrorCreatingElement(), GNEApplicationWindow::loadDataElements(), and GNEApplicationWindow::onCmdOpenDataElements().
|
privatedelete |
invalidate assignment operator
|
protected |
parse attributes
Definition at line 169 of file GNEMeanDataHandler.cpp.
References SUMOXMLDefinitions::Attrs, TLF, toString(), and CommonHandler::writeError().
Referenced by buildEdgeMeanData(), and buildLaneMeanData().
|
privateinherited |
Definition at line 151 of file MeanDataHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addBoolAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), SUMOXMLDefinitions::ExcludeEmptys, FALSES, SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), StringBijection< T >::getString(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_AGGREGATE, SUMO_ATTR_BEGIN, SUMO_ATTR_DETECT_PERSONS, SUMO_ATTR_EDGES, SUMO_ATTR_EDGESFILE, SUMO_ATTR_END, SUMO_ATTR_EXCLUDE_EMPTY, SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_MAX_TRAVELTIME, SUMO_ATTR_MIN_SAMPLES, SUMO_ATTR_PERIOD, SUMO_ATTR_TRACK_VEHICLES, SUMO_ATTR_VTYPES, SUMO_ATTR_WITH_INTERNAL, SUMO_ATTR_WRITE_ATTRIBUTES, SUMO_TAG_ERROR, SUMO_TAG_MEANDATA_EDGE, and TIME2STEPS.
Referenced by MeanDataHandler::beginParseAttributes().
|
protected |
parse edges
Definition at line 151 of file GNEMeanDataHandler.cpp.
References GNENet::getAttributeCarriers(), myNet, GNENetHelper::AttributeCarriers::retrieveEdge(), TL, TLF, toString(), and CommonHandler::writeError().
Referenced by buildEdgeMeanData(), and buildLaneMeanData().
|
privateinherited |
parse laneMeanData attributes
Definition at line 202 of file MeanDataHandler.cpp.
References CommonXMLStructure::SumoBaseObject::addBoolAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::addStringAttribute(), CommonXMLStructure::SumoBaseObject::addStringListAttribute(), CommonXMLStructure::SumoBaseObject::addTimeAttribute(), SUMOXMLDefinitions::ExcludeEmptys, FALSES, SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::getOptSUMOTimeReporting(), StringBijection< T >::getString(), CommonHandler::myCommonXMLStructure, CommonXMLStructure::SumoBaseObject::setTag(), SUMO_ATTR_AGGREGATE, SUMO_ATTR_BEGIN, SUMO_ATTR_DETECT_PERSONS, SUMO_ATTR_EDGES, SUMO_ATTR_EDGESFILE, SUMO_ATTR_END, SUMO_ATTR_EXCLUDE_EMPTY, SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_MAX_TRAVELTIME, SUMO_ATTR_MIN_SAMPLES, SUMO_ATTR_PERIOD, SUMO_ATTR_TRACK_VEHICLES, SUMO_ATTR_VTYPES, SUMO_ATTR_WITH_INTERNAL, SUMO_ATTR_WRITE_ATTRIBUTES, SUMO_TAG_ERROR, SUMO_TAG_MEANDATA_LANE, and TIME2STEPS.
Referenced by MeanDataHandler::beginParseAttributes().
|
protectedinherited |
parse generic parameters
Definition at line 48 of file CommonHandler.cpp.
References SUMOSAXAttributes::get(), CommonXMLStructure::getCurrentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidParameterKey(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_ERROR, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, TLF, toString(), and CommonHandler::writeError().
Referenced by AdditionalHandler::beginParseAttributes(), and RouteHandler::beginParseAttributes().
|
inherited |
parse SumoBaseObject (it's called recursivelly)
Definition at line 92 of file MeanDataHandler.cpp.
References MeanDataHandler::buildEdgeMeanData(), MeanDataHandler::buildLaneMeanData(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getStringListAttribute(), CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::getTimeAttribute(), CommonXMLStructure::SumoBaseObject::markAsCreated(), MeanDataHandler::parseSumoBaseObject(), SUMO_ATTR_AGGREGATE, SUMO_ATTR_BEGIN, SUMO_ATTR_DETECT_PERSONS, SUMO_ATTR_EDGES, SUMO_ATTR_EDGESFILE, SUMO_ATTR_END, SUMO_ATTR_EXCLUDE_EMPTY, SUMO_ATTR_FILE, SUMO_ATTR_HALTING_SPEED_THRESHOLD, SUMO_ATTR_ID, SUMO_ATTR_MAX_TRAVELTIME, SUMO_ATTR_MIN_SAMPLES, SUMO_ATTR_PERIOD, SUMO_ATTR_TRACK_VEHICLES, SUMO_ATTR_VTYPES, SUMO_ATTR_WITH_INTERNAL, SUMO_ATTR_WRITE_ATTRIBUTES, SUMO_TAG_MEANDATA_EDGE, and SUMO_TAG_MEANDATA_LANE.
Referenced by MeanDataHandler::endParseAttributes(), and MeanDataHandler::parseSumoBaseObject().
|
virtual |
run post parser tasks
Implements MeanDataHandler.
Definition at line 46 of file GNEMeanDataHandler.cpp.
Referenced by GNEGeneralHandler::postParserTasks().
|
protectedinherited |
write error and enable error creating element
Definition at line 338 of file CommonHandler.cpp.
References CommonHandler::myErrorCreatingElement, and WRITE_ERROR.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), AdditionalHandler::checkCalibratorFlowParents(), AdditionalHandler::checkDetectPersons(), checkExcludeEmpty(), CommonHandler::checkFileName(), CommonHandler::checkListOfVehicleTypes(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), CommonHandler::checkNegative(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), CommonHandler::checkValidAdditionalID(), CommonHandler::checkValidDemandElementID(), CommonHandler::checkValidDetectorID(), CommonHandler::checkVehicleParents(), GNERouteHandler::checkViaAttribute(), GNERouteHandler::getDistributionElements(), DataHandler::myStartElement(), parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), GNERouteHandler::parseEdges(), parseEdges(), RouteHandler::parseFlow(), GNEAdditionalHandler::parseLanes(), RouteHandler::parseNestedCFM(), CommonHandler::parseParameters(), AdditionalHandler::parsePOIAttributes(), RouteHandler::parseRouteEmbedded(), RouteHandler::parseStopParameters(), RouteHandler::parseTranship(), RouteHandler::parseTrip(), RouteHandler::parseWalk(), CommonHandler::writeErrorEmptyEdges(), CommonHandler::writeErrorInvalidLanes(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidParent(), CommonHandler::writeErrorInvalidPosition(), and CommonHandler::writeWarningDuplicated().
|
protectedinherited |
write error "empty edges"
Definition at line 352 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildRoute(), and GNERouteHandler::buildVehicleEmbeddedRoute().
|
protectedinherited |
write error "invalid list of lanes"
Definition at line 358 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving ids of current and parent element
Definition at line 364 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNERouteHandler::buildContainerStop(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildRouteRef(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVTypeRef(), GNERouteHandler::buildWalk(), GNERouteHandler::parseEdge(), GNERouteHandler::parseJunction(), and GNERouteHandler::parseTAZ().
|
protectedinherited |
write error "invalid parent element" without giving IDs
Definition at line 376 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid parent element" giving only the id of parent element
Definition at line 370 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
|
protectedinherited |
write error "invalid position"
Definition at line 346 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildTrainStop().
|
protectedinherited |
write warning duplicated element
Definition at line 332 of file CommonHandler.cpp.
References TLF, toString(), and CommonHandler::writeError().
Referenced by GNEDataHandler::checkDuplicatedDataSet(), checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().
|
protectedinherited |
write warning overwritting element
Definition at line 326 of file CommonHandler.cpp.
References TLF, toString(), and WRITE_WARNING.
Referenced by GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().
|
protected |
allow undo/redo
Definition at line 73 of file GNEMeanDataHandler.h.
Referenced by buildEdgeMeanData(), buildLaneMeanData(), and checkDuplicatedMeanDataElement().
|
protectedinherited |
common XML Structure
Definition at line 56 of file CommonHandler.h.
Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), RouteHandler::beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), CommonHandler::checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), DataHandler::getAttributes(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), CommonHandler::parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), RouteHandler::parseRouteEmbedded(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseRouteRef(), RouteHandler::parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseVTypeRef(), and RouteHandler::parseWalk().
|
protectedinherited |
flag for mark if a element wasn't created
Definition at line 59 of file CommonHandler.h.
Referenced by CommonHandler::isErrorCreatingElement(), and CommonHandler::writeError().
|
protectedinherited |
filename
Definition at line 53 of file CommonHandler.h.
Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), buildEdgeMeanData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), and RouteHandler::parseVType().
|
protected |
pointer to GNENet
Definition at line 70 of file GNEMeanDataHandler.h.
Referenced by buildEdgeMeanData(), buildLaneMeanData(), checkDuplicatedMeanDataElement(), and parseEdges().
|
protected |
check if overwrite
Definition at line 76 of file GNEMeanDataHandler.h.
Referenced by checkDuplicatedMeanDataElement().