C++ Reference: class VehicleTypeCurator
Note: This documentation is automatically generated.
Helper class that manages vehicles. This class is based on the RoutingModel::VehicleTypeContainer that sorts and stores vehicles based on their "type".Method | |
---|---|
GetCompatibleVehicleOfType | Return type: Arguments: Searches for the best compatible vehicle of the given type, i.e. the first vehicle v of type 'type' for which vehicle_is_compatible(v) returns true. If a compatible *vehicle* is found, its index is removed from vehicles_per_vehicle_class_ and the function returns {vehicle, -1}. If for some *vehicle* 'stop_and_return_vehicle' returns true before a compatible vehicle is found, the function simply returns {-1, vehicle}. Returns {-1, -1} if no compatible vehicle is found and the stopping condition is never met. |
GetLowestFixedCostVehicleOfType | Return type: Arguments: |
HasCompatibleVehicleOfType | Return type: Arguments: Searches a compatible vehicle of the given type; returns false if none was found. |
NumTypes | Return type: |
ReinjectVehicleOfClass | Return type: Arguments: |
Reset | Return type: Arguments: Resets the vehicles stored, storing only vehicles from the vehicle_type_container_ for which store_vehicle() returns true. |
Type | Return type: Arguments: |
Update | Return type: Arguments: Goes through all the currently stored vehicles and removes vehicles for which remove_vehicle() returns true. |
VehicleTypeCurator | Return type: Arguments: |