58 closingReroute(std::string closedEdgeId, std::vector<std::string> allowVehicles, std::vector<std::string> disallowVehicles);
112 std::string getNewDestinationId()
const;
142 std::string getNewRouteId()
const;
202 std::vector<closingReroute*> getClosingReroutes()
const;
205 std::vector<destProbReroute*> getDestProbReroutes()
const;
208 std::vector<routeProbReroute*> getRouteProbReroutes()
const;
232 GNERerouter(
const std::string&
id,
GNEViewNet* viewNet,
Position pos, std::vector<GNEEdge*> edges,
const std::string& filename,
SUMOReal probability,
bool off,
const std::set<rerouterInterval>& rerouterIntervals,
bool blocked);
SUMOReal getProbability() const
get probability of rerouter
GNERerouter(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNEEdge *> edges, const std::string &filename, SUMOReal probability, bool off, const std::set< rerouterInterval > &rerouterIntervals, bool blocked)
Constructor.
~closingReroute()
destructor
std::vector< std::string > myAllowVehicles
vector of allow vehicles
GNERerouter & operator=(const GNERerouter &)
Invalidated assignment operator.
~GNERerouter()
Destructor.
bool getOff() const
get attribute to enable or disable inactive initially
bool addEdge(GNEEdge *edge)
add edge to rerouter
Stores the information about how to visualize structures.
std::vector< closingReroute * > myClosingReroutes
vector with the closingReroutes
std::string getAttribute(SumoXMLAttr key) const
Position getPositionInView() const
Returns position of Rerouter in view.
void setOff(bool off)
set attribute to enable or disable inactive initially
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
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.
void writeAdditional(OutputDevice &device, const std::string &)
writte additional element into a xml file
void moveAdditionalGeometry(SUMOReal offsetx, SUMOReal offsety)
change the position of the rerouter geometry
An Element wich group additionalSet elements.
void removeDisallowVehicle(std::string vehicleid)
remove a previously inserted disallow vehicle
void removeAllowVehicle(std::string vehicleid)
remove a previously inserted allow vehicle
void insertAllowVehicle(std::string vehicleid)
insert an allow vehicle
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
std::set< rerouterInterval > myRerouterIntervals
set with the rerouterInterval
void setProbability(SUMOReal probability)
set probability of rerouter
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::vector< routeProbReroute * > myRouteProbReroutes
vector with the routeProbReroutes
std::string myFilename
filename of rerouter
A point in 2D or 3D with translation and scaling methods.
std::string myNewDestinationId
id of new edge destination
bool removeEdge(GNEEdge *edge)
remove edge of rerouter
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
std::string myNewRouteId
id of new route
std::vector< std::string > getDisallowVehicles() const
get disallow vehicles
A road/street connecting two junctions (netedit-version)
std::string getClosedEdgeId() const
get closed edge Id
void commmitAdditionalGeometryMoved(SUMOReal oldPosx, SUMOReal oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::vector< std::string > myDisallowVehicles
vector of disallow vehicles
std::vector< destProbReroute * > myDestProbReroutes
vector with the destProbReroutes
closingReroute(std::string closedEdgeId, std::vector< std::string > allowVehicles, std::vector< std::string > disallowVehicles)
constructor
void updateGeometry()
update pre-computed geometry information
Static storage of an output device and its base (abstract) implementation.
std::string getFilename() const
get filename of rerouter
void insertDisallowVehicle(std::string vehicleid)
insert a disallow vehicle
SUMOReal myProbability
probability of rerouter
std::vector< std::string > getAllowVehicles() const
get allow vehicles
void setFilename(std::string filename)
set filename of rerouter
void openAdditionalDialog()
open GNERerouterDialog
std::string myClosedEdgeId
edge ID