Java Reference

Java Reference

SequenceVarElement.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.1
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 
11 public class SequenceVarElement extends AssignmentElement {
12  private transient long swigCPtr;
13 
14  protected SequenceVarElement(long cPtr, boolean cMemoryOwn) {
15  super(mainJNI.SequenceVarElement_SWIGUpcast(cPtr), cMemoryOwn);
16  swigCPtr = cPtr;
17  }
18 
19  protected static long getCPtr(SequenceVarElement obj) {
20  return (obj == null) ? 0 : obj.swigCPtr;
21  }
22 
23  @SuppressWarnings("deprecation")
24  protected void finalize() {
25  delete();
26  }
27 
28  public synchronized void delete() {
29  if (swigCPtr != 0) {
30  if (swigCMemOwn) {
31  swigCMemOwn = false;
32  mainJNI.delete_SequenceVarElement(swigCPtr);
33  }
34  swigCPtr = 0;
35  }
36  super.delete();
37  }
38 
39  public SequenceVarElement() {
40  this(mainJNI.new_SequenceVarElement__SWIG_0(), true);
41  }
42 
44  this(mainJNI.new_SequenceVarElement__SWIG_1(SequenceVar.getCPtr(var), var), true);
45  }
46 
47  public void reset(SequenceVar var) {
48  mainJNI.SequenceVarElement_reset(swigCPtr, this, SequenceVar.getCPtr(var), var);
49  }
50 
52  long cPtr = mainJNI.SequenceVarElement_clone(swigCPtr, this);
53  return (cPtr == 0) ? null : new SequenceVarElement(cPtr, false);
54  }
55 
56  public void copy(SequenceVarElement element) {
57  mainJNI.SequenceVarElement_copy(swigCPtr, this, SequenceVarElement.getCPtr(element), element);
58  }
59 
60  public SequenceVar var() {
61  long cPtr = mainJNI.SequenceVarElement_var(swigCPtr, this);
62  return (cPtr == 0) ? null : new SequenceVar(cPtr, false);
63  }
64 
65  public void store() {
66  mainJNI.SequenceVarElement_store(swigCPtr, this);
67  }
68 
69  public void restore() {
70  mainJNI.SequenceVarElement_restore(swigCPtr, this);
71  }
72 
73  public int[] forwardSequence() {
74  return mainJNI.SequenceVarElement_forwardSequence(swigCPtr, this);
75 }
76 
77  public int[] backwardSequence() {
78  return mainJNI.SequenceVarElement_backwardSequence(swigCPtr, this);
79 }
80 
81  public int[] unperformed() {
82  return mainJNI.SequenceVarElement_unperformed(swigCPtr, this);
83 }
84 
85  public void setSequence(int[] forward_sequence, int[] backward_sequence, int[] unperformed) {
86  mainJNI.SequenceVarElement_setSequence(swigCPtr, this, forward_sequence, backward_sequence, unperformed);
87  }
88 
89  public void setForwardSequence(int[] forward_sequence) {
90  mainJNI.SequenceVarElement_setForwardSequence(swigCPtr, this, forward_sequence);
91  }
92 
93  public void setBackwardSequence(int[] backward_sequence) {
94  mainJNI.SequenceVarElement_setBackwardSequence(swigCPtr, this, backward_sequence);
95  }
96 
97  public void setUnperformed(int[] unperformed) {
98  mainJNI.SequenceVarElement_setUnperformed(swigCPtr, this, unperformed);
99  }
100 
101  public boolean bound() {
102  return mainJNI.SequenceVarElement_bound(swigCPtr, this);
103  }
104 
105  public String toString() {
106  return mainJNI.SequenceVarElement_toString(swigCPtr, this);
107  }
108 
109 }
SequenceVar var()
int[] backwardSequence()
int[] forwardSequence()
void store()
SequenceVarElement(SequenceVar var)
void setBackwardSequence(int[] backward_sequence)
String toString()
boolean bound()
void copy(SequenceVarElement element)
void restore()
void setForwardSequence(int[] forward_sequence)
void setSequence(int[] forward_sequence, int[] backward_sequence, int[] unperformed)
int[] unperformed()
SequenceVarElement()
SequenceVarElement clone()
SequenceVarElement(long cPtr, boolean cMemoryOwn)
void reset(SequenceVar var)
void setUnperformed(int[] unperformed)