Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
IntervalVarElement.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.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
9package com.google.ortools.constraintsolver;
10
12 private transient long swigCPtr;
13
14 protected IntervalVarElement(long cPtr, boolean cMemoryOwn) {
15 super(mainJNI.IntervalVarElement_SWIGUpcast(cPtr), cMemoryOwn);
16 swigCPtr = cPtr;
17 }
18
19 protected static long getCPtr(IntervalVarElement obj) {
20 return (obj == null) ? 0 : obj.swigCPtr;
21 }
22
23 protected static long swigRelease(IntervalVarElement obj) {
24 long ptr = 0;
25 if (obj != null) {
26 if (!obj.swigCMemOwn)
27 throw new RuntimeException("Cannot release ownership as memory is not owned");
28 ptr = obj.swigCPtr;
29 obj.swigCMemOwn = false;
30 obj.delete();
31 }
32 return ptr;
33 }
34
35 @SuppressWarnings({"deprecation", "removal"})
36 protected void finalize() {
37 delete();
38 }
39
40 public synchronized void delete() {
41 if (swigCPtr != 0) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
44 mainJNI.delete_IntervalVarElement(swigCPtr);
45 }
46 swigCPtr = 0;
47 }
48 super.delete();
49 }
50
52 this(mainJNI.new_IntervalVarElement__SWIG_0(), true);
53 }
54
56 this(mainJNI.new_IntervalVarElement__SWIG_1(IntervalVar.getCPtr(var), var), true);
57 }
58
59 public void reset(IntervalVar var) {
60 mainJNI.IntervalVarElement_reset(swigCPtr, this, IntervalVar.getCPtr(var), var);
61 }
62
64 long cPtr = mainJNI.IntervalVarElement_clone(swigCPtr, this);
65 return (cPtr == 0) ? null : new IntervalVarElement(cPtr, false);
66 }
67
68 public void copy(IntervalVarElement element) {
69 mainJNI.IntervalVarElement_copy(swigCPtr, this, IntervalVarElement.getCPtr(element), element);
70 }
71
72 public IntervalVar var() {
73 long cPtr = mainJNI.IntervalVarElement_var(swigCPtr, this);
74 return (cPtr == 0) ? null : new IntervalVar(cPtr, false);
75 }
76
77 public void store() {
78 mainJNI.IntervalVarElement_store(swigCPtr, this);
79 }
80
81 public void restore() {
82 mainJNI.IntervalVarElement_restore(swigCPtr, this);
83 }
84
85 public long startMin() {
86 return mainJNI.IntervalVarElement_startMin(swigCPtr, this);
87 }
88
89 public long startMax() {
90 return mainJNI.IntervalVarElement_startMax(swigCPtr, this);
91 }
92
93 public long startValue() {
94 return mainJNI.IntervalVarElement_startValue(swigCPtr, this);
95 }
96
97 public long durationMin() {
98 return mainJNI.IntervalVarElement_durationMin(swigCPtr, this);
99 }
100
101 public long durationMax() {
102 return mainJNI.IntervalVarElement_durationMax(swigCPtr, this);
103 }
104
105 public long durationValue() {
106 return mainJNI.IntervalVarElement_durationValue(swigCPtr, this);
107 }
108
109 public long endMin() {
110 return mainJNI.IntervalVarElement_endMin(swigCPtr, this);
111 }
112
113 public long endMax() {
114 return mainJNI.IntervalVarElement_endMax(swigCPtr, this);
115 }
116
117 public long endValue() {
118 return mainJNI.IntervalVarElement_endValue(swigCPtr, this);
119 }
120
121 public long performedMin() {
122 return mainJNI.IntervalVarElement_performedMin(swigCPtr, this);
123 }
124
125 public long performedMax() {
126 return mainJNI.IntervalVarElement_performedMax(swigCPtr, this);
127 }
128
129 public long performedValue() {
130 return mainJNI.IntervalVarElement_performedValue(swigCPtr, this);
131 }
132
133 public void setStartMin(long m) {
134 mainJNI.IntervalVarElement_setStartMin(swigCPtr, this, m);
135 }
136
137 public void setStartMax(long m) {
138 mainJNI.IntervalVarElement_setStartMax(swigCPtr, this, m);
139 }
140
141 public void setStartRange(long mi, long ma) {
142 mainJNI.IntervalVarElement_setStartRange(swigCPtr, this, mi, ma);
143 }
144
145 public void setStartValue(long v) {
146 mainJNI.IntervalVarElement_setStartValue(swigCPtr, this, v);
147 }
148
149 public void setDurationMin(long m) {
150 mainJNI.IntervalVarElement_setDurationMin(swigCPtr, this, m);
151 }
152
153 public void setDurationMax(long m) {
154 mainJNI.IntervalVarElement_setDurationMax(swigCPtr, this, m);
155 }
156
157 public void setDurationRange(long mi, long ma) {
158 mainJNI.IntervalVarElement_setDurationRange(swigCPtr, this, mi, ma);
159 }
160
161 public void setDurationValue(long v) {
162 mainJNI.IntervalVarElement_setDurationValue(swigCPtr, this, v);
163 }
164
165 public void setEndMin(long m) {
166 mainJNI.IntervalVarElement_setEndMin(swigCPtr, this, m);
167 }
168
169 public void setEndMax(long m) {
170 mainJNI.IntervalVarElement_setEndMax(swigCPtr, this, m);
171 }
172
173 public void setEndRange(long mi, long ma) {
174 mainJNI.IntervalVarElement_setEndRange(swigCPtr, this, mi, ma);
175 }
176
177 public void setEndValue(long v) {
178 mainJNI.IntervalVarElement_setEndValue(swigCPtr, this, v);
179 }
180
181 public void setPerformedMin(long m) {
182 mainJNI.IntervalVarElement_setPerformedMin(swigCPtr, this, m);
183 }
184
185 public void setPerformedMax(long m) {
186 mainJNI.IntervalVarElement_setPerformedMax(swigCPtr, this, m);
187 }
188
189 public void setPerformedRange(long mi, long ma) {
190 mainJNI.IntervalVarElement_setPerformedRange(swigCPtr, this, mi, ma);
191 }
192
193 public void setPerformedValue(long v) {
194 mainJNI.IntervalVarElement_setPerformedValue(swigCPtr, this, v);
195 }
196
197 public boolean bound() {
198 return mainJNI.IntervalVarElement_bound(swigCPtr, this);
199 }
200
201 public String toString() {
202 return mainJNI.IntervalVarElement_toString(swigCPtr, this);
203 }
204
205}