|
libosmscout 0.1
|
Profile that defines costs in a way that the shortest way is chosen (cost==distance). More...
#include <RoutingProfile.h>
Inheritance diagram for osmscout::ShortestPathRoutingProfile:Public Member Functions | |
| double | GetCosts (const Area &, const Distance &distance) const override |
| Estimated cost for specific area with given distance. | |
| double | GetCosts (const Distance &distance) const override |
| Estimated cost for distance when are no limitations (max. | |
| double | GetCosts (const RouteNode ¤tNode, const std::vector< ObjectVariantData > &, size_t, size_t outPathIndex) const override |
| Estimated cost for outgoing path (outPathIndex) from currentNode when currentNode is entered from inPathIndex. | |
| double | GetCosts (const Way &, const Distance &distance) const override |
| Estimated cost for specific way with given distance. | |
| std::string | GetCostString (double cost) const override |
| Textual representation of cost. | |
| ShortestPathRoutingProfile (const TypeConfigRef &typeConfig) | |
Public Member Functions inherited from osmscout::AbstractRoutingProfile | |
| AbstractRoutingProfile (const TypeConfigRef &typeConfig) | |
| void | AddType (const TypeInfoRef &type, double speed) |
| Setup same speed for all grades of route type. | |
| void | AddType (const TypeInfoRef &type, SpeedVariant speed) |
| Setup speed for various grades of route type. | |
| bool | CanUse (const Area &area) const override |
| bool | CanUse (const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const override |
| bool | CanUse (const Way &way) const override |
| bool | CanUseBackward (const Way &way) const override |
| bool | CanUseForward (const Way &way) const override |
| Distance | GetCostLimitDistance () const override |
| double | GetCostLimitFactor () 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 |
| Vehicle | GetVehicle () const override |
| double | GetVehicleMaxSpeed () const |
| virtual void | ParametrizeForBicycle (const TypeConfig &typeConfig, double maxSpeed) |
| virtual bool | ParametrizeForCar (const TypeConfig &typeConfig, const std::map< std::string, double > &speedMap, double maxSpeed) |
| virtual void | ParametrizeForFoot (const TypeConfig &typeConfig, double maxSpeed) |
| void | SetCostLimitDistance (const Distance &costLimitDistance) |
| seet SetCostLimitFactor() | |
| void | SetCostLimitFactor (double costLimitFactor) |
| The router tries to minimize the actual costs of the route. | |
| void | SetVehicle (Vehicle vehicle) |
| void | SetVehicleMaxSpeed (double maxSpeed) |
Public Member Functions inherited from osmscout::RoutingProfile | |
| virtual | ~RoutingProfile ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from osmscout::AbstractRoutingProfile | |
| template<typename Obj > | |
| Duration | GetTime2 (const Obj &obj, const Distance &distance) const |
Protected Attributes inherited from osmscout::AbstractRoutingProfile | |
| AccessFeatureValueReader | accessReader |
| Distance | costLimitDistance |
| double | costLimitFactor |
| GradeFeatureValueReader | gradeReader |
| double | maxSpeed |
| MaxSpeedFeatureValueReader | maxSpeedReader |
| double | minSpeed |
| std::vector< SpeedVariant > | speeds |
| maximum vehicle speed on route type and its grade | |
| TypeConfigRef | typeConfig |
| Vehicle | vehicle |
| double | vehicleMaxSpeed |
| uint8_t | vehicleRouteNodeBit |
Profile that defines costs in a way that the shortest way is chosen (cost==distance).
|
explicit |
|
inlineoverridevirtual |
Estimated cost for specific area with given distance.
Implements osmscout::RoutingProfile.
References osmscout::Distance::As().
|
inlineoverridevirtual |
Estimated cost for distance when are no limitations (max.
speed on the way)
Implements osmscout::RoutingProfile.
References osmscout::Distance::As().
|
inlineoverridevirtual |
Estimated cost for outgoing path (outPathIndex) from currentNode when currentNode is entered from inPathIndex.
Implements osmscout::RoutingProfile.
References osmscout::RouteNode::paths.
|
inlineoverridevirtual |
Estimated cost for specific way with given distance.
Implements osmscout::RoutingProfile.
References osmscout::Distance::As().
|
inlineoverridevirtual |
Textual representation of cost.
Reimplemented from osmscout::AbstractRoutingProfile.
References osmscout::Distance::AsString(), and osmscout::Kilometers().