9package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.IntervalVarElement_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
27 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
29 obj.swigCMemOwn =
false;
35 @SuppressWarnings({
"deprecation",
"removal"})
44 mainJNI.delete_IntervalVarElement(swigCPtr);
52 this(mainJNI.new_IntervalVarElement__SWIG_0(),
true);
64 long cPtr = mainJNI.IntervalVarElement_clone(swigCPtr,
this);
73 long cPtr = mainJNI.IntervalVarElement_var(swigCPtr,
this);
74 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
78 mainJNI.IntervalVarElement_store(swigCPtr,
this);
82 mainJNI.IntervalVarElement_restore(swigCPtr,
this);
86 return mainJNI.IntervalVarElement_startMin(swigCPtr,
this);
90 return mainJNI.IntervalVarElement_startMax(swigCPtr,
this);
94 return mainJNI.IntervalVarElement_startValue(swigCPtr,
this);
98 return mainJNI.IntervalVarElement_durationMin(swigCPtr,
this);
102 return mainJNI.IntervalVarElement_durationMax(swigCPtr,
this);
106 return mainJNI.IntervalVarElement_durationValue(swigCPtr,
this);
110 return mainJNI.IntervalVarElement_endMin(swigCPtr,
this);
114 return mainJNI.IntervalVarElement_endMax(swigCPtr,
this);
118 return mainJNI.IntervalVarElement_endValue(swigCPtr,
this);
122 return mainJNI.IntervalVarElement_performedMin(swigCPtr,
this);
126 return mainJNI.IntervalVarElement_performedMax(swigCPtr,
this);
130 return mainJNI.IntervalVarElement_performedValue(swigCPtr,
this);
134 mainJNI.IntervalVarElement_setStartMin(swigCPtr,
this, m);
138 mainJNI.IntervalVarElement_setStartMax(swigCPtr,
this, m);
142 mainJNI.IntervalVarElement_setStartRange(swigCPtr,
this, mi, ma);
146 mainJNI.IntervalVarElement_setStartValue(swigCPtr,
this, v);
150 mainJNI.IntervalVarElement_setDurationMin(swigCPtr,
this, m);
154 mainJNI.IntervalVarElement_setDurationMax(swigCPtr,
this, m);
158 mainJNI.IntervalVarElement_setDurationRange(swigCPtr,
this, mi, ma);
162 mainJNI.IntervalVarElement_setDurationValue(swigCPtr,
this, v);
166 mainJNI.IntervalVarElement_setEndMin(swigCPtr,
this, m);
170 mainJNI.IntervalVarElement_setEndMax(swigCPtr,
this, m);
174 mainJNI.IntervalVarElement_setEndRange(swigCPtr,
this, mi, ma);
178 mainJNI.IntervalVarElement_setEndValue(swigCPtr,
this, v);
182 mainJNI.IntervalVarElement_setPerformedMin(swigCPtr,
this, m);
186 mainJNI.IntervalVarElement_setPerformedMax(swigCPtr,
this, m);
190 mainJNI.IntervalVarElement_setPerformedRange(swigCPtr,
this, mi, ma);
194 mainJNI.IntervalVarElement_setPerformedValue(swigCPtr,
this, v);
198 return mainJNI.IntervalVarElement_bound(swigCPtr,
this);
202 return mainJNI.IntervalVarElement_toString(swigCPtr,
this);