|
Maps SDK for C++ 1.0.0
|
Represents an actual break that was taken by a vehicle during a route. More...
Public Member Functions | |
| bool | operator== (const VRPActualBreak &other) const |
| Equality comparison operator. | |
Public Attributes | |
| int | duration = 0 |
| Duration of the break in seconds. | |
| int | startTime = 0 |
| Start time of the break in minutes from midnight. | |
Represents an actual break that was taken by a vehicle during a route.
This struct holds the realized break information as part of a route's execution. Unlike VRPAvailableBreak (which defines when a break may occur), VRPActualBreak describes when a break did occur — i.e., the concrete start time and duration selected by the optimizer from the available break windows.
Actual breaks can be retrieved from a route after optimization via Route::getBreaks().
Example usage:
|
inline |
Equality comparison operator.
Checks if two VRPActualBreak objects are equal.
| other | The VRPActualBreak to compare against. |
| int gem::vrp::VRPActualBreak::duration = 0 |
Duration of the break in seconds.
For example, a value of 1800 represents a 30-minute break.
| int gem::vrp::VRPActualBreak::startTime = 0 |
Start time of the break in minutes from midnight.
For example, a value of 720 represents 12:00 PM.