|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/routing/RoutingProfile.h>


Public Member Functions | |
| AbstractRoutingProfile (const TypeConfigRef &typeConfig) | |
| void | SetVehicle (Vehicle vehicle) |
| void | SetVehicleMaxSpeed (double maxSpeed) |
| virtual void | ParametrizeForFoot (const TypeConfig &typeConfig, double maxSpeed) |
| virtual void | ParametrizeForBicycle (const TypeConfig &typeConfig, double maxSpeed) |
| virtual bool | ParametrizeForCar (const TypeConfig &typeConfig, const std::map< std::string, double > &speedMap, double maxSpeed) |
| Vehicle | GetVehicle () const override |
| double | GetVehicleMaxSpeed () const |
| void | SetCostLimitDistance (const Distance &costLimitDistance) |
| Distance | GetCostLimitDistance () const override |
| void | SetCostLimitFactor (double costLimitFactor) |
| double | GetCostLimitFactor () const override |
| std::string | GetCostString (double cost) const override |
| void | AddType (const TypeInfoRef &type, double speed) |
| void | AddType (const TypeInfoRef &type, SpeedVariant speed) |
| bool | CanUse (const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const override |
| bool | CanUse (const Area &area) const override |
| bool | CanUse (const Way &way) const override |
| bool | CanUseForward (const Way &way) const override |
| bool | CanUseBackward (const Way &way) const override |
| Duration | GetTime (const Area &area, const Distance &distance) const override |
| Duration | GetTime (const Way &way, const Distance &distance) const override |
| double | GetUTurnCost () const override |
| Public Member Functions inherited from osmscout::RoutingProfile | |
| virtual | ~RoutingProfile ()=default |
| virtual double | GetCosts (const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t inPathIndex, size_t outPathIndex) const =0 |
| virtual double | GetCosts (const Area &area, const Distance &distance) const =0 |
| virtual double | GetCosts (const Way &way, const Distance &distance) const =0 |
| virtual double | GetCosts (const Distance &distance) const =0 |
Protected Member Functions | |
| template<typename Obj> | |
| Duration | GetTime2 (const Obj &obj, const Distance &distance) const |
Protected Attributes | |
| TypeConfigRef | typeConfig |
| AccessFeatureValueReader | accessReader |
| MaxSpeedFeatureValueReader | maxSpeedReader |
| GradeFeatureValueReader | gradeReader |
| Vehicle | vehicle |
| uint8_t | vehicleRouteNodeBit |
| Distance | costLimitDistance |
| double | costLimitFactor |
| std::vector< SpeedVariant > | speeds |
| maximum vehicle speed on route type and its grade | |
| double | minSpeed |
| double | maxSpeed |
| double | vehicleMaxSpeed |
Common base class for our concrete profile instantiations. Offers a number of profile type independent interface implementations and helper methods.
|
explicit |
| void osmscout::AbstractRoutingProfile::AddType | ( | const TypeInfoRef & | type, |
| double | speed ) |
Setup same speed for all grades of route type. Type may be forbidden for routing by setting speed to zero.
| Object type related data structures and services | |
| speed |
| void osmscout::AbstractRoutingProfile::AddType | ( | const TypeInfoRef & | type, |
| SpeedVariant | speed ) |
Setup speed for various grades of route type. Setup zero speed to forbid some grade for routing.
| Object type related data structures and services | |
| speed | table of speeds for various grades. (copy in intentional) SetupValues() is called to fill all values. |
|
overridevirtual |
Implements osmscout::RoutingProfile.
|
overridevirtual |
Implements osmscout::RoutingProfile.
|
overridevirtual |
Implements osmscout::RoutingProfile.
|
overridevirtual |
Implements osmscout::RoutingProfile.
|
overridevirtual |
Implements osmscout::RoutingProfile.
|
inlineoverridevirtual |
Implements osmscout::RoutingProfile.
|
inlineoverridevirtual |
Implements osmscout::RoutingProfile.
|
inlineoverridevirtual |
Textual representation of cost
Implements osmscout::RoutingProfile.
Reimplemented in osmscout::FastestPathRoutingProfile, and osmscout::ShortestPathRoutingProfile.
|
inlineoverridevirtual |
Implements osmscout::RoutingProfile.
|
inlineoverridevirtual |
Implements osmscout::RoutingProfile.
|
inlineprotected |
|
overridevirtual |
Implements osmscout::RoutingProfile.
Reimplemented in osmscout::FastestPathRoutingProfile.
|
inlineoverridevirtual |
Implements osmscout::RoutingProfile.
|
inline |
|
virtual |
Reimplemented in osmscout::FastestPathRoutingProfile.
|
virtual |
Reimplemented in osmscout::FastestPathRoutingProfile.
|
virtual |
Reimplemented in osmscout::FastestPathRoutingProfile.
| void osmscout::AbstractRoutingProfile::SetCostLimitDistance | ( | const Distance & | costLimitDistance | ) |
| void osmscout::AbstractRoutingProfile::SetCostLimitFactor | ( | double | costLimitFactor | ) |
| void osmscout::AbstractRoutingProfile::SetVehicle | ( | Vehicle | vehicle | ) |
| void osmscout::AbstractRoutingProfile::SetVehicleMaxSpeed | ( | double | maxSpeed | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
maximum vehicle speed on route type and its grade
|
protected |
|
protected |
|
protected |
|
protected |