58 closingReroute(std::string closedEdgeId, std::vector<std::string> allowVehicles, std::vector<std::string> disallowVehicles);
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);
std::vector< std::string > getDisallowVehicles() const
get disallow vehicles
SUMOReal getProbability() const
get probability
~closingReroute()
destructor
std::vector< std::string > myAllowVehicles
vector of allow vehicles
GNERerouter & operator=(const GNERerouter &)
Invalidated assignment operator.
~GNERerouter()
Destructor.
bool addEdge(GNEEdge *edge)
add edge to rerouter
~destProbReroute()
destructor
Stores the information about how to visualize structures.
std::vector< closingReroute * > myClosingReroutes
vector with the closingReroutes
void setOff(bool off)
set attribute to enable or disable inactive initially
const std::string & getParentName() const
Returns the name of the parent object (if any)
void setProbability(SUMOReal probability)
set probability
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
bool myOff
attribute to enable or disable inactive initially
std::string getAttribute(SumoXMLAttr key) const
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
std::string getClosedEdgeId() const
get closed edge Id
bool getOff() const
get attribute to enable or disable inactive initially
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
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.
void insertDestProbReroutes(destProbReroute *dpr)
insert destiny probability reroute
void removeDestProbReroutes(destProbReroute *dpr)
remove a previously inserted destiny probability reroute
std::vector< destProbReroute * > getDestProbReroutes() const
get destiny probability reroutes
bool removeEdge(GNEEdge *edge)
remove edge of rerouter
routeProbReroute(std::string newRouteId, SUMOReal probability)
constructor
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
SUMOTime getBegin() const
get time begin
SUMOTime getEnd() const
get time end
std::string myNewRouteId
id of new route
void insertRouteProbReroute(routeProbReroute *rpr)
insert route probability reroute
std::string getNewRouteId() const
get new route id
std::string getFilename() const
get filename of rerouter
std::vector< std::string > getAllowVehicles() const
get allow vehicles
void insertClosingReroutes(closingReroute *cr)
insert a new closing reroute
std::vector< closingReroute * > getClosingReroutes() const
get closing reroutes
A road/street connecting two junctions (netedit-version)
void commmitAdditionalGeometryMoved(SUMOReal oldPosx, SUMOReal oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
std::vector< std::string > myDisallowVehicles
vector of disallow vehicles
rerouterInterval(SUMOTime begin, SUMOTime end)
constructor
std::vector< destProbReroute * > myDestProbReroutes
vector with the destProbReroutes
std::vector< routeProbReroute * > getRouteProbReroutes() const
get reoute probability reroutes
void removeClosingReroutes(closingReroute *cr)
remove a previously inserted closing reroute
void setProbability(SUMOReal probability)
set probability
~routeProbReroute()
destructor
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
closingReroute(std::string closedEdgeId, std::vector< std::string > allowVehicles, std::vector< std::string > disallowVehicles)
constructor
void updateGeometry()
update pre-computed geometry information
Position getPositionInView() const
Returns position of Rerouter in view.
Static storage of an output device and its base (abstract) implementation.
void insertDisallowVehicle(std::string vehicleid)
insert a disallow vehicle
~rerouterInterval()
destructor
void removeRouteProbReroute(routeProbReroute *rpr)
remove a previously inserted route probability reroute
SUMOReal getProbability() const
get probability
SUMOReal myProbability
probability of rerouter
std::string getNewDestinationId() const
id of new edge destination
void setFilename(std::string filename)
set filename of rerouter
destProbReroute(std::string newDestinationId, SUMOReal probability)
constructor
void openAdditionalDialog()
open GNERerouterDialog
SUMOReal getProbability() const
get probability of rerouter
std::string myClosedEdgeId
edge ID