Java Reference

Java Reference

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.2
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
9package 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
58 public int[] value(long index) {
59 return mainJNI.SequenceVarLocalSearchOperatorTemplate_value(swigCPtr, this, index);
60}
61
65 public SequenceVar var(long index) {
66 long cPtr = mainJNI.SequenceVarLocalSearchOperatorTemplate_var(swigCPtr, this, index);
67 return (cPtr == 0) ? null : new SequenceVar(cPtr, false);
68 }
69
70 public int[] oldValue(long index) {
71 return mainJNI.SequenceVarLocalSearchOperatorTemplate_oldValue(swigCPtr, this, index);
72}
73
74 public void setValue(long index, int[] value) {
75 mainJNI.SequenceVarLocalSearchOperatorTemplate_setValue(swigCPtr, this, index, value);
76 }
77
78 public boolean activated(long index) {
79 return mainJNI.SequenceVarLocalSearchOperatorTemplate_activated(swigCPtr, this, index);
80 }
81
82 public void activate(long index) {
83 mainJNI.SequenceVarLocalSearchOperatorTemplate_activate(swigCPtr, this, index);
84 }
85
86 public void deactivate(long index) {
87 mainJNI.SequenceVarLocalSearchOperatorTemplate_deactivate(swigCPtr, this, index);
88 }
89
90 public void addVars(SequenceVar[] vars) {
91 mainJNI.SequenceVarLocalSearchOperatorTemplate_addVars(swigCPtr, this, vars);
92 }
93
99 public void onStart() {
100 mainJNI.SequenceVarLocalSearchOperatorTemplate_onStart(swigCPtr, this);
101 }
102
103}
This class represent a reversible FIFO structure.
void onStart()
Called by Start() after synchronizing the operator with the current assignment.
int[] value(long index)
Returns the value in the current assignment of the variable of given index.
A sequence variable is a variable whose domain is a set of possible orderings of the interval variab...