20 #ifndef GNEDetectorE3_h 21 #define GNEDetectorE3_h 64 GNEDetectorE3(
const std::string&
id,
GNEViewNet* viewNet,
Position pos,
double freq,
const std::string& filename,
const double timeThreshold,
double speedThreshold);
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting...
const std::string & getParentName() const
Returns the name of the parent object (if any)
void moveAdditionalGeometry(double offsetx, double offsety)
change the position of the E3 geometry
void commmitAdditionalGeometryMoved(double oldPosx, double oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
GNEDetectorE3(const std::string &id, GNEViewNet *viewNet, Position pos, double freq, const std::string &filename, const double timeThreshold, double speedThreshold)
GNEDetectorE3 Constructor.
std::string getAttribute(SumoXMLAttr key) const
Position getPositionInView() const
Returns position of detector E3 in view.
Stores the information about how to visualize structures.
void addExitChild(GNEDetectorExit *exit)
add an Exit child
double myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
std::vector< GNEDetectorEntry * > myGNEDetectorEntrys
vector with the GNEDetectorE3EntryExits of the detector
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
int getNumberOfEntryChilds() const
get number of entry childs
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void updateGeometry()
update pre-computed geometry information
A point in 2D or 3D with translation and scaling methods.
std::vector< GNEDetectorExit * > myGNEDetectorExits
vector with the GNEDetectorE3EntryExits of the detector
void updateGeometryConnections()
update Connection's geometry
std::string generateEntryID()
gererate a new ID for an Entry detector child
GNEDetectorE3 & operator=(const GNEDetectorE3 &)
Invalidated assignment operator.
void writeAdditional(OutputDevice &device) const
writte additionals element into a xml file
double myFreq
frequency of E3 detector
An Element which don't belongs to GNENet but has influency in the simulation.
~GNEDetectorE3()
GNEDetectorE3 6Destructor.
int getNumberOfExitChilds() const
get number of exit childs
void addEntryChild(GNEDetectorEntry *entry)
add an Entry child
void removeEntryChild(GNEDetectorEntry *entry)
delete an Entry child
Static storage of an output device and its base (abstract) implementation.
std::string generateExitID()
gererate a new ID for an Exit detector child
void removeExitChild(GNEDetectorExit *exit)
delete an Exit child
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 ...