9package com.google.ortools.constraintsolver;
35 private transient long swigCPtr;
44 return (obj ==
null) ? 0 : obj.swigCPtr;
51 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
53 obj.swigCMemOwn =
false;
59 @SuppressWarnings({
"deprecation",
"removal"})
68 mainJNI.delete_RoutingIndexManager(swigCPtr);
81 this(mainJNI.new_RoutingIndexManager__SWIG_0(num_nodes, num_vehicles, depot),
true);
85 this(mainJNI.new_RoutingIndexManager__SWIG_1(num_nodes, num_vehicles, starts, ends),
true);
89 return mainJNI.RoutingIndexManager_getNumberOfNodes(swigCPtr,
this);
93 return mainJNI.RoutingIndexManager_getNumberOfVehicles(swigCPtr,
this);
97 return mainJNI.RoutingIndexManager_getNumberOfIndices(swigCPtr,
this);
101 return mainJNI.RoutingIndexManager_getStartIndex(swigCPtr,
this, vehicle);
105 return mainJNI.RoutingIndexManager_getEndIndex(swigCPtr,
this, vehicle);
109 return mainJNI.RoutingIndexManager_nodeToIndex(swigCPtr,
this, node);
113 return mainJNI.RoutingIndexManager_nodesToIndices(swigCPtr,
this, nodes);
117 return mainJNI.RoutingIndexManager_indexToNode(swigCPtr,
this, index);