9package com.google.ortools.constraintsolver;
20 private transient long swigCPtr;
23 super(mainJNI.SequenceVar_SWIGUpcast(cPtr), cMemoryOwn);
28 return (obj ==
null) ? 0 : obj.swigCPtr;
35 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
37 obj.swigCMemOwn =
false;
43 @SuppressWarnings({
"deprecation",
"removal"})
52 mainJNI.delete_SequenceVar(swigCPtr);
60 this(mainJNI.new_SequenceVar(
Solver.
getCPtr(s), s, intervals, nexts,
name),
true);
64 return mainJNI.SequenceVar_toString(swigCPtr,
this);
72 mainJNI.SequenceVar_rankFirst(swigCPtr,
this, index);
80 mainJNI.SequenceVar_rankNotFirst(swigCPtr,
this, index);
88 mainJNI.SequenceVar_rankLast(swigCPtr,
this, index);
96 mainJNI.SequenceVar_rankNotLast(swigCPtr,
this, index);
106 public void rankSequence(
int[] rank_first,
int[] rank_last,
int[] unperformed) {
107 mainJNI.SequenceVar_rankSequence(swigCPtr,
this, rank_first, rank_last, unperformed);
114 long cPtr = mainJNI.SequenceVar_interval(swigCPtr,
this, index);
115 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
122 long cPtr = mainJNI.SequenceVar_next(swigCPtr,
this, index);
123 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
130 return mainJNI.SequenceVar_size(swigCPtr,
this);