9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.SequenceVar_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
23 @SuppressWarnings(
"deprecation")
24 protected
void finalize() {
28 public synchronized void delete() {
32 mainJNI.delete_SequenceVar(swigCPtr);
40 this(mainJNI.new_SequenceVar(
Solver.getCPtr(s), s, intervals, nexts,
name),
true);
44 return mainJNI.SequenceVar_toString(swigCPtr,
this);
48 mainJNI.SequenceVar_rankFirst(swigCPtr,
this, index);
52 mainJNI.SequenceVar_rankNotFirst(swigCPtr,
this, index);
56 mainJNI.SequenceVar_rankLast(swigCPtr,
this, index);
60 mainJNI.SequenceVar_rankNotLast(swigCPtr,
this, index);
63 public void rankSequence(
int[] rank_first,
int[] rank_last,
int[] unperformed) {
64 mainJNI.SequenceVar_rankSequence(swigCPtr,
this, rank_first, rank_last, unperformed);
68 long cPtr = mainJNI.SequenceVar_interval(swigCPtr,
this, index);
69 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
73 long cPtr = mainJNI.SequenceVar_next(swigCPtr,
this, index);
74 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
78 return mainJNI.SequenceVar_size(swigCPtr,
this);
82 mainJNI.SequenceVar_accept(swigCPtr,
this,
ModelVisitor.getCPtr(visitor), visitor);