9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
18 super(mainJNI.SequenceVar_SWIGUpcast(cPtr), cMemoryOwn);
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_SequenceVar(swigCPtr);
43 this(mainJNI.new_SequenceVar(
Solver.getCPtr(s), s, intervals, nexts,
name),
true);
47 return mainJNI.SequenceVar_toString(swigCPtr,
this);
54 mainJNI.SequenceVar_rankFirst(swigCPtr,
this, index);
61 mainJNI.SequenceVar_rankNotFirst(swigCPtr,
this, index);
68 mainJNI.SequenceVar_rankLast(swigCPtr,
this, index);
75 mainJNI.SequenceVar_rankNotLast(swigCPtr,
this, index);
81 public void rankSequence(
int[] rank_first,
int[] rank_last,
int[] unperformed) {
82 mainJNI.SequenceVar_rankSequence(swigCPtr,
this, rank_first, rank_last, unperformed);
89 long cPtr = mainJNI.SequenceVar_interval(swigCPtr,
this, index);
90 return (cPtr == 0) ? null :
new IntervalVar(cPtr,
false);
97 long cPtr = mainJNI.SequenceVar_next(swigCPtr,
this, index);
98 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
105 return mainJNI.SequenceVar_size(swigCPtr,
this);
112 mainJNI.SequenceVar_accept(swigCPtr,
this,
ModelVisitor.getCPtr(visitor), visitor);