46 GNEDetectorE3(
const std::string&
id,
GNENet* net,
Position pos,
SUMOTime freq,
const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
bool blockMovement);
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An Element which don't belongs to GNENet but has influency in the simulation.
std::string getAttribute(SumoXMLAttr key) const
std::string myFilename
fielname of E3 detector
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
bool isAttributeEnabled(SumoXMLAttr key) const
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting.
double getAttributeDouble(SumoXMLAttr key) const
void updateGeometry()
update pre-computed geometry information
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList)
split geometry
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
~GNEDetectorE3()
GNEDetectorE3 Destructor.
GNEDetectorE3(const GNEDetectorE3 &)=delete
Invalidated copy constructor.
bool checkChildAdditionalRestriction() const
check restriction with the number of children
GNEDetectorE3 & operator=(const GNEDetectorE3 &)=delete
Invalidated assignment operator.
std::string getParentName() const
Returns the name of the parent object (if any)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Position myPosition
position of E3 in view
GNEMoveOperation * getMoveOperation(const double shapeOffset)
get move operation for the given shapeOffset
SUMOTime myFreq
frequency of E3 detector
GNEDetectorE3(const std::string &id, GNENet *net, Position pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, bool blockMovement)
GNEDetectorE3 Constructor.
SUMOTime myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
std::string myVehicleTypes
attribute vehicle types
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.