com.google.ortools.constraintsolver.SequenceVarLocalSearchHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-or-tools Show documentation
Show all versions of google-or-tools Show documentation
A project to publish Google OR-Tools as a dependable dependency in Maven.
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.google.ortools.constraintsolver;
public class SequenceVarLocalSearchHandler {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected SequenceVarLocalSearchHandler(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SequenceVarLocalSearchHandler obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
operations_research_constraint_solverJNI.delete_SequenceVarLocalSearchHandler(swigCPtr);
}
swigCPtr = 0;
}
}
public SequenceVarLocalSearchHandler() {
this(operations_research_constraint_solverJNI.new_SequenceVarLocalSearchHandler__SWIG_0(), true);
}
public SequenceVarLocalSearchHandler(SequenceVarLocalSearchHandler other) {
this(operations_research_constraint_solverJNI.new_SequenceVarLocalSearchHandler__SWIG_1(SequenceVarLocalSearchHandler.getCPtr(other), other), true);
}
public SequenceVarLocalSearchHandler(SequenceVarLocalSearchOperator op) {
this(operations_research_constraint_solverJNI.new_SequenceVarLocalSearchHandler__SWIG_2(SequenceVarLocalSearchOperator.getCPtr(op), op), true);
}
public void AddToAssignment(SequenceVar var, int[] value, long index, Assignment assignment) {
operations_research_constraint_solverJNI.SequenceVarLocalSearchHandler_AddToAssignment(swigCPtr, this, SequenceVar.getCPtr(var), var, value, index, Assignment.getCPtr(assignment), assignment);
}
public boolean ValueFromAssignent(Assignment assignment, SequenceVar var, long index, SWIGTYPE_p_std__vectorT_int_t value) {
return operations_research_constraint_solverJNI.SequenceVarLocalSearchHandler_ValueFromAssignent(swigCPtr, this, Assignment.getCPtr(assignment), assignment, SequenceVar.getCPtr(var), var, index, SWIGTYPE_p_std__vectorT_int_t.getCPtr(value));
}
public void OnRevertChanges(long index) {
operations_research_constraint_solverJNI.SequenceVarLocalSearchHandler_OnRevertChanges(swigCPtr, this, index);
}
public void OnAddVars() {
operations_research_constraint_solverJNI.SequenceVarLocalSearchHandler_OnAddVars(swigCPtr, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy