66 myCalibratorParent(calibratorDialog->getEditedCalibrator()),
67 myRouteID(calibratorDialog->getEditedCalibrator()->getViewNet()->getNet()->generateCalibratorRouteID()),
112 const std::vector<GNEEdge*>&
163 return canParse<RGBColor>(value);
186 myColor = parse<RGBColor>(value);
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
GNEEdge * retrieveEdge(const std::string &id, bool failHard=true)
get edge by id
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
weights: time range begin
const std::vector< GNEEdge * > & getGNEEdges() const
get GNEEdges of Calibrator ROute
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNECalibratorRoute(GNECalibratorDialog *calibratorDialog)
default constructor (used only in GNECalibratorDialog)
std::vector< GNEEdge * > myEdges
edges of route
static std::vector< GNEEdge * > parseGNEEdges(GNENet *net, const std::string &value)
parse string into vector of GNEEdges
std::string myRouteID
route in which this flow is used
begin/end of the description of a route
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
static bool isValidID(const std::string &value)
true if value is a valid sumo ID
GNECalibrator * myCalibratorParent
pointer to calibrator parent
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static bool hasAttribute(SumoXMLTag tag, SumoXMLAttr attr)
check if an element with certain tag has a certain attribute
GNEEdge & getParentEdge()
Returns underlying parent edge.
void writeRoute(OutputDevice &device)
write Route values into a XML
friend class GNEChange_Attribute
declare friend class
void changeCalibratorRouteID(GNECalibratorRoute *route, const std::string &oldID)
change Calibrator Route ID
RGBColor myColor
color of ROute
~GNECalibratorRoute()
destructor
const std::string getID() const
function to support debugging
GNECalibratorRoute * retrieveCalibratorRoute(const std::string &id, bool hardFail=true) const
Returns the named calibrator route.
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
Dialog for edit calibrators.
bool isValid(SumoXMLAttr key, const std::string &value)
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
GNENet * getNet() const
get the net object
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
static bool isRouteValid(const std::vector< GNEEdge *> &edges, bool report)
check if a route is valid
static bool checkGNEEdgesValid(GNENet *net, const std::string &value, bool report)
check if a list of edge IDs is valid
GNELane * retrieveLane(const std::string &id, bool failHard=true, bool checkVolatileChange=false)
get lane by id
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
SumoXMLTag getTag() const
get XML Tag assigned to this object
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent