Eclipse 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 | computeRoute (const RORouterProvider &provider, const bool removeLoops, MsgHandler *errorHandler) |
SUMOTime | getDepart () const |
Returns the time the vehicle starts at, -1 for triggered vehicles. | |
const ROEdge * | getDepartEdge () const |
Returns the first edge the person takes. | |
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. | |
std::vector< PlanItem * > & | getPlan () |
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 |
ROPerson (const SUMOVehicleParameter &pars, const SUMOVTypeParameter *type) | |
Constructor. | |
void | saveAsXML (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const |
Saves the complete person description. | |
void | setDepart (SUMOTime t) |
update depart time (for triggered persons) | |
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). | |
virtual | ~ROPerson () |
Destructor. | |
Static Public Member Functions | |
static void | addRide (std::vector< PlanItem * > &plan, const ROEdge *const from, const ROEdge *const to, const std::string &lines, double arrivalPos, const std::string &destStop, const std::string &group) |
static void | addStop (std::vector< PlanItem * > &plan, const SUMOVehicleParameter::Stop &stopPar, const ROEdge *const stopEdge) |
static void | addTrip (std::vector< PlanItem * > &plan, const std::string &id, const ROEdge *const from, const ROEdge *const to, const SVCPermissions modeSet, const std::string &vTypes, const double departPos, const std::string &stopOrigin, const double arrivalPos, const std::string &busStop, double walkFactor, const std::string &group) |
static void | addWalk (std::vector< PlanItem * > &plan, const ConstROEdgeVector &edges, const double duration, const double speed, const double departPos, const double arrivalPos, const std::string &busStop) |
Protected Attributes | |
bool | myRoutingSuccess |
Whether the last routing was successful. | |
Private Member Functions | |
bool | computeIntermodal (SUMOTime time, const RORouterProvider &provider, const PersonTrip *const trip, const ROVehicle *const veh, std::vector< TripItem * > &resultItems, MsgHandler *const errorHandler) |
ROPerson & | operator= (const ROPerson &src) |
Invalidated assignment operator. | |
ROPerson (const ROPerson &src) | |
Invalidated copy constructor. | |
Private Attributes | |
SUMOVehicleParameter | myParameter |
The vehicle's parameter. | |
std::vector< PlanItem * > | myPlan |
The plan of the person. | |
const SUMOVTypeParameter *const | myType |
The type of the vehicle. | |
A person as used by router.
Definition at line 50 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 48 of file ROPerson.cpp.
|
virtual |
|
private |
Invalidated copy constructor.
|
static |
Definition at line 116 of file ROPerson.cpp.
Referenced by RORouteHandler::addRide().
|
static |
Definition at line 133 of file ROPerson.cpp.
Referenced by RORouteHandler::addStop().
|
static |
Definition at line 61 of file ROPerson.cpp.
References ROPerson::PersonTrip::addVehicle(), DEFAULT_BIKETYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departProcedure, RONet::getInstance(), ROPerson::PersonTrip::getVehicles(), RONet::getVehicleTypeSecure(), GIVEN, StringTokenizer::hasNext(), SUMOVehicleParameter::id, SUMOVehicleParameter::parametersSet, SVC_BICYCLE, SVC_PASSENGER, SVC_TAXI, toString(), TRIGGERED, ROPerson::PersonTrip::updateModes(), SUMOVTypeParameter::vehicleClass, VEHPARS_DEPARTPOS_SET, VEHPARS_VTYPE_SET, and SUMOVehicleParameter::vtypeid.
Referenced by RORouteHandler::addPersonTrip().
|
static |
Definition at line 124 of file ROPerson.cpp.
Referenced by RORouteHandler::addWalk().
|
private |
Definition at line 344 of file ROPerson.cpp.
References RORouteDef::addLoadedAlternative(), ROPerson::PersonTrip::getArrivalPos(), ROPerson::PersonTrip::getDepartPos(), ROPerson::PersonTrip::getDestination(), ROPerson::PersonTrip::getGroup(), RORoutable::getID(), RouterProvider< E, L, N, V >::getIntermodalRouter(), ROEdge::getLength(), RORoutable::getMaxSpeed(), ROPerson::PersonTrip::getModes(), OptionsCont::getOptions(), ROPerson::PersonTrip::getOrigin(), ROEdge::getPredecessors(), ROVehicle::getRouteDefinition(), ROPerson::PersonTrip::getStopDest(), ROPerson::PersonTrip::getStopOrigin(), ROEdge::getSuccessors(), RORoutable::getVClass(), ROPerson::PersonTrip::getWalkFactor(), MsgHandler::inform(), ROEdge::isTazConnector(), myPlan, RORoutable::myRoutingSuccess, RORoute::setProbability(), STEPS2TIME, string2time(), SVC_TAXI, and TIME2STEPS.
Referenced by computeRoute().
|
virtual |
Implements RORoutable.
Definition at line 413 of file ROPerson.cpp.
References computeIntermodal(), SUMOVehicleParameter::depart, RORoutable::getParameter(), ROPerson::PersonTrip::getVehicles(), myPlan, RORoutable::myRoutingSuccess, and ROPerson::PersonTrip::setItems().
|
inlineinherited |
Returns the time the vehicle starts at, -1 for triggered vehicles.
Definition at line 100 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 419 of file ROPerson.h.
References myPlan.
|
inlineinherited |
Returns the id of the routable.
Definition at line 91 of file RORoutable.h.
References SUMOVehicleParameter::id, and RORoutable::myParameter.
Referenced by RORouteDef::addAlternative(), RONet::addPerson(), ROVehicle::addStop(), computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), RORoute::isValid(), ROVehicleByDepartureComperator::operator()(), RORouteDef::preComputeCurrentRoute(), and RORouteDef::repairCurrentRoute().
|
inlineinherited |
Returns the vehicle's maximum speed.
Definition at line 121 of file RORoutable.h.
References Parameterised::getParameter(), RORoutable::getType(), and MIN2().
Referenced by computeIntermodal(), RONet::createBulkRouteRequests(), ROEdge::getEffort(), ROEdge::getNoiseEffort(), and ROEdge::getTravelTime().
|
inlineinherited |
Returns the definition of the vehicle / person parameter.
Definition at line 71 of file RORoutable.h.
References RORoutable::myParameter.
Referenced by ROVehicle::addStop(), RONet::addVehicle(), ROVehicle::collectJumps(), computeRoute(), ROVehicle::computeRoute(), ROVehicle::getDepartureTime(), ROVehicle::ROVehicle(), saveAsXML(), and ROVehicle::saveAsXML().
|
inline |
Definition at line 440 of file ROPerson.h.
References myPlan.
Referenced by RORouteHandler::addFlowPerson(), and RORouteHandler::closePerson().
|
inlineinherited |
Definition at line 163 of file RORoutable.h.
References RORoutable::myRoutingSuccess.
|
inlineinherited |
Returns the type of the routable.
Definition at line 82 of file RORoutable.h.
References RORoutable::myType.
Referenced by ROVehicle::getChosenSpeedFactor(), ROEdge::getEmissionEffort(), ROVehicle::getLength(), RORoutable::getMaxSpeed(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getTravelTime(), RORoutable::getVClass(), ROVehicle::getVehicleType(), ROEdge::restricts(), saveAsXML(), and ROVehicle::saveAsXML().
|
inlineinherited |
Definition at line 109 of file RORoutable.h.
References RORoutable::getType(), SVC_IGNORING, and SUMOVTypeParameter::vehicleClass.
Referenced by computeIntermodal(), ROVehicle::computeRoute(), RONet::createBulkRouteRequests(), RORoute::isValid(), ROEdge::prohibits(), RORouteDef::repairCurrentRoute(), and ROVehicle::saveAsXML().
|
inlineinherited |
Returns whether this object is ignoring transient permission changes (during routing)
Definition at line 116 of file RORoutable.h.
|
inlineinherited |
Definition at line 133 of file RORoutable.h.
References RORoutable::myParameter, and SUMOVehicleParameter::repetitionNumber.
Referenced by RONet::addVehicle().
|
inlineinherited |
Definition at line 129 of file RORoutable.h.
References SUMOVehicleParameter::line, and RORoutable::myParameter.
Referenced by RONet::addVehicle().
|
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 453 of file ROPerson.cpp.
References OutputDevice::closeTag(), OptionsCont::exists(), OptionsCont::getBool(), RORoutable::getParameter(), RORoutable::getType(), myPlan, SUMOVTypeParameter::saved, SUMO_TAG_PERSON, SUMOVTypeParameter::write(), SUMOVehicleParameter::write(), and Parameterised::writeParams().
|
inlineinherited |
update depart time (for triggered persons)
Definition at line 105 of file RORoutable.h.
References SUMOVehicleParameter::depart, and RORoutable::myParameter.
|
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 148 of file RORoutable.h.
References RORoutable::saveAsXML().
|
privateinherited |
The vehicle's parameter.
Definition at line 184 of file RORoutable.h.
Referenced by RORoutable::getDepart(), RORoutable::getID(), RORoutable::getParameter(), RORoutable::isPartOfFlow(), RORoutable::isPublicTransport(), and RORoutable::setDepart().
|
private |
The plan of the person.
Definition at line 453 of file ROPerson.h.
Referenced by computeIntermodal(), computeRoute(), getDepartEdge(), getPlan(), saveAsXML(), and ~ROPerson().
|
protectedinherited |
Whether the last routing was successful.
Definition at line 191 of file RORoutable.h.
Referenced by computeIntermodal(), computeRoute(), ROVehicle::computeRoute(), and RORoutable::getRoutingSuccess().
|
privateinherited |
The type of the vehicle.
Definition at line 187 of file RORoutable.h.
Referenced by RORoutable::getType().