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