Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.AbstractSystem
AbstractSystem class is the base class for all device types.

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 AbstractSystem {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

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

  protected static long getCPtr(AbstractSystem 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_AbstractSystem(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public static AbstractSystem createProxy(long cPtr, boolean cMemoryOwn) {
    if (cPtr == 0) return null;
    AbstractSystem tmp = new AbstractSystem(cPtr, false);
    int type = tmp.getRealType();
    switch(type) {
         case 1: return new Camera(cPtr, cMemoryOwn);   case 2: return new Shutter(cPtr, cMemoryOwn);   case 3: return new Stage(cPtr, cMemoryOwn);   case 4: return new XYStage(cPtr, cMemoryOwn);   case 5: return new SLM(cPtr, cMemoryOwn); 
        default: return new AbstractSystem(cPtr, cMemoryOwn);
    }
  }

  { }

  public EDeviceType getDeviceType() {
    return EDeviceType.swigToEnum(InscoperJNI.AbstractSystem_getDeviceType(swigCPtr, this));
  }

  public String getLastError() {
    return InscoperJNI.AbstractSystem_getLastError(swigCPtr, this);
  }

  public StringVector getProperties() {
    return new StringVector(InscoperJNI.AbstractSystem_getProperties(swigCPtr, this), true);
  }

  public SubDeviceIdVector getModifiedProperties() {
    return new SubDeviceIdVector(InscoperJNI.AbstractSystem_getModifiedProperties(swigCPtr, this), true);
  }

  public String getProperty(String name) {
    return InscoperJNI.AbstractSystem_getProperty(swigCPtr, this, name);
  }

  public void setProperty(String name, String value) {
    InscoperJNI.AbstractSystem_setProperty(swigCPtr, this, name, value);
  }

  public void checkProperty(String name) {
    InscoperJNI.AbstractSystem_checkProperty(swigCPtr, this, name);
  }

  public boolean isReadOnly(String propName) {
    return InscoperJNI.AbstractSystem_isReadOnly(swigCPtr, this, propName);
  }

  public EParamType getType(String propName) {
    return EParamType.swigToEnum(InscoperJNI.AbstractSystem_getType(swigCPtr, this, propName));
  }

  public String getMin(String propName) {
    return InscoperJNI.AbstractSystem_getMin(swigCPtr, this, propName);
  }

  public String getMax(String propName) {
    return InscoperJNI.AbstractSystem_getMax(swigCPtr, this, propName);
  }

  public String getStep(String propName) {
    return InscoperJNI.AbstractSystem_getStep(swigCPtr, this, propName);
  }

  public StringVector getValueList(String propName) {
    return new StringVector(InscoperJNI.AbstractSystem_getValueList(swigCPtr, this, propName), true);
  }

  public boolean isAccessibleInSequence(String propName) {
    return InscoperJNI.AbstractSystem_isAccessibleInSequence(swigCPtr, this, propName);
  }

  public int getRealType() {
    return InscoperJNI.AbstractSystem_getRealType(swigCPtr, this);
  }

}

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