65 const SUMOTime freq,
const std::string& trafficLight,
const std::string& outputFilename,
const std::vector<std::string>& vehicleTypes,
66 const std::vector<std::string>& nextEdges,
const std::string& detectPersons,
const std::string& name,
67 const SUMOTime timeThreshold,
const double speedThreshold,
const double jamThreshold,
const bool friendlyPos,
91 GNELaneAreaDetector(
const std::string&
id,
GNENet* net,
const std::string& filename, std::vector<GNELane*> lanes,
const double pos,
const double endPos,
92 const SUMOTime freq,
const std::string& trafficLight,
const std::string& outputFilename,
const std::vector<std::string>& vehicleTypes,
93 const std::vector<std::string>& nextEdges,
const std::string& detectPersons,
const std::string& name,
94 const SUMOTime timeThreshold,
const double speedThreshold,
const double jamThreshold,
const bool friendlyPos,
240 const double exaggeration,
const bool drawGeometryPoints)
const;
244 const GNESegment* segment,
const double offsetFront,
245 const GUIGeometry& geometry,
const double exaggeration,
const bool movingGeometryPoints)
const;
249 const bool onlyContour,
const double offsetFront,
const GUIGeometry& geometry,
250 const double exaggeration)
const;
const std::string invalid_return< std::string >::value
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEDetector(GNENet *net, SumoXMLTag tag)
Default constructor.
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over lane.
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over junction.
bool myFriendlyPosition
Flag for friendly position.
void fixAdditionalProblem() override
fix additional problem
GNELaneAreaDetector & operator=(const GNELaneAreaDetector &)=delete
Invalidated assignment operator.
void computePathElement() override
compute pathElement
double myEndPosPosOverLane
The end position over lane.
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
Position getAttributePosition(SumoXMLAttr key) const override
PositionVector getAttributePositionVector(SumoXMLAttr key) const override
void writeAdditional(OutputDevice &device) const override
write additional element into a xml file
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this GNEAdditional
double myJamThreshold
The minimum distance to the next standing vehicle in order to make this vehicle count as a participan...
GNEMoveElementLaneDouble * myMoveElementLaneDouble
move element lane double
std::string myTrafficLight
Traffic light vinculated with this E2 Detector.
~GNELaneAreaDetector()
Destructor.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
bool myShow
show or hidde detector in sumo-gui
double getAttributeDouble(SumoXMLAttr key) const override
void drawE2PartialLane(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNESegment *segment, const double offsetFront, const GUIGeometry &geometry, const double exaggeration, const bool movingGeometryPoints) const
draw E2 partial lane
std::string getAttribute(SumoXMLAttr key) const override
double myStartPosOverLane
The start position over lane.
GNELaneAreaDetector(SumoXMLTag tag, GNENet *net)
default Constructor
void updateGeometry() override
update pre-computed geometry information
void drawE2(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double exaggeration, const bool drawGeometryPoints) const
draw E2 detector
Parameterised * getParameters() override
get parameters associated with this GNEAdditional
bool isValid(SumoXMLAttr key, const std::string &value) override
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting.
bool isAdditionalValid() const override
check if current additional is valid to be written into XML
GNELaneAreaDetector(const GNELaneAreaDetector &)=delete
Invalidated copy constructor.
SUMOTime myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
void drawE2PartialJunction(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const bool onlyContour, const double offsetFront, const GUIGeometry &geometry, const double exaggeration) const
draw E2 partial junction
std::string getAdditionalProblem() const override
return a string with the current additional problem
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
Static storage of an output device and its base (abstract) implementation.
std::map< std::string, std::string > Map
parameters map
Parameterised()
Default constructor.
A point in 2D or 3D with translation and scaling methods.