Class RoutingModel.VehicleTypeContainer
java.lang.Object
com.google.ortools.constraintsolver.RoutingModel.VehicleTypeContainer
- Enclosing class:
- RoutingModel
public static class RoutingModel.VehicleTypeContainer
extends java.lang.Object
Struct used to sort and store vehicles by their type. Two vehicles have
the same "vehicle type" iff they have the same cost class and start/end
nodes.
the same "vehicle type" iff they have the same cost class and start/end
nodes.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoutingModel.VehicleTypeContainer.VehicleClassEntry -
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Modifier Constructor Description VehicleTypeContainer()protectedVehicleTypeContainer(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(RoutingModel.VehicleTypeContainer obj)SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_tgetSorted_vehicle_classes_per_type()int[]getType_index_of_vehicle()SWIGTYPE_p_std__vectorT_std__dequeT_int_t_tgetVehicles_per_vehicle_class()intNumTypes()voidsetSorted_vehicle_classes_per_type(SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t value)voidsetType_index_of_vehicle(int[] value)voidsetVehicles_per_vehicle_class(SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t value)intType(int vehicle)Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
VehicleTypeContainer
protected VehicleTypeContainer(long cPtr, boolean cMemoryOwn) -
VehicleTypeContainer
public VehicleTypeContainer()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete() -
NumTypes
public int NumTypes() -
Type
public int Type(int vehicle) -
setType_index_of_vehicle
public void setType_index_of_vehicle(int[] value) -
getType_index_of_vehicle
public int[] getType_index_of_vehicle() -
setSorted_vehicle_classes_per_type
public void setSorted_vehicle_classes_per_type(SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t value) -
getSorted_vehicle_classes_per_type
public SWIGTYPE_p_std__vectorT_std__setT_operations_research__RoutingModel__VehicleTypeContainer__VehicleClassEntry_t_t getSorted_vehicle_classes_per_type() -
setVehicles_per_vehicle_class
-
getVehicles_per_vehicle_class
-