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