52 GNEChange(calibratorFlow->getCalibratorParent()->getViewNet()->getNet(), forward),
53 myCalibratorFlow(calibratorFlow),
54 myCalibratorRoute(NULL),
55 myCalibratorVehicleType(NULL) {
56 myCalibratorFlow->incRef(
"GNEChange_CalibratorItem");
61 GNEChange(calibratorRoute->getCalibratorParent()->getViewNet()->getNet(), forward),
62 myCalibratorFlow(NULL),
63 myCalibratorRoute(calibratorRoute),
64 myCalibratorVehicleType(NULL) {
70 GNEChange(calibratorVehicleType->getCalibratorParent()->getViewNet()->getNet(), forward),
150 throw ProcessError(
"There isn't a defined Calibrator item");
178 throw ProcessError(
"There isn't a defined Calibrator item");
214 throw ProcessError(
"There isn't a defined Calibrator item");
242 throw ProcessError(
"There isn't a defined Calibrator item");
259 throw ProcessError(
"There isn't a defined Calibrator item");
273 throw ProcessError(
"There isn't a defined Calibrator item");
void insertCalibratorVehicleType(GNECalibratorVehicleType *vehicleType)
insert Calibrator VehicleType in net
void removeCalibratorFlow(GNECalibratorFlow *flow)
remove calibrator flow
FXString undoName() const
return undoName
void requiereSaveAdditionals()
inform that additionals has to be saved
the function-object for an editing operation (abstract base)
void deleteCalibratorRoute(GNECalibratorRoute *route)
delete Calibrator Route in net
GNECalibratorRoute * myCalibratorRoute
modified calibrator route
void removeCalibratorVehicleType(GNECalibratorVehicleType *vehicleType)
remove calibrator vehicleType
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
void deleteCalibratorVehicleType(GNECalibratorVehicleType *vehicleType)
delete Calibrator VehicleType in net
#define WRITE_WARNING(msg)
GNEChange_CalibratorItem(GNECalibratorFlow *calibratorFlow, bool forward)
Constructor.
static OptionsCont & getOptions()
Retrieves the options.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void insertCalibratorRoute(GNECalibratorRoute *route)
insert Calibrator Route in net
void addCalibratorRoute(GNECalibratorRoute *route)
add calibrator route
void deleteCalibratorFlow(GNECalibratorFlow *flow)
delete Calibrator Flow in net
void removeCalibratorRoute(GNECalibratorRoute *route)
add calibrator route
void insertCalibratorFlow(GNECalibratorFlow *flow)
insert Calibrator Flow in net
const std::string getID() const
function to support debugging
GNECalibratorRoute * retrieveCalibratorRoute(const std::string &id, bool hardFail=true) const
Returns the named calibrator route.
void incRef(const std::string &debugMsg="")
Increarse reference.
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
void decRef(const std::string &debugMsg="")
Decrease reference.
void addCalibratorVehicleType(GNECalibratorVehicleType *vehicleType)
add calibrator vehicleType
void addCalibratorFlow(GNECalibratorFlow *flow)
add calibrator flow
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
GNECalibratorVehicleType * myCalibratorVehicleType
modified calibrator vehicle type
GNECalibratorVehicleType * retrieveCalibratorVehicleType(const std::string &id, bool hardFail=true) const
Returns the named calibrator vehicle type.
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
GNECalibratorFlow * myCalibratorFlow
modified calibrator flow
~GNEChange_CalibratorItem()
Destructor.
bool unreferenced()
check if object ins't referenced
GNECalibratorFlow * retrieveCalibratorFlow(const std::string &id, bool hardFail=true) const
Returns the named calibrator flow.
FXString redoName() const
get Redo name
SumoXMLTag getTag() const
get XML Tag assigned to this object
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent