 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEDetectorE2_h
17 #define GNEDetectorE2_h
54 const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
double jamThreshold,
bool friendlyPos,
bool blockMovement);
72 GNEDetectorE2(
const std::string&
id, std::vector<GNELane*> lanes,
GNEViewNet* viewNet,
double pos,
double endPos,
SUMOTime freq,
const std::string& filename,
const std::string& vehicleTypes,
73 const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
double jamThreshold,
bool friendlyPos,
bool blockMovement);
void checkE2MultilaneIntegrity()
check if E2 is valid (all of their lanes are connected, it must called after every operation which in...
bool isAdditionalValid() const
check if current additional is valid to be writed into XML (by default true, can be reimplemented in ...
double myLength
E2 detector length.
std::string getAttribute(SumoXMLAttr key) const
SUMOTime myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
void fixAdditionalProblem()
fix additional problem
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
double myJamThreshold
The minimum distance to the next standing vehicle in order to make this vehicle count as a participan...
double getLength() const
get length of E2 Detector
void updateGeometry()
update pre-computed geometry information
bool myE2valid
flag to check if E2 multilane is valid or invalid
bool isAttributeEnabled(SumoXMLAttr key) const
A point in 2D or 3D with translation and scaling methods.
GNEDetectorE2 & operator=(const GNEDetectorE2 &)=delete
Invalidated assignment operator.
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
double myEndPositionOverLane
end position over lane (only for Multilane E2 detectors)
std::string getAdditionalProblem() const
return a string with the current additional problem
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Stores the information about how to visualize structures.
~GNEDetectorE2()
Destructor.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
GNEDetectorE2(const std::string &id, GNELane *lane, GNEViewNet *viewNet, double pos, double length, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, SUMOTime timeThreshold, double speedThreshold, double jamThreshold, bool friendlyPos, bool blockMovement)
Constructor for Single-Lane E2 detectors.