SequenceVarLocalSearchOperatorTemplate.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.0
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.constraintsolver;
10 
15  private transient long swigCPtr;
16 
17  protected SequenceVarLocalSearchOperatorTemplate(long cPtr, boolean cMemoryOwn) {
18  super(mainJNI.SequenceVarLocalSearchOperatorTemplate_SWIGUpcast(cPtr), cMemoryOwn);
19  swigCPtr = cPtr;
20  }
21 
22  protected static long getCPtr(SequenceVarLocalSearchOperatorTemplate obj) {
23  return (obj == null) ? 0 : obj.swigCPtr;
24  }
25 
26  @SuppressWarnings("deprecation")
27  protected void finalize() {
28  delete();
29  }
30 
31  public synchronized void delete() {
32  if (swigCPtr != 0) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
35  mainJNI.delete_SequenceVarLocalSearchOperatorTemplate(swigCPtr);
36  }
37  swigCPtr = 0;
38  }
39  super.delete();
40  }
41 
42  public boolean HoldsDelta() {
43  return mainJNI.SequenceVarLocalSearchOperatorTemplate_HoldsDelta(swigCPtr, this);
44  }
45 
46  public boolean isIncremental() {
47  return mainJNI.SequenceVarLocalSearchOperatorTemplate_isIncremental(swigCPtr, this);
48  }
49 
50  public int size() {
51  return mainJNI.SequenceVarLocalSearchOperatorTemplate_size(swigCPtr, this);
52  }
53 
57  public int[] value(long index) {
58  return mainJNI.SequenceVarLocalSearchOperatorTemplate_value(swigCPtr, this, index);
59 }
60 
64  public SequenceVar var(long index) {
65  long cPtr = mainJNI.SequenceVarLocalSearchOperatorTemplate_var(swigCPtr, this, index);
66  return (cPtr == 0) ? null : new SequenceVar(cPtr, false);
67  }
68 
69  public int[] oldValue(long index) {
70  return mainJNI.SequenceVarLocalSearchOperatorTemplate_oldValue(swigCPtr, this, index);
71 }
72 
73  public void setValue(long index, int[] value) {
74  mainJNI.SequenceVarLocalSearchOperatorTemplate_setValue(swigCPtr, this, index, value);
75  }
76 
77  public boolean activated(long index) {
78  return mainJNI.SequenceVarLocalSearchOperatorTemplate_activated(swigCPtr, this, index);
79  }
80 
81  public void activate(long index) {
82  mainJNI.SequenceVarLocalSearchOperatorTemplate_activate(swigCPtr, this, index);
83  }
84 
85  public void deactivate(long index) {
86  mainJNI.SequenceVarLocalSearchOperatorTemplate_deactivate(swigCPtr, this, index);
87  }
88 
89  public void addVars(SequenceVar[] vars) {
90  mainJNI.SequenceVarLocalSearchOperatorTemplate_addVars(swigCPtr, this, vars);
91  }
92 
96  public void onStart() {
97  mainJNI.SequenceVarLocalSearchOperatorTemplate_onStart(swigCPtr, this);
98  }
99 
100 }
int [] value(long index)
Returns the value in the current assignment of the variable of given index.
void onStart()
Called by Start() after synchronizing the operator with the current assignment.
This class represent a reversible FIFO structure.
A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...