1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00
This commit is contained in:
Felipe Zavan 2017-02-18 01:30:39 -02:00 committed by GitHub
parent f9e000c3ff
commit 2953513e0f

View file

@ -16,7 +16,7 @@ First, build a vehicle with its vehicle-type:
<pre><code>/* <pre><code>/*
* get a vehicle type-builder and build a type with the typeId "vehicleType" and a capacity of 2 * get a vehicle type-builder and build a type with the typeId "vehicleType" and a capacity of 2
* you are free to add an arbitrary number of capacity dimensions with .addCacpacityDimension(dimensionIndex,dimensionValue) * you are free to add an arbitrary number of capacity dimensions with .addCapacityDimension(dimensionIndex,dimensionValue)
*/ */
final int WEIGHT_INDEX = 0; final int WEIGHT_INDEX = 0;
VehicleTypeImpl.Builder vehicleTypeBuilder = VehicleTypeImpl.Builder.newInstance("vehicleType").addCapacityDimension(WEIGHT_INDEX,2); VehicleTypeImpl.Builder vehicleTypeBuilder = VehicleTypeImpl.Builder.newInstance("vehicleType").addCapacityDimension(WEIGHT_INDEX,2);