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. | |
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 SUMOVTypeParameter *const | myType |
The type of the vehicle. | |
A routable thing such as a vehicle or person.
Definition at line 52 of file RORoutable.h.
|
inline |
Constructor.
[in] | pars | Parameter of this routable |
[in] | type | The type of the routable |
Definition at line 59 of file RORoutable.h.
|
inlinevirtual |
Destructor.
Definition at line 64 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 100 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 91 of file RORoutable.h.
References SUMOVehicleParameter::id, and myParameter.
Referenced by RORouteDef::addAlternative(), RONet::addPerson(), ROVehicle::addStop(), ROPerson::computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), RORoute::isValid(), ROVehicleByDepartureComperator::operator()(), RORouteDef::preComputeCurrentRoute(), and RORouteDef::repairCurrentRoute().
|
inline |
Returns the vehicle's maximum speed.
Definition at line 121 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 71 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 |
Definition at line 165 of file RORoutable.h.
References myRoutingSuccess.
|
inline |
Returns the type of the routable.
Definition at line 82 of file RORoutable.h.
References myType.
Referenced by ROVehicle::getChosenSpeedFactor(), ROEdge::getEmissionEffort(), ROVehicle::getLength(), getMaxSpeed(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), getVClass(), ROVehicle::getVehicleType(), ROEdge::restricts(), ROPerson::saveAsXML(), and ROVehicle::saveAsXML().
|
inline |
Definition at line 109 of file RORoutable.h.
References getType(), SVC_IGNORING, and SUMOVTypeParameter::vehicleClass.
Referenced by ROPerson::computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), RORoute::isValid(), ROEdge::prohibits(), RORouteDef::repairCurrentRoute(), and ROVehicle::saveAsXML().
|
inline |
Returns whether this object is ignoring transient permission changes (during routing)
Definition at line 116 of file RORoutable.h.
|
inline |
Definition at line 133 of file RORoutable.h.
References myParameter, and SUMOVehicleParameter::repetitionNumber.
Referenced by RONet::addVehicle().
|
inline |
Definition at line 129 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 105 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 148 of file RORoutable.h.
References saveAsXML().
|
private |
The vehicle's parameter.
Definition at line 186 of file RORoutable.h.
Referenced by getDepart(), getID(), getParameter(), isPartOfFlow(), isPublicTransport(), and setDepart().
|
protected |
Whether the last routing was successful.
Definition at line 193 of file RORoutable.h.
Referenced by ROPerson::computeIntermodal(), ROPerson::computeRoute(), ROVehicle::computeRoute(), and getRoutingSuccess().
|
private |