Class RoutingModel.VehicleTypeContainer
- java.lang.Object
-
- com.google.ortools.constraintsolver.RoutingModel.VehicleTypeContainer
-
- Enclosing class:
- RoutingModel
public static class RoutingModel.VehicleTypeContainer extends java.lang.ObjectStruct 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.
-
-
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 Constructor Description VehicleTypeContainer()VehicleTypeContainer(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()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)static longswigRelease(RoutingModel.VehicleTypeContainer obj)intType(int vehicle)
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(RoutingModel.VehicleTypeContainer obj)
-
swigRelease
public static long swigRelease(RoutingModel.VehicleTypeContainer obj)
-
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
public void setVehicles_per_vehicle_class(SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t value)
-
getVehicles_per_vehicle_class
public SWIGTYPE_p_std__vectorT_std__dequeT_int_t_t getVehicles_per_vehicle_class()
-
-