9 package com.google.ortools.constraintsolver;
13 import java.util.function.LongToIntFunction;
16 private transient long swigCPtr;
19 super(mainJNI.PathOperator_SWIGUpcast(cPtr), cMemoryOwn);
24 return (obj ==
null) ? 0 : obj.swigCPtr;
27 @SuppressWarnings(
"deprecation")
28 protected
void finalize() {
32 public synchronized void delete() {
36 mainJNI.delete_PathOperator(swigCPtr);
50 mainJNI.PathOperator_change_ownership(
this, swigCPtr,
false);
55 mainJNI.PathOperator_change_ownership(
this, swigCPtr,
true);
58 public PathOperator(
IntVar[] next_vars,
IntVar[] path_vars,
int number_of_base_nodes,
boolean skip_locally_optimal_paths, LongToIntFunction start_empty_path_class) {
59 this(mainJNI.new_PathOperator(next_vars, path_vars, number_of_base_nodes, skip_locally_optimal_paths, start_empty_path_class),
true);
60 mainJNI.PathOperator_director_connect(
this, swigCPtr,
true,
true);
64 return mainJNI.PathOperator_neighbor(swigCPtr,
this);
68 if (getClass() ==
PathOperator.class) mainJNI.PathOperator_reset(swigCPtr,
this);
else mainJNI.PathOperator_resetSwigExplicitPathOperator(swigCPtr,
this);
72 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_oneNeighbor(swigCPtr,
this) : mainJNI.PathOperator_oneNeighborSwigExplicitPathOperator(swigCPtr,
this);
76 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_restartAtPathStartOnSynchronize(swigCPtr,
this) : mainJNI.PathOperator_restartAtPathStartOnSynchronizeSwigExplicitPathOperator(swigCPtr,
this);
80 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_onSamePathAsPreviousBase(swigCPtr,
this, base_index) : mainJNI.PathOperator_onSamePathAsPreviousBaseSwigExplicitPathOperator(swigCPtr,
this, base_index);
84 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_getBaseNodeRestartPosition(swigCPtr,
this, base_index) : mainJNI.PathOperator_getBaseNodeRestartPositionSwigExplicitPathOperator(swigCPtr,
this, base_index);
88 if (getClass() ==
PathOperator.class) mainJNI.PathOperator_setNextBaseToIncrement(swigCPtr,
this, base_index);
else mainJNI.PathOperator_setNextBaseToIncrementSwigExplicitPathOperator(swigCPtr,
this, base_index);
92 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_initPosition(swigCPtr,
this) : mainJNI.PathOperator_initPositionSwigExplicitPathOperator(swigCPtr,
this);