9package com.google.ortools.constraintsolver;
37 private transient long swigCPtr;
46 return (obj ==
null) ? 0 : obj.swigCPtr;
53 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
55 obj.swigCMemOwn =
false;
61 @SuppressWarnings({
"deprecation",
"removal"})
70 mainJNI.delete_RoutingIndexManager(swigCPtr);
87 this(mainJNI.new_RoutingIndexManager__SWIG_0(num_nodes, num_vehicles, depot),
true);
100 this(mainJNI.new_RoutingIndexManager__SWIG_1(num_nodes, num_vehicles, starts, ends),
true);
104 return mainJNI.RoutingIndexManager_getNumberOfNodes(swigCPtr,
this);
108 return mainJNI.RoutingIndexManager_getNumberOfVehicles(swigCPtr,
this);
112 return mainJNI.RoutingIndexManager_getNumberOfIndices(swigCPtr,
this);
116 return mainJNI.RoutingIndexManager_getStartIndex(swigCPtr,
this, vehicle);
120 return mainJNI.RoutingIndexManager_getEndIndex(swigCPtr,
this, vehicle);
124 return mainJNI.RoutingIndexManager_nodeToIndex(swigCPtr,
this, node);
128 return mainJNI.RoutingIndexManager_nodesToIndices(swigCPtr,
this, nodes);
132 return mainJNI.RoutingIndexManager_indexToNode(swigCPtr,
this, index);