104 for (
const auto &child : myElementDialogParent->getElement()->getChildAdditionals()) {
106 begin = GNEAttributeCarrier::parse<SUMOTime>(child->getAttribute(
SUMO_ATTR_END));
109 const SUMOTime duration = GNEAttributeCarrier::parse<SUMOTime>(
"3600");
113 insertElement(calibratorFlow);
119 return removeElement(calibratorFlow);
const std::string DEFAULT_VTYPE_ID
@ SUMO_TAG_VTYPE
description of a vehicle/person/container type
@ SUMO_TAG_ROUTE
description of a route
@ GNE_TAG_CALIBRATOR_FLOW
a flow definition within in Calibrator
@ GNE_ATTR_SAVEFILE
save file
@ SUMO_ATTR_END
weights: time range end
@ GNE_ATTR_DEFAULT_VTYPE_MODIFIED
Flag to check if a default VType was modified.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string & getFilename() const
get filename
FileBucket * getFileBucket() const override
get reference to fileBucket in which save this AC
static const std::string TRUE_STR
true value in string format (used for comparing boolean values in getAttribute(......
const std::string getID() const override
get ID (all Attribute Carriers have one)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
virtual std::string getAttribute(SumoXMLAttr key) const =0
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
CalibratorFlowsList(GNECalibratorDialog *calibratorDialog, FXVerticalFrame *contentFrame)
constructor
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
CalibratorFlowsList * myCalibratorFlows
list with calibrator flows
~GNECalibratorDialog()
destructor
GNECalibratorDialog(GNEAdditional *calibrator)
Constructor.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
void changeFileBucket(FileBucket *fileBucket)
change filebucket manually (used only during calibratorFlows creation)
FXVerticalFrame * myContentFrame
content frame
Result getResult() const
get result to indicate if this dialog was closed accepting or rejecting changes
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
void disableList(const std::string &reason)
disable list
bool isListValid() const
check if the current list is valid
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEDemandElement * >, std::hash< int > > & getDemandElements() const
get demand elements
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEApplicationWindow * getGNEApplicationWindow() const
get tag properties database
GNEUndoList * getUndoList() const
get undo list(used for simplify code)
GNEAdditional * myElement
pointer to edited element
T * getElement() const
get edited element
void resetChanges()
reset changes did in this dialog.
long acceptElementDialog()
close dialog commiting changes
long updateList()
update element list
dialog arguments, used for certain modal dialogs that can not be edited using tab