the function-object for an editing operation (abstract base)
static void editValue(GNEDemandElement *distribution, const GNEDemandElement *key, const double newValue, GNEUndoList *undoList)
edit value
GNEDemandElement * myDistribution
the distribution to which all operations shall be applied
const double myNewProbability
the new value
const GNEDemandElement * myKey
the key
const bool myAddKey
flag for check if we're adding or removing key
const bool myEditingProbability
flag for check if we're editing value
static void addKey(GNEDemandElement *distribution, const GNEDemandElement *key, const double value, GNEUndoList *undoList)
add new key
const double myOriginalProbability
the original value
static void removeKey(GNEDemandElement *distribution, const GNEDemandElement *key, GNEUndoList *undoList)
remove key
~GNEChange_Distribution()
Destructor.
std::string undoName() const
return undoName
std::string redoName() const
get Redo name
the function-object for an editing operation (abstract base)