|
Maps SDK for C++ 1.0.0
|
Defines the set of constraints which can be applied over a vehicle. More...


Public Member Functions | |
| VehicleConstraints ()=default | |
| Default constructor. | |
| VehicleConstraints (const VehicleConstraints &)=default | |
| Default copy constructor. | |
| VehicleConstraints (VehicleConstraints &&) noexcept=default | |
| Default move constructor noexcept is deduced. | |
| VehicleConstraints & | operator= (const VehicleConstraints &)=default |
| Default copy assignment operator. | |
| VehicleConstraints & | operator= (VehicleConstraints &&) noexcept=default |
| Default move assignment operator. | |
| bool | operator== (VehicleConstraints const &constr) const |
| Compares two VehicleConstraints objects for equality. | |
| bool | operator!= (VehicleConstraints const &constr) const |
| Compares two VehicleConstraints objects for equality. | |
| const TimeRef | getStartDate () const noexcept |
| Retrieves the time when the vehicle starts its route. | |
| VehicleConstraints & | setStartDate (ITime &startDate) noexcept |
| Set the date when the vehicle starts its route. | |
| unsigned int | getMaxNumberOfPackages () const noexcept |
| Get the maximum number of packages that the vehicle can carry. | |
| VehicleConstraints & | setMaxNumberOfPackages (unsigned int maxNumberOfPackages) noexcept |
| Set the maximum number of packages that the vehicle can carry. | |
| unsigned int | getMinNumberOfOrders () const noexcept |
| Get the minimum number of orders that the vehicle must visit. | |
| VehicleConstraints & | setMinNumberOfOrders (unsigned int minNumberOfOrders) noexcept |
| Set the minimum number of orders that the vehicle must visit. | |
| unsigned int | getMaxNumberOfOrders () const noexcept |
| Get the maximum number of orders that the vehicle can visit. | |
| VehicleConstraints & | setMaxNumberOfOrders (unsigned int maxNumberOfOrders) noexcept |
| Set the maximum number of orders that the vehicle can visit; excluding the start orders which is visited by default. | |
| float | getMinDistance () const noexcept |
| Get the minimum distance that the vehicle must travel (in the same distance unit as the one set with the ConfigurationParameters). | |
| VehicleConstraints & | setMinDistance (float minDistance) noexcept |
| Set the minimum distance that the vehicle must travel (in the same distance unit as the one set with the ConfigurationParameters). | |
| float | getMaxDistance () const noexcept |
| Get the maximum distance that the vehicle can travel (in the same distance unit as the one set with the ConfigurationParameters). | |
| VehicleConstraints & | setMaxDistance (float maxDistance) noexcept |
| Set the maximum distance that the vehicle can travel (in the same distance unit as the one set with the ConfigurationParameters). | |
| float | getMaxRevenue () const noexcept |
| Get the maximum revenue that the vehicle can collect in total. | |
| VehicleConstraints & | setMaxRevenue (float maxRevenue) noexcept |
| Set the maximum revenue that the vehicle can collect in total, from all the customers. | |
| float | getFuelPrice () const noexcept |
| Get the price for 1 liter of fuel or 1 kWh for electric engine. | |
Defines the set of constraints which can be applied over a vehicle.
Implements share-read / copy-on-write Api object over IVehicleConstraints.
|
inlinenoexcept |
Get the price for 1 liter of fuel or 1 kWh for electric engine.
The fuel price is set using the method Service::addFuelPrices().
|
inlinenoexcept |
Get the maximum distance that the vehicle can travel (in the same distance unit as the one set with the ConfigurationParameters).
|
inlinenoexcept |
Get the maximum number of orders that the vehicle can visit.
|
inlinenoexcept |
Get the maximum number of packages that the vehicle can carry.
|
inlinenoexcept |
Get the maximum revenue that the vehicle can collect in total.
|
inlinenoexcept |
Get the minimum distance that the vehicle must travel (in the same distance unit as the one set with the ConfigurationParameters).
|
inlinenoexcept |
Get the minimum number of orders that the vehicle must visit.
|
inlinenoexcept |
Retrieves the time when the vehicle starts its route.
|
inline |
Compares two VehicleConstraints objects for equality.
| constr | Another VehicleConstraints object to compare against. |
|
default |
Default copy assignment operator.
Replaces the contents of this object with a copy of another VehicleConstraints object.
|
defaultnoexcept |
Default move assignment operator.
Moves the contents of another VehicleConstraints object into this one.
|
inline |
Compares two VehicleConstraints objects for equality.
| constr | Another VehicleConstraints object to compare against. |
|
inlinenoexcept |
Set the maximum distance that the vehicle can travel (in the same distance unit as the one set with the ConfigurationParameters).
By default it is 99999999.
| maxDistance | The maximum distance that the vehicle can travel |
|
inlinenoexcept |
Set the maximum number of orders that the vehicle can visit; excluding the start orders which is visited by default.
By default it is int max.
| maxNumberOfOrders | the maximum number of orders that the vehicle can visit |
|
inlinenoexcept |
Set the maximum number of packages that the vehicle can carry.
By default it is 99999999.
| maxNumberOfPackages | he maximum number of packages that the vehicle can carry |
|
inlinenoexcept |
Set the maximum revenue that the vehicle can collect in total, from all the customers.
By default it is 99999999.
| maxRevenue | The maximum revenue that the vehicle can collect |
|
inlinenoexcept |
Set the minimum distance that the vehicle must travel (in the same distance unit as the one set with the ConfigurationParameters).
By default it is 0.
| minDistance | The minimum distance that the vehicle must travel |
|
inlinenoexcept |
Set the minimum number of orders that the vehicle must visit.
By default it is 0.
| minNumberOfOrders | the minimum number of orders that the vehicle must visit |
|
inlinenoexcept |
Set the date when the vehicle starts its route.
By default it is the current UTC date.
| startDate | The start date of the vehicle |