com.google.ortools.constraintsolver.IntervalVarElement Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.google.ortools.constraintsolver;
public class IntervalVarElement extends AssignmentElement {
private transient long swigCPtr;
protected IntervalVarElement(long cPtr, boolean cMemoryOwn) {
super(mainJNI.IntervalVarElement_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(IntervalVarElement obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
mainJNI.delete_IntervalVarElement(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public IntervalVarElement() {
this(mainJNI.new_IntervalVarElement__SWIG_0(), true);
}
public IntervalVarElement(IntervalVar var) {
this(mainJNI.new_IntervalVarElement__SWIG_1(IntervalVar.getCPtr(var), var), true);
}
public void reset(IntervalVar var) {
mainJNI.IntervalVarElement_reset(swigCPtr, this, IntervalVar.getCPtr(var), var);
}
public IntervalVarElement clone() {
long cPtr = mainJNI.IntervalVarElement_clone(swigCPtr, this);
return (cPtr == 0) ? null : new IntervalVarElement(cPtr, false);
}
public void copy(IntervalVarElement element) {
mainJNI.IntervalVarElement_copy(swigCPtr, this, IntervalVarElement.getCPtr(element), element);
}
public IntervalVar var() {
long cPtr = mainJNI.IntervalVarElement_var(swigCPtr, this);
return (cPtr == 0) ? null : new IntervalVar(cPtr, false);
}
public void store() {
mainJNI.IntervalVarElement_store(swigCPtr, this);
}
public void restore() {
mainJNI.IntervalVarElement_restore(swigCPtr, this);
}
public long startMin() {
return mainJNI.IntervalVarElement_startMin(swigCPtr, this);
}
public long startMax() {
return mainJNI.IntervalVarElement_startMax(swigCPtr, this);
}
public long startValue() {
return mainJNI.IntervalVarElement_startValue(swigCPtr, this);
}
public long durationMin() {
return mainJNI.IntervalVarElement_durationMin(swigCPtr, this);
}
public long durationMax() {
return mainJNI.IntervalVarElement_durationMax(swigCPtr, this);
}
public long durationValue() {
return mainJNI.IntervalVarElement_durationValue(swigCPtr, this);
}
public long endMin() {
return mainJNI.IntervalVarElement_endMin(swigCPtr, this);
}
public long endMax() {
return mainJNI.IntervalVarElement_endMax(swigCPtr, this);
}
public long endValue() {
return mainJNI.IntervalVarElement_endValue(swigCPtr, this);
}
public long performedMin() {
return mainJNI.IntervalVarElement_performedMin(swigCPtr, this);
}
public long performedMax() {
return mainJNI.IntervalVarElement_performedMax(swigCPtr, this);
}
public long performedValue() {
return mainJNI.IntervalVarElement_performedValue(swigCPtr, this);
}
public void setStartMin(long m) {
mainJNI.IntervalVarElement_setStartMin(swigCPtr, this, m);
}
public void setStartMax(long m) {
mainJNI.IntervalVarElement_setStartMax(swigCPtr, this, m);
}
public void setStartRange(long mi, long ma) {
mainJNI.IntervalVarElement_setStartRange(swigCPtr, this, mi, ma);
}
public void setStartValue(long v) {
mainJNI.IntervalVarElement_setStartValue(swigCPtr, this, v);
}
public void setDurationMin(long m) {
mainJNI.IntervalVarElement_setDurationMin(swigCPtr, this, m);
}
public void setDurationMax(long m) {
mainJNI.IntervalVarElement_setDurationMax(swigCPtr, this, m);
}
public void setDurationRange(long mi, long ma) {
mainJNI.IntervalVarElement_setDurationRange(swigCPtr, this, mi, ma);
}
public void setDurationValue(long v) {
mainJNI.IntervalVarElement_setDurationValue(swigCPtr, this, v);
}
public void setEndMin(long m) {
mainJNI.IntervalVarElement_setEndMin(swigCPtr, this, m);
}
public void setEndMax(long m) {
mainJNI.IntervalVarElement_setEndMax(swigCPtr, this, m);
}
public void setEndRange(long mi, long ma) {
mainJNI.IntervalVarElement_setEndRange(swigCPtr, this, mi, ma);
}
public void setEndValue(long v) {
mainJNI.IntervalVarElement_setEndValue(swigCPtr, this, v);
}
public void setPerformedMin(long m) {
mainJNI.IntervalVarElement_setPerformedMin(swigCPtr, this, m);
}
public void setPerformedMax(long m) {
mainJNI.IntervalVarElement_setPerformedMax(swigCPtr, this, m);
}
public void setPerformedRange(long mi, long ma) {
mainJNI.IntervalVarElement_setPerformedRange(swigCPtr, this, mi, ma);
}
public void setPerformedValue(long v) {
mainJNI.IntervalVarElement_setPerformedValue(swigCPtr, this, v);
}
public boolean bound() {
return mainJNI.IntervalVarElement_bound(swigCPtr, this);
}
public String toString() {
return mainJNI.IntervalVarElement_toString(swigCPtr, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy