63 const std::string& vTypes,
const double departPos,
const double arrivalPos,
64 const std::string& busStop,
double walkFactor,
const std::string& group);
67 double arrivalPos,
const std::string& destStop,
const std::string& group);
70 const double departPos,
const double arrivalPos,
const std::string& busStop);
93 virtual void saveAsXML(
OutputDevice& os,
const bool extended,
const bool asTrip,
const bool writeGeoTrip)
const = 0;
182 const std::string& _lines,
const std::string& _group,
const double _cost,
const double arrivalPos,
183 const std::string& _destStop =
"",
const std::string& _intended =
"",
const SUMOTime _depart = -1) :
205 return arr == std::numeric_limits<double>::infinity() ? -NUMERICAL_EPS :
arr;
232 double departPos = std::numeric_limits<double>::infinity(),
233 double arrivalPos = std::numeric_limits<double>::infinity(),
234 const std::string& _destStop =
"")
237 const double departPos,
const double arrivalPos,
const std::string& _destStop)
245 return edges.front();
251 return arr == std::numeric_limits<double>::infinity() ? 0 :
arr;
275 const double departPos,
const double arrivalPos,
const std::string& _stopDest,
double _walkFactor,
const std::string& _group)
282 for (std::vector<ROVehicle*>::const_iterator it =
myVehicles.begin(); it !=
myVehicles.end(); ++it) {
283 delete (*it)->getRouteDefinition();
313 return dep == std::numeric_limits<double>::infinity() && replaceDefault ? 0 :
dep;
316 return arr == std::numeric_limits<double>::infinity() && replaceDefault ? 0 :
arr;
322 modes |= additionalModes;
336 void saveAsXML(
OutputDevice& os,
const bool extended,
const bool asTrip,
const bool writeGeoTrip)
const;
372 return myPlan.front()->getOrigin();
377 const bool removeLoops,
MsgHandler* errorHandler);
std::vector< const ROEdge * > ConstROEdgeVector
@ SVC_PEDESTRIAN
pedestrian
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
A basic edge for routing applications.
A planItem can be a Trip which contains multiple tripItems.
double getDepartPos(bool replaceDefault=true) const
void saveVehicles(OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const
double getDestinationPos() const
const std::string stopDest
SVCPermissions getModes() const
virtual ~PersonTrip()
Destructor.
void updateMOdes(SVCPermissions additionalModes)
PersonTrip(const ROEdge *const from, const ROEdge *const to, const SVCPermissions modeSet, const double departPos, const double arrivalPos, const std::string &_stopDest, double _walkFactor, const std::string &_group)
double walkFactor
walking speed factor
void saveAsXML(OutputDevice &os, const bool extended, const bool asTrip, const bool writeGeoTrip) const
const std::string & getStopDest() const
double getWalkFactor() const
std::vector< ROVehicle * > myVehicles
the vehicles which may be used for routing
SUMOTime getDuration() const
return duration sum of all trip items
double getArrivalPos(bool replaceDefault=true) const
const ROEdge * getDestination() const
virtual void addTripItem(TripItem *tripIt)
std::vector< ROVehicle * > & getVehicles()
const std::string group
group id for travelling in groups
virtual bool needsRouting() const
const std::string & getGroup() const
std::vector< TripItem * > myTripItems
the fully specified trips
void addVehicle(ROVehicle *veh)
PersonTrip & operator=(const PersonTrip &src)
Invalidated assignment operator.
const ROEdge * getOrigin() const
Every person has a plan comprising of multiple planItems.
virtual double getDestinationPos() const =0
virtual ~PlanItem()
Destructor.
virtual bool isStop() const
virtual void saveAsXML(OutputDevice &os, const bool extended, const bool asTrip, const bool writeGeoTrip) const =0
virtual bool needsRouting() const
virtual const ROEdge * getDestination() const =0
virtual void saveVehicles(OutputDevice &, OutputDevice *const, bool, OptionsCont &) const
virtual SUMOTime getDuration() const =0
virtual PlanItem * clone() const =0
virtual const ROEdge * getOrigin() const =0
virtual void addTripItem(TripItem *)
A ride is part of a trip, e.g., go from here to here by car or bus.
Ride & operator=(const Ride &src)
Invalidated assignment operator.
double getDestinationPos() const
const std::string destStop
const std::string intended
void saveAsXML(OutputDevice &os, const bool extended) const
Ride(const ROEdge *const _from, const ROEdge *const _to, const std::string &_lines, const std::string &_group, const double _cost, const double arrivalPos, const std::string &_destStop="", const std::string &_intended="", const SUMOTime _depart=-1)
const ROEdge * getDestination() const
const ROEdge * getOrigin() const
A planItem can be a Stop.
const ROEdge * getDestination() const
const ROEdge * getOrigin() const
SUMOTime getDuration() const
Stop & operator=(const Stop &src)
Invalidated assignment operator.
double getDestinationPos() const
Stop(const SUMOVehicleParameter::Stop &stop, const ROEdge *const stopEdge)
void saveAsXML(OutputDevice &os, const bool, const bool, const bool) const
SUMOVehicleParameter::Stop stopDesc
A TripItem is part of a trip, e.g., go from here to here by car.
virtual TripItem * clone() const =0
virtual const ROEdge * getDestination() const =0
virtual void saveAsXML(OutputDevice &os, const bool extended) const =0
SUMOTime getDuration() const
virtual const ROEdge * getOrigin() const =0
TripItem(const double _cost)
virtual double getDestinationPos() const =0
virtual ~TripItem()
Destructor.
A walk is part of a trip, e.g., go from here to here by foot.
const ConstROEdgeVector edges
Walk(const ConstROEdgeVector &_edges, const double _cost, double departPos=std::numeric_limits< double >::infinity(), double arrivalPos=std::numeric_limits< double >::infinity(), const std::string &_destStop="")
const ROEdge * getOrigin() const
void saveAsXML(OutputDevice &os, const bool extended) const
const ROEdge * getDestination() const
Walk(const ConstROEdgeVector &edges, const double _cost, const double duration, const double speed, const double departPos, const double arrivalPos, const std::string &_destStop)
Walk & operator=(const Walk &src)
Invalidated assignment operator.
double getDestinationPos() const
const std::string destStop
A person as used by router.
void addRide(const ROEdge *const from, const ROEdge *const to, const std::string &lines, double arrivalPos, const std::string &destStop, const std::string &group)
ROPerson & operator=(const ROPerson &src)
Invalidated assignment operator.
virtual ~ROPerson()
Destructor.
ROPerson(const SUMOVehicleParameter &pars, const SUMOVTypeParameter *type)
Constructor.
void addTrip(const ROEdge *const from, const ROEdge *const to, const SVCPermissions modeSet, const std::string &vTypes, const double departPos, const double arrivalPos, const std::string &busStop, double walkFactor, const std::string &group)
const ROEdge * getDepartEdge() const
Returns the first edge the person takes.
std::vector< PlanItem * > & getPlan()
void computeRoute(const RORouterProvider &provider, const bool removeLoops, MsgHandler *errorHandler)
void addWalk(const ConstROEdgeVector &edges, const double duration, const double speed, const double departPos, const double arrivalPos, const std::string &busStop)
void addStop(const SUMOVehicleParameter::Stop &stopPar, const ROEdge *const stopEdge)
ROPerson(const ROPerson &src)
Invalidated copy constructor.
bool computeIntermodal(SUMOTime time, const RORouterProvider &provider, PersonTrip *const trip, const ROVehicle *const veh, MsgHandler *const errorHandler)
void saveAsXML(OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const
Saves the complete person description.
std::vector< PlanItem * > myPlan
The plan of the person.
A routable thing such as a vehicle or person.
A vehicle as used by router.
Structure representing possible vehicle parameter.
Definition of vehicle stop (position and duration)
void write(OutputDevice &dev, bool close=true) const
Writes the stop as XML.
double startPos
The stopping position start.
double endPos
The stopping position end.
SUMOTime duration
The stopping duration.
Structure representing possible vehicle parameter.