35 const std::vector<GNEJunction*>& junctionParents,
36 const std::vector<GNEEdge*>& edgeParents,
37 const std::vector<GNELane*>& laneParents,
38 const std::vector<GNEAdditional*>& additionalParents,
39 const std::vector<GNEShape*>& shapeParents,
40 const std::vector<GNETAZElement*>& TAZElementParents,
41 const std::vector<GNEDemandElement*>& demandElementParents,
42 const std::vector<GNEGenericData*>& genericDataParents,
43 const std::map<std::string, std::string>& parameters) :
45 GNEHierarchicalElement(net, tag, junctionParents, edgeParents, laneParents, additionalParents, shapeParents, TAZElementParents, demandElementParents, genericDataParents),
51 const std::vector<GNEJunction*>& junctionParents,
52 const std::vector<GNEEdge*>& edgeParents,
53 const std::vector<GNELane*>& laneParents,
54 const std::vector<GNEAdditional*>& additionalParents,
55 const std::vector<GNEShape*>& shapeParents,
56 const std::vector<GNETAZElement*>& TAZElementParents,
57 const std::vector<GNEDemandElement*>& demandElementParents,
58 const std::vector<GNEGenericData*>& genericDataParents,
59 const std::map<std::string, std::string>& parameters) :
60 GUIGlObject(type, TAZElementParent->generateChildID(tag)),
61 GNEHierarchicalElement(net, tag, junctionParents, edgeParents, laneParents, additionalParents, shapeParents, TAZElementParents, demandElementParents, genericDataParents),
110 const std::map<std::string, std::string>&
140 throw ProcessError(
"Calling non-implemented function checkChildTAZElementRestriction during saving of " +
getTagStr() +
". It muss be reimplemented in child class");
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * myNet
pointer to net
const GNETagProperties & myTagProperty
reference to tagProperty associated with this attribute carrier
const std::vector< GNETAZElement * > & getChildTAZElements() const
get child TAZElements
GNETAZElement * retrieveTAZElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named TAZElement.
A NBNetBuilder extended by visualisation and editing capabilities.
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
An Element which don't belongs to GNENet but has influency in the simulation.
GNETAZElement(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, const std::vector< GNEJunction * > &junctionParents, const std::vector< GNEEdge * > &edgeParents, const std::vector< GNELane * > &laneParents, const std::vector< GNEAdditional * > &additionalParents, const std::vector< GNEShape * > &shapeParents, const std::vector< GNETAZElement * > &TAZElementParents, const std::vector< GNEDemandElement * > &demandElementParents, const std::vector< GNEGenericData * > &genericDataParents, const std::map< std::string, std::string > ¶meters)
Constructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
void toogleAttribute(SumoXMLAttr key, const bool value, const int previousParameters)
method for enable or disable the attribute and nothing else (used in GNEChange_EnableAttribute)
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
const std::string & getID() const
get ID
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
virtual ~GNETAZElement()
Destructor.
GUIGlObject * getGUIGlObject()
get GUIGlObject associated with this AttributeCarrier
const std::map< std::string, std::string > & getACParametersMap() const
get parameters map
virtual bool checkChildTAZElementRestriction() const
check restriction with the number of children
bool isAttributeComputed(SumoXMLAttr key) const
virtual std::string getAttribute(SumoXMLAttr key) const =0
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
A window containing a gl-object's parameter.
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
An upper class for objects with additional parameters.
const std::map< std::string, std::string > & getParametersMap() const
Returns the inner key/value map.