9 package com.google.ortools.constraintsolver;
13 import java.util.function.LongToIntFunction;
19 private transient long swigCPtr;
22 super(mainJNI.PathOperator_SWIGUpcast(cPtr), cMemoryOwn);
27 return (obj ==
null) ? 0 : obj.swigCPtr;
30 @SuppressWarnings(
"deprecation")
31 protected
void finalize() {
35 public synchronized void delete() {
39 mainJNI.delete_PathOperator(swigCPtr);
53 mainJNI.PathOperator_change_ownership(
this, swigCPtr,
false);
58 mainJNI.PathOperator_change_ownership(
this, swigCPtr,
true);
64 public PathOperator(
IntVar[] next_vars,
IntVar[] path_vars,
int number_of_base_nodes,
boolean skip_locally_optimal_paths, LongToIntFunction start_empty_path_class) {
65 this(mainJNI.new_PathOperator(next_vars, path_vars, number_of_base_nodes, skip_locally_optimal_paths, start_empty_path_class),
true);
66 mainJNI.PathOperator_director_connect(
this, swigCPtr,
true,
true);
70 return mainJNI.PathOperator_neighbor(swigCPtr,
this);
74 if (getClass() ==
PathOperator.class) mainJNI.PathOperator_reset(swigCPtr,
this);
else mainJNI.PathOperator_resetSwigExplicitPathOperator(swigCPtr,
this);
81 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_oneNeighbor(swigCPtr,
this) : mainJNI.PathOperator_oneNeighborSwigExplicitPathOperator(swigCPtr,
this);
88 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_restartAtPathStartOnSynchronize(swigCPtr,
this) : mainJNI.PathOperator_restartAtPathStartOnSynchronizeSwigExplicitPathOperator(swigCPtr,
this);
95 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_onSamePathAsPreviousBase(swigCPtr,
this, base_index) : mainJNI.PathOperator_onSamePathAsPreviousBaseSwigExplicitPathOperator(swigCPtr,
this, base_index);
102 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_getBaseNodeRestartPosition(swigCPtr,
this, base_index) : mainJNI.PathOperator_getBaseNodeRestartPositionSwigExplicitPathOperator(swigCPtr,
this, base_index);
109 if (getClass() ==
PathOperator.class) mainJNI.PathOperator_setNextBaseToIncrement(swigCPtr,
this, base_index);
else mainJNI.PathOperator_setNextBaseToIncrementSwigExplicitPathOperator(swigCPtr,
this, base_index);
116 return (getClass() ==
PathOperator.class) ? mainJNI.PathOperator_initPosition(swigCPtr,
this) : mainJNI.PathOperator_initPositionSwigExplicitPathOperator(swigCPtr,
this);