61 double probability,
bool off,
double timeThreshold);
void moveGeometry(const Position &oldPos, const Position &offset)
change the position of the element geometry without saving in undoList
void removeRerouterInterval(GNERerouterInterval *rerouterInterval)
add rerouter interval
~GNERerouter()
Destructor.
Stores the information about how to visualize structures.
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
Position getPositionInView() const
Returns position of additional in view.
int getNumberOfOverlappedIntervals() const
get number of overlapped intervals
Position myPosition
position of rerouter in view
bool myOff
attribute to enable or disable inactive initially
const std::string & getParentName() const
Returns the name of the parent object (if any)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myProbability
probability of rerouter
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
void addRerouterInterval(GNERerouterInterval *rerouterInterval)
add rerouter interval
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
std::vector< GNERerouterInterval * > myRerouterIntervals
set with the GNERerouterInterval
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string myFilename
filename of rerouter
A point in 2D or 3D with translation and scaling methods.
GNERerouter(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNEEdge *> edges, const std::string &filename, double probability, bool off, double timeThreshold)
Constructor.
A road/street connecting two junctions (netedit-version)
void sortIntervals()
sort intervals
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::vector< GNERerouterInterval * > & getRerouterIntervals() const
get rerouter intervals
GNERerouter & operator=(const GNERerouter &)=delete
Invalidated assignment operator.
void updateGeometry()
update pre-computed geometry information
Static storage of an output device and its base (abstract) implementation.
double myTimeThreshold
attribute to configure activation time threshold
void openAdditionalDialog()
open GNERerouterDialog