39 GNEChange(demandElement, forward, demandElement->isAttributeCarrierSelected()),
40 myDemandElement(demandElement),
41 myPath(demandElement->getPath()) {
42 myDemandElement->incRef(
"GNEChange_DemandElement");
56 for (
const auto& pathElement :
myPath) {
58 if (pathElement.getJunction()) {
80 for (
const auto& pathElement :
myPath) {
82 if (pathElement.getJunction()) {
140 for (
const auto& pathElement :
myPath) {
142 if (pathElement.getJunction()) {
@ SUMO_TAG_VTYPE
description of a vehicle type
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNETagProperties & getTagProperty() const
get Tag Property assigned to this object
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
GNENet * getNet() const
get pointer to net
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
~GNEChange_DemandElement()
Destructor.
const std::vector< GNEPathElements::PathElement > & myPath
reference to path vector
FXString redoName() const
get Redo name
GNEDemandElement * myDemandElement
full information regarding the demand element element that is to be created/deleted
FXString undoName() const
return undoName
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
const bool mySelectedElement
flag for check if element is selected
void addElementInParentsAndChildren(T *element)
add given element into parents and children (only use in redo() function)
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
void restoreHierarchicalContainers()
restore container (only use in undo() function)
const GNEHierarchicalContainer myOriginalHierarchicalContainer
Hierarchical container with parent and children.
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void computePath()=0
compute path
const std::string & getID() const
get ID
const T & getParents() const
get parents
void deleteDemandElement(GNEDemandElement *demandElement)
delete demand element element of GNENet container
bool demandElementExist(const GNEDemandElement *demandElement) const
return true if given demand element exist
void insertDemandElement(GNEDemandElement *demandElement)
Insert a demand element element int GNENet container.
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
retrieve all attribute carriers of Net
void requireSaveDemandElements(bool value)
inform that demand elements has to be saved
GNEViewNet * getViewNet() const
get view net
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
void refreshVehicleTypeSelector()
refresh vehicle type selector
VehicleTypeSelector * getVehicleTypeSelector() const
get vehicle type selector
GNEViewParent * getViewParent() const
get the net object
GNEVehicleTypeFrame * getVehicleTypeFrame() const
get frame for DEMAND_VEHICLETYPE