9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
28 public synchronized void delete() {
32 mainJNI.delete_RoutingIndexManager(swigCPtr);
39 this(mainJNI.new_RoutingIndexManager__SWIG_0(num_nodes, num_vehicles, depot),
true);
43 this(mainJNI.new_RoutingIndexManager__SWIG_1(num_nodes, num_vehicles, starts, ends),
true);
47 return mainJNI.RoutingIndexManager_getNumberOfNodes(swigCPtr,
this);
51 return mainJNI.RoutingIndexManager_getNumberOfVehicles(swigCPtr,
this);
55 return mainJNI.RoutingIndexManager_getNumberOfIndices(swigCPtr,
this);
59 return mainJNI.RoutingIndexManager_nodeToIndex(swigCPtr,
this, node);
63 return mainJNI.RoutingIndexManager_nodesToIndices(swigCPtr,
this, nodes);
67 return mainJNI.RoutingIndexManager_indexToNode(swigCPtr,
this, index);