95 inline const std::string&
getID()
const {
153 const bool removeLoops,
MsgHandler* errorHandler) = 0;
165 for (
int i = 0; i < quota; i++) {
167 if (altos ==
nullptr && typeos ==
nullptr) {
170 saveAsXML(*os, typeos,
false, options, i);
173 if (altos !=
nullptr) {
174 saveAsXML(*altos, typeos,
true, options, i);
IntermodalRouter< ROEdge, ROLane, RONode, ROVehicle > ROIntermodalRouter
RouterProvider< ROEdge, ROLane, RONode, ROVehicle > RORouterProvider
std::vector< const ROEdge * > ConstROEdgeVector
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_IGNORING
vehicles ignoring classes
const long long int VEHPARS_SPEEDFACTOR_SET
double getParameter(const int index) const
Returns the nth parameter of this distribution.
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 single lane the router may use.
Base class for nodes used by the router.
A routable thing such as a vehicle or person.
bool getRoutingSuccess() const
SUMOVehicleParameter myParameter
The vehicle's parameter.
bool ignoreTransientPermissions() const
Returns whether this object is ignoring transient permission changes (during routing)
RORoutable(const RORoutable &src)
Invalidated copy constructor.
const SUMOVTypeParameter *const myType
The type of the vehicle.
virtual const ROEdge * getDepartEdge() const =0
SUMOVehicleClass getVClass() const
long long int getRandomSeed() const
return vehicle-specific random number
bool isPublicTransport() const
bool isPartOfFlow() const
RORoutable(const SUMOVehicleParameter &pars, const SUMOVTypeParameter *type)
Constructor.
virtual void computeRoute(const RORouterProvider &provider, const bool removeLoops, MsgHandler *errorHandler)=0
RORoutable & operator=(const RORoutable &src)
Invalidated assignment operator.
SUMOTime getDepart() const
Returns the time the vehicle starts at, -1 for triggered vehicles.
bool myRoutingSuccess
Whether the last routing was successful.
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 void saveAsXML(OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options, int cloneIndex=0) const =0
Saves the complete routable description.
const SUMOVTypeParameter * getType() const
Returns the type of the routable.
double getChosenSpeedFactor() const
Returns an upper bound for the speed factor of this vehicle.
void setDepart(SUMOTime t)
update depart time (for triggered persons)
const std::string & getID() const
Returns the id of the routable.
const long long int myRandomSeed
object-specific random constant
const SUMOVehicleParameter & getParameter() const
Returns the definition of the vehicle / person parameter.
double getMaxSpeed() const
Returns the vehicle's maximum speed.
virtual ~RORoutable()
Destructor.
A vehicle as used by router.
Utility functions for using a global, resetable random number generator.
Structure representing possible vehicle parameter.
Distribution_Parameterized speedFactor
The factor by which the maximum speed may deviate from the allowed max speed on the street.
SUMOVehicleClass vehicleClass
The vehicle's class.
Structure representing possible vehicle parameter.
double speedFactor
individual speedFactor (overriding distribution from vType)
long long int repetitionNumber
bool wasSet(long long int what) const
Returns whether the given parameter was set.
std::string id
The vehicle's id.
std::string line
The vehicle's line (mainly for public transport)