38 {}, {}, {}, {calibratorParent}, {}, {}, {}, {}, {}, {}),
40 myRoute(calibratorParent->getViewNet()->getNet()->getAttributeCarriers().demandElements.at(
SUMO_TAG_ROUTE).begin()->second) {
47 const RGBColor& color,
const std::string& departLane,
const std::string& departPos,
const std::string& departSpeed,
const std::string& arrivalLane,
48 const std::string& arrivalPos,
const std::string& arrivalSpeed,
const std::string& line,
int personNumber,
int containerNumber,
bool reroute,
49 const std::string& departPosLat,
const std::string& arrivalPosLat,
SUMOTime begin,
SUMOTime end) :
51 {}, {}, {}, {calibratorParent}, {}, {}, {}, {}, {}, {}),
224 }
else if (canParse<double>(value)) {
225 return (parse<double>(value) >= 0);
237 }
else if (canParse<double>(value)) {
238 return (parse<double>(value) >= 0);
243 return canParse<RGBColor>(value);
245 return canParse<SUMOTime>(value);
247 return canParse<SUMOTime>(value);
249 if ((value ==
"random") || (value ==
"free") || (value ==
"allowed") || (value ==
"best") || (value ==
"first")) {
255 if ((value ==
"random") || (value ==
"free") || (value ==
"random_free") || (value ==
"base") || (value ==
"last")) {
258 return canParse<double>(value);
261 if ((value ==
"random") || (value ==
"max")) {
264 return canParse<double>(value);
267 if (value ==
"current") {
273 if ((value ==
"random") || (value ==
"max")) {
276 return canParse<double>(value);
279 if (value ==
"current") {
282 return canParse<double>(value);
287 return canParse<int>(value) && parse<int>(value) >= 0;
289 return canParse<int>(value) && parse<int>(value) >= 0;
291 return canParse<bool>(value);
338 myColor = parse<RGBColor>(value);
341 myBegin = parse<SUMOTime>(value);
344 myEnd = parse<SUMOTime>(value);
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void updateGeometry()
update pre-computed geometry information
Position getPositionInView() const
Returns position of additional in view.
GNEDemandElement * myVehicleType
type of flow
GNEDemandElement * myRoute
route in which this flow is used
RGBColor myColor
color of flow
description of a vehicle type
GNECalibratorFlow(GNEAdditional *calibratorParent)
default constructor (used only in GNECalibratorDialog)
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
const std::string & getAdditionalID() const
~GNECalibratorFlow()
destructor
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string myLine
line of bus/container stop
Stores the information about how to visualize structures.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SUMOTime myEnd
time step end
std::string time2string(SUMOTime t)
std::string myDepartPosLat
departPosLat
weights: time range begin
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setDefaultValues()
change all attributes of additional with their default values (note: this cannot be undo) ...
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
const std::string DEFAULT_VTYPE_ID
void changeAdditionalID(const std::string &newID)
change ID of additional
A class that stores a 2D geometrical boundary.
begin/end of the description of a route
std::string myArrivalPos
arrival pos
std::string getParentName() const
Returns the name of the parent object.
std::string myArrivalPosLat
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
int myPersonNumber
number of person
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
std::string myDepartPos
depart position
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::string myDepartLane
depart lane
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
A point in 2D or 3D with translation and scaling methods.
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
std::string myArrivalLane
arrival lane
friend class GNEChange_Attribute
declare friend class
const std::vector< GNEAdditional * > & getAdditionalParents() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
const std::string getID() const
function to support debugging
std::string mySpeed
flow speed (String instead float because can be empty)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
int myContainerNumber
number of container
static StringBijection< LateralAlignment > LateralAlignments
lateral alignments
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
An Element which don't belongs to GNENet but has influency in the simulation.
std::string myArrivalSpeed
arrival speed
const std::string & getTagStr() const
get tag assigned to this object in string format
std::string myDepartSpeed
depart speed
std::string getGenericParametersStr() const
return generic parameters in string format
std::string myVehsPerHour
flows per hour (String instead float because can be empty)
GNENet * getNet() const
get the net object
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
parent of an additional element
static bool isValidTypeID(const std::string &value)
whether the given string is a valid id for an edge or vehicle type
bool hasString(const std::string &str) const
a flow definition within in Calibrator (used in NETEDIT)
GNELane * retrieveLane(const std::string &id, bool failHard=true, bool checkVolatileChange=false)
get lane by id
static bool isValidVehicleID(const std::string &value)
whether the given string is a valid id for a vehicle or flow
An Element which don't belongs to GNENet but has influency in the simulation.