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.
Position myPosition
position of rerouter in view
const std::string & getParentName() const
Returns the name of the parent object (if any)
bool myOff
attribute to enable or disable inactive initially
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
GNERerouter(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNEEdge * > edges, const std::string &filename, double probability, bool off, double timeThreshold)
Constructor.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myProbability
probability of rerouter
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.
int getNumberOfOverlappedIntervals() const
get number of overlapped intervals
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
A road/street connecting two junctions (netedit-version)
const std::vector< GNERerouterInterval * > & getRerouterIntervals() const
get rerouter intervals
void sortIntervals()
sort intervals
An Element which don't belongs to GNENet but has influency in the simulation.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GNERerouter & operator=(const GNERerouter &)=delete
Invalidated assignment operator.
void updateGeometry()
update pre-computed geometry information
Position getPositionInView() const
Returns position of additional in view.
Static storage of an output device and its base (abstract) implementation.
double myTimeThreshold
attribute to configure activation time threshold
void openAdditionalDialog()
open GNERerouterDialog