Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::TruckProfile Struct Reference

Truck routing profile. More...

Inheritance diagram for gem::TruckProfile:
Collaboration diagram for gem::TruckProfile:

Public Member Functions

 TruckProfile (int massKg=0, int heightCm=0, int lengthCm=0, int widthCm=0, int axleLoadKg=0) noexcept
 Truck profile constructor with predefined FT_Diesel as fuel type.
 TruckProfile (EFuelType fuel, int massKg=0, int heightCm=0, int lengthCm=0, int widthCm=0, int axleLoadKg=0) noexcept
 Truck profile constructor.
bool operator== (const TruckProfile &p) const
 Comparison operator.
bool operator!= (const TruckProfile &p) const
 Comparison operator.
bool hasDefaultDimensions () const
 Default dimensions checker.
bool operator== (const MotorVehicleProfile &p) const
 Comparison operator.
bool operator!= (const MotorVehicleProfile &p) const
 Comparison operator.

Public Attributes

int height
int length
int width
int axleLoad
EFuelType fuel
int mass
double maxSpeed
String plateNumber

Detailed Description

Truck routing profile.

Constructor & Destructor Documentation

◆ TruckProfile() [1/2]

gem::TruckProfile::TruckProfile ( int massKg = 0,
int heightCm = 0,
int lengthCm = 0,
int widthCm = 0,
int axleLoadKg = 0 )
inlinenoexcept

Truck profile constructor with predefined FT_Diesel as fuel type.

Parameters
massKgmass in kg
heightCmheight in cm
lengthCmlength in cm
widthCmwidth in cm
axleLoadKgaxle load in kg

◆ TruckProfile() [2/2]

gem::TruckProfile::TruckProfile ( EFuelType fuel,
int massKg = 0,
int heightCm = 0,
int lengthCm = 0,
int widthCm = 0,
int axleLoadKg = 0 )
inlinenoexcept

Truck profile constructor.

Parameters
fuelfuel type
massKgmass in kg
heightCmheight in cm
lengthCmlength in cm
widthCmwidth in cm
axleLoadKgaxle load in kg

Member Function Documentation

◆ hasDefaultDimensions()

bool gem::TruckProfile::hasDefaultDimensions ( ) const
inline

Default dimensions checker.

Returns
true if all dimensions are default ( i.e. height, length, width, axle load and mass are 0 )

Member Data Documentation

◆ axleLoad

int gem::TruckProfile::axleLoad

Truck max mass / axle in kg. By default it is 0 and is not considered in routing

◆ fuel

EFuelType gem::MotorVehicleProfile::fuel
inherited

Engine fuel type. Default is petrol

◆ height

int gem::TruckProfile::height

Truck height in cm. By default it is 0 and is not considered in routing

◆ length

int gem::TruckProfile::length

Truck length in cm. By default it is 0 and is not considered in routing

◆ mass

int gem::MotorVehicleProfile::mass
inherited

Vehicle mass in kg. By default it is 0 and is not considered in routing

◆ maxSpeed

double gem::MotorVehicleProfile::maxSpeed
inherited

Vehicle max speed im m/s. By default it is 0. and is not considered in routing

◆ plateNumber

String gem::VehicleRegistration::plateNumber
inherited

Vehicle plate number

◆ width

int gem::TruckProfile::width

Truck width in cm. By default it is 0 and is not considered in routing