 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
56 const std::string& filename,
const std::vector<std::string>& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
76 GNEDetectorE2(
const std::string&
id, std::vector<GNELane*> lanes,
GNENet* net,
double pos,
double endPos,
const SUMOTime freq,
const std::string& trafficLight,
77 const std::string& filename,
const std::vector<std::string>& vehicleTypes,
const std::string& name,
SUMOTime timeThreshold,
double speedThreshold,
double jamThreshold,
bool isAdditionalValid() const
check if current additional is valid to be writed into XML
Static storage of an output device and its base (abstract) implementation.
std::string getAttribute(SumoXMLAttr key) const
A NBNetBuilder extended by visualisation and editing capabilities.
void computePathElement()
compute pathElement
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
std::map< std::string, std::string > Map
parameters map
SumoXMLTag
Numbers representing SUMO-XML - element names.
double myJamThreshold
The minimum distance to the next standing vehicle in order to make this vehicle count as a participan...
void writeAdditional(OutputDevice &device) const
write additional element into a xml file
void updateGeometry()
update pre-computed geometry information
std::string myTrafficLight
Traffic light vinculated with this E2 Detector.
void drawPartialGL(const GUIVisualizationSettings &s, const GNELane *lane, const GNEPathManager::Segment *segment, const double offsetFront) const
Draws partial object (lane)
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 correspondent 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 getEndGeometryPositionOverLane() const
get end position over lane that is applicable to the shape
GNEDetectorE2(SumoXMLTag tag, GNENet *net)
default Constructor
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
double myEndPositionOverLane
end position over lane (only for Multilane E2 detectors)
double getStartGeometryPositionOverLane() const
get start position over lane that is applicable to the shape
std::string getAdditionalProblem() const
return a string with the current additional problem
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
double getAttributeDouble(SumoXMLAttr key) const
Stores the information about how to visualize structures.
~GNEDetectorE2()
Destructor.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.