Skip to content

InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/SequenceHandler.java

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.SequenceHandler
SequenceHandler class manages sequence preparation progress and cancellation.

Source code

/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.inscoper.api;
import com.inscoper.api.logging.*;

public class SequenceHandler {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

  protected SequenceHandler(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(SequenceHandler obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwn = own;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        InscoperJNI.delete_SequenceHandler(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  protected void swigDirectorDisconnect() {
    swigSetCMemOwn(false);
    delete();
  }

  public void swigReleaseOwnership() {
    swigSetCMemOwn(false);
    InscoperJNI.SequenceHandler_change_ownership(this, swigCPtr, false);
  }

  public void swigTakeOwnership() {
    swigSetCMemOwn(true);
    InscoperJNI.SequenceHandler_change_ownership(this, swigCPtr, true);
  }

  public SequenceHandler(java.math.BigInteger interval) {
    this(InscoperJNI.new_SequenceHandler__SWIG_0(interval), true);
    InscoperJNI.SequenceHandler_director_connect(this, swigCPtr, true, true);
  }

  public SequenceHandler() {
    this(InscoperJNI.new_SequenceHandler__SWIG_1(), true);
    InscoperJNI.SequenceHandler_director_connect(this, swigCPtr, true, true);
  }

  public void onProgress(ESequencePreparationStatus status, float progress) {
    InscoperJNI.SequenceHandler_onProgress(swigCPtr, this, status.swigValue(), progress);
  }

  public void cancelPreparation() {
    InscoperJNI.SequenceHandler_cancelPreparation(swigCPtr, this);
  }

  public boolean isCancelled() {
    return InscoperJNI.SequenceHandler_isCancelled(swigCPtr, this);
  }

  public void setInterval(java.math.BigInteger interval) {
    InscoperJNI.SequenceHandler_setInterval(swigCPtr, this, interval);
  }

  public java.math.BigInteger getInterval() {
    return InscoperJNI.SequenceHandler_getInterval(swigCPtr, this);
  }

}

Updated on 2026-09-03 at 12:14:19 +0200