![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A routable thing such as a vehicle or person. More...
#include <RORoutable.h>
Public Member Functions | |
| virtual void | computeRoute (const RORouterProvider &provider, const bool removeLoops, MsgHandler *errorHandler)=0 |
| SUMOTime | getDepart () const |
| Returns the time the vehicle starts at, -1 for triggered vehicles. | |
| virtual const ROEdge * | getDepartEdge () const =0 |
| const std::string & | getID () const |
| Returns the id of the routable. | |
| double | getMaxSpeed () const |
| Returns the vehicle's maximum speed. | |
| const SUMOVehicleParameter & | getParameter () const |
| Returns the definition of the vehicle / person parameter. | |
| long long int | getRandomSeed () const |
| return vehicle-specific random number | |
| bool | getRoutingSuccess () const |
| const SUMOVTypeParameter * | getType () const |
| Returns the type of the routable. | |
| SUMOVehicleClass | getVClass () const |
| bool | ignoreTransientPermissions () const |
| Returns whether this object is ignoring transient permission changes (during routing) | |
| bool | isPartOfFlow () const |
| bool | isPublicTransport () const |
| RORoutable (const SUMOVehicleParameter &pars, const SUMOVTypeParameter *type) | |
| Constructor. | |
| void | setDepart (SUMOTime t) |
| update depart time (for triggered persons) | |
| void | write (OutputDevice *os, OutputDevice *const altos, OutputDevice *const typeos, OptionsCont &options, int quota) const |
| Saves the routable including the vehicle type (if it was not saved before). | |
| virtual | ~RORoutable () |
| Destructor. | |
Protected Member Functions | |
| virtual void | saveAsXML (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options, int cloneIndex=0) const =0 |
| Saves the complete routable description. | |
Protected Attributes | |
| bool | myRoutingSuccess |
| Whether the last routing was successful. | |
Private Member Functions | |
| RORoutable & | operator= (const RORoutable &src) |
| Invalidated assignment operator. | |
| RORoutable (const RORoutable &src) | |
| Invalidated copy constructor. | |
Private Attributes | |
| SUMOVehicleParameter | myParameter |
| The vehicle's parameter. | |
| const long long int | myRandomSeed |
| object-specific random constant | |
| const SUMOVTypeParameter *const | myType |
| The type of the vehicle. | |
A routable thing such as a vehicle or person.
Definition at line 53 of file RORoutable.h.
|
inline |
Constructor.
| [in] | pars | Parameter of this routable |
| [in] | type | The type of the routable |
Definition at line 60 of file RORoutable.h.
|
inlinevirtual |
Destructor.
Definition at line 68 of file RORoutable.h.
|
private |
Invalidated copy constructor.
|
pure virtual |
|
inline |
Returns the time the vehicle starts at, -1 for triggered vehicles.
Definition at line 108 of file RORoutable.h.
References SUMOVehicleParameter::depart, and myParameter.
Referenced by RONet::addPerson(), RONet::addVehicle(), and ROVehicleByDepartureComperator::operator()().
|
pure virtual |
|
inline |
Returns the id of the routable.
Definition at line 95 of file RORoutable.h.
References SUMOVehicleParameter::id, and myParameter.
Referenced by RORouteDef::addAlternative(), RONet::addPerson(), ROVehicle::addStop(), ROPerson::computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), RORoute::isPermitted(), RORoute::isValid(), ROVehicleByDepartureComperator::operator()(), RORouteDef::preComputeCurrentRoute(), and RORouteDef::repairCurrentRoute().
|
inline |
Returns the vehicle's maximum speed.
Definition at line 129 of file RORoutable.h.
References Parameterised::getParameter(), getType(), and MIN2().
Referenced by ROPerson::computeIntermodal(), RONet::createBulkRouteRequests(), ROEdge::getEffort(), ROEdge::getNoiseEffort(), and ROEdge::getTravelTime().
|
inline |
Returns the definition of the vehicle / person parameter.
Definition at line 75 of file RORoutable.h.
References myParameter.
Referenced by ROVehicle::addStop(), RONet::addVehicle(), ROVehicle::collectJumps(), ROPerson::computeRoute(), ROVehicle::computeRoute(), ROVehicle::getDepartureTime(), ROVehicle::ROVehicle(), ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
|
inline |
return vehicle-specific random number
Definition at line 100 of file RORoutable.h.
References myRandomSeed.
Referenced by ROEdge::getTravelTimeStaticRandomized().
|
inline |
Definition at line 173 of file RORoutable.h.
References myRoutingSuccess.
|
inline |
Returns the type of the routable.
Definition at line 86 of file RORoutable.h.
References myType.
Referenced by ROPerson::computeIntermodal(), ROVehicle::getChosenSpeedFactor(), ROEdge::getEmissionEffort(), ROVehicle::getLength(), getMaxSpeed(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), getVClass(), ROVehicle::getVTypeParameter(), ROEdge::restricts(), ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
|
inline |
Definition at line 117 of file RORoutable.h.
References getType(), SVC_IGNORING, and SUMOVTypeParameter::vehicleClass.
Referenced by ROPerson::computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), RORoute::isValid(), ROEdge::prohibits(), RORouteDef::repairCurrentRoute(), and ROVehicle::saveAsXML().
|
inline |
Returns whether this object is ignoring transient permission changes (during routing)
Definition at line 124 of file RORoutable.h.
|
inline |
Definition at line 141 of file RORoutable.h.
References myParameter, and SUMOVehicleParameter::repetitionNumber.
Referenced by RONet::addVehicle(), ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
|
inline |
Definition at line 137 of file RORoutable.h.
References SUMOVehicleParameter::line, and myParameter.
Referenced by RONet::addVehicle().
|
private |
Invalidated assignment operator.
|
protectedpure virtual |
Saves the complete routable description.
Saves the routable itself including the route and stops.
| [in] | os | The routes or alternatives output device to store the routable's description into |
| [in] | typeos | The types - output device to store additional types into |
| [in] | asAlternatives | Whether the route shall be saved as route alternatives |
| [in] | options | to find out about defaults and whether exit times for the edges shall be written |
| IOError | If something fails (not yet implemented) |
Implemented in ROPerson, and ROVehicle.
Referenced by write().
|
inline |
update depart time (for triggered persons)
Definition at line 113 of file RORoutable.h.
References SUMOVehicleParameter::depart, and myParameter.
|
inline |
Saves the routable including the vehicle type (if it was not saved before).
| [in] | os | The routes - output device to store the vehicle's description into |
| [in] | altos | The route alternatives - output device to store the vehicle's description into |
| [in] | typeos | The types - output device to store the vehicle types into |
| IOError | If something fails (not yet implemented) |
Definition at line 156 of file RORoutable.h.
References saveAsXML().
|
private |
The vehicle's parameter.
Definition at line 194 of file RORoutable.h.
Referenced by getDepart(), getID(), getParameter(), isPartOfFlow(), isPublicTransport(), and setDepart().
|
private |
object-specific random constant
Definition at line 200 of file RORoutable.h.
Referenced by getRandomSeed().
|
protected |
Whether the last routing was successful.
Definition at line 204 of file RORoutable.h.
Referenced by ROPerson::computeIntermodal(), ROPerson::computeRoute(), ROVehicle::computeRoute(), and getRoutingSuccess().
|
private |