![]() |
SUMO - Simulation of Urban MObility
|
A person as used by router. More...
#include <ROPerson.h>
Data Structures | |
class | PersonTrip |
A planItem can be a Trip which contains multiple tripItems. More... | |
class | PlanItem |
Every person has a plan comprising of multiple planItems. More... | |
class | Ride |
A ride is part of a trip, e.g., go from here to here by car or bus. More... | |
class | Stop |
A planItem can be a Stop. More... | |
class | TripItem |
A TripItem is part of a trip, e.g., go from here to here by car. More... | |
class | Walk |
A walk is part of a trip, e.g., go from here to here by foot. More... | |
Public Member Functions | |
void | addRide (const ROEdge *const from, const ROEdge *const to, const std::string &lines, const std::string &destStop) |
void | addStop (const SUMOVehicleParameter::Stop &stopPar, const ROEdge *const stopEdge) |
void | addTrip (const ROEdge *const from, const ROEdge *const to, const SVCPermissions modeSet, const std::string &vTypes, const SUMOReal departPos, const SUMOReal arrivalPos, const std::string &busStop) |
void | addWalk (const ConstROEdgeVector &edges, const SUMOReal duration, const SUMOReal speed, const SUMOReal departPos, const SUMOReal arrivalPos, const std::string &busStop) |
void | computeRoute (const RORouterProvider &provider, const bool removeLoops, MsgHandler *errorHandler) |
SUMOTime | getDepart () const |
Returns the time the vehicle starts at, -1 for triggered vehicles. More... | |
const ROEdge * | getDepartEdge () const |
Returns the first edge the person takes. More... | |
const std::string & | getID () const |
Returns the id of the vehicle. More... | |
SUMOReal | getMaxSpeed () const |
Returns the vehicle's maximum speed. More... | |
std::vector< PlanItem * > & | getPlan () |
bool | getRoutingSuccess () const |
const SUMOVTypeParameter * | getType () const |
Returns the type of the vehicle. More... | |
SUMOVehicleClass | getVClass () const |
ROPerson (const SUMOVehicleParameter &pars, const SUMOVTypeParameter *type) | |
Constructor. More... | |
void | saveAsXML (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const |
Saves the complete person description. More... | |
void | write (OutputDevice &os, OutputDevice *const altos, OutputDevice *const typeos, OptionsCont &options) const |
Saves the routable including the vehicle type (if it was not saved before). More... | |
virtual | ~ROPerson () |
Destructor. More... | |
Protected Attributes | |
SUMOVehicleParameter | myParameter |
The vehicle's parameter. More... | |
bool | myRoutingSuccess |
Whether the last routing was successful. More... | |
const SUMOVTypeParameter *const | myType |
The type of the vehicle. More... | |
Private Member Functions | |
bool | computeIntermodal (const RORouterProvider &provider, PersonTrip *const trip, const ROVehicle *const veh, MsgHandler *const errorHandler) |
ROPerson & | operator= (const ROPerson &src) |
Invalidated assignment operator. More... | |
ROPerson (const ROPerson &src) | |
Invalidated copy constructor. More... | |
Private Attributes | |
std::vector< PlanItem * > | myPlan |
The plan of the person. More... | |
A person as used by router.
Definition at line 57 of file ROPerson.h.
ROPerson::ROPerson | ( | const SUMOVehicleParameter & | pars, |
const SUMOVTypeParameter * | type | ||
) |
Constructor.
[in] | pars | Parameter of this person |
[in] | type | The type of the person |
Definition at line 58 of file ROPerson.cpp.
|
virtual |
|
private |
Invalidated copy constructor.
void ROPerson::addRide | ( | const ROEdge *const | from, |
const ROEdge *const | to, | ||
const std::string & | lines, | ||
const std::string & | destStop | ||
) |
Definition at line 97 of file ROPerson.cpp.
References myPlan.
Referenced by RORouteHandler::myStartElement().
void ROPerson::addStop | ( | const SUMOVehicleParameter::Stop & | stopPar, |
const ROEdge *const | stopEdge | ||
) |
Definition at line 115 of file ROPerson.cpp.
References myPlan.
Referenced by RORouteHandler::addStop().
void ROPerson::addTrip | ( | const ROEdge *const | from, |
const ROEdge *const | to, | ||
const SVCPermissions | modeSet, | ||
const std::string & | vTypes, | ||
const SUMOReal | departPos, | ||
const SUMOReal | arrivalPos, | ||
const std::string & | busStop | ||
) |
Definition at line 71 of file ROPerson.cpp.
References ROPerson::PersonTrip::addVehicle(), DEFAULT_VTYPE_ID, DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, RORoutable::getID(), RONet::getInstance(), ROPerson::PersonTrip::getVehicles(), RONet::getVehicleTypeSecure(), StringTokenizer::hasNext(), SUMOVehicleParameter::id, myPlan, SUMOVehicleParameter::setParameter, SVC_PASSENGER, toString(), VEHPARS_VTYPE_SET, and SUMOVehicleParameter::vtypeid.
Referenced by RORouteHandler::addPersonTrip().
void ROPerson::addWalk | ( | const ConstROEdgeVector & | edges, |
const SUMOReal | duration, | ||
const SUMOReal | speed, | ||
const SUMOReal | departPos, | ||
const SUMOReal | arrivalPos, | ||
const std::string & | busStop | ||
) |
Definition at line 106 of file ROPerson.cpp.
References myPlan.
Referenced by RORouteHandler::myStartElement().
|
private |
Definition at line 169 of file ROPerson.cpp.
References RORouteDef::addLoadedAlternative(), ROPerson::PersonTrip::addTripItem(), IntermodalRouter< E, L, N, V, INTERNALROUTER >::compute(), ROPerson::PersonTrip::getArrivalPos(), ROPerson::PersonTrip::getDepartPos(), ROPerson::PersonTrip::getDestination(), RORoutable::getID(), RouterProvider< E, L, N, V >::getIntermodalRouter(), ROPerson::PersonTrip::getModes(), ROPerson::PersonTrip::getOrigin(), ROVehicle::getRouteDefinition(), MsgHandler::inform(), SUMOVTypeParameter::maxSpeed, RORoutable::myRoutingSuccess, and RORoutable::myType.
Referenced by computeRoute(), and getPlan().
|
virtual |
Implements RORoutable.
Definition at line 196 of file ROPerson.cpp.
References computeIntermodal(), ROPerson::PersonTrip::getVehicles(), myPlan, and RORoutable::myRoutingSuccess.
Referenced by getDepartEdge().
|
inlineinherited |
Returns the time the vehicle starts at, -1 for triggered vehicles.
Definition at line 101 of file RORoutable.h.
References SUMOVehicleParameter::depart, and RORoutable::myParameter.
Referenced by RONet::addPerson(), RONet::addVehicle(), and ROVehicleByDepartureComperator::operator()().
|
inlinevirtual |
Returns the first edge the person takes.
Implements RORoutable.
Definition at line 284 of file ROPerson.h.
References computeRoute(), myPlan, and ROPerson::PlanItem::saveAsXML().
|
inlineinherited |
Returns the id of the vehicle.
Definition at line 92 of file RORoutable.h.
References SUMOVehicleParameter::id, and RORoutable::myParameter.
Referenced by RORouteDef::addAlternative(), RONet::addPerson(), ROVehicle::addStop(), addTrip(), computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), ROVehicleByDepartureComperator::operator()(), RORouteDef::preComputeCurrentRoute(), and RORouteDef::repairCurrentRoute().
|
inlineinherited |
Returns the vehicle's maximum speed.
Definition at line 112 of file RORoutable.h.
References RORoutable::computeRoute(), RORoutable::getDepartEdge(), SUMOVTypeParameter::maxSpeed, and RORoutable::myType.
Referenced by RONet::createBulkRouteRequests().
|
inline |
Definition at line 305 of file ROPerson.h.
References computeIntermodal(), and myPlan.
Referenced by RORouteHandler::closePerson(), and RORouteHandler::myStartElement().
|
inlineinherited |
Definition at line 144 of file RORoutable.h.
References RORoutable::myRoutingSuccess, and RORoutable::saveAsXML().
Referenced by RONet::saveAndRemoveRoutesUntil().
|
inlineinherited |
Returns the type of the vehicle.
Definition at line 83 of file RORoutable.h.
References RORoutable::myType.
Referenced by ROVehicle::getChosenSpeedFactor(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), and RORoutable::getVClass().
|
inlineinherited |
Definition at line 106 of file RORoutable.h.
References RORoutable::getType(), SVC_IGNORING, and SUMOVTypeParameter::vehicleClass.
Referenced by RONet::createBulkRouteRequests(), ROEdge::isConnectedTo(), and ROEdge::prohibits().
|
virtual |
Saves the complete person description.
Saves the person itself including the trips 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) |
Implements RORoutable.
Definition at line 221 of file ROPerson.cpp.
References OutputDevice::closeTag(), Parameterised::getMap(), RORoutable::myParameter, myPlan, RORoutable::myType, OutputDevice::openTag(), SUMOVTypeParameter::saved, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, SUMO_TAG_PERSON, SUMOVTypeParameter::write(), SUMOVehicleParameter::write(), and OutputDevice::writeAttr().
|
inlineinherited |
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 131 of file RORoutable.h.
References RORoutable::saveAsXML().
Referenced by RONet::saveAndRemoveRoutesUntil().
|
protectedinherited |
The vehicle's parameter.
Definition at line 165 of file RORoutable.h.
Referenced by ROVehicle::addStop(), RORoutable::getDepart(), ROVehicle::getDepartureTime(), RORoutable::getID(), ROVehicle::getParameter(), ROVehicle::ROVehicle(), ROVehicle::saveAsXML(), and saveAsXML().
|
private |
The plan of the person.
Definition at line 316 of file ROPerson.h.
Referenced by addRide(), addStop(), addTrip(), addWalk(), computeRoute(), getDepartEdge(), getPlan(), saveAsXML(), and ~ROPerson().
|
protectedinherited |
Whether the last routing was successful.
Definition at line 171 of file RORoutable.h.
Referenced by computeIntermodal(), ROVehicle::computeRoute(), computeRoute(), and RORoutable::getRoutingSuccess().
|
protectedinherited |
The type of the vehicle.
Definition at line 168 of file RORoutable.h.
Referenced by computeIntermodal(), RORoutable::getMaxSpeed(), RORoutable::getType(), ROVehicle::saveAsXML(), and saveAsXML().