Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.Bridge
The Bridge class is the main class of The Inscoper API.

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

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

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

  protected static long swigRelease(Bridge obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

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

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


    public Object getValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
        switch(this.getParamType(subDeviceId)) {
        case UINT8 :
            return this.getShortValue(subDeviceId);
        case INT8 :
            return this.getCharValue(subDeviceId);
        case UINT16 :
            return this.getIntValue(subDeviceId);
        case INT16 :
            return this.getShortValue(subDeviceId);
        case UINT32 :
            return this.getLongValue(subDeviceId);
        case INT32 :
            return this.getIntValue(subDeviceId);
        case UINT64 :
            return this.getUnsignedLongValue(subDeviceId);
        case INT64 :
            return this.getLongValue(subDeviceId);
        case FLOAT :
            return this.getFloatValue(subDeviceId);
        case DOUBLE :
            return this.getDoubleValue(subDeviceId);
        case STRING :
            return this.getStringValue(subDeviceId);
        default :
            return this.getStringValue(subDeviceId);
        }
    }

  public Bridge() {
    this(InscoperJNI.new_Bridge(), true);
  }

  public void setLibraryPaths(StringVector libraryPaths) {
    InscoperJNI.Bridge_setLibraryPaths(swigCPtr, this, StringVector.getCPtr(libraryPaths), libraryPaths);
  }

  public void loadConfigFile(String path) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_loadConfigFile__SWIG_0(swigCPtr, this, path);
  }

  public void loadConfigFile() throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_loadConfigFile__SWIG_1(swigCPtr, this);
  }

  public Config readConfigFile(String path) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_readConfigFile__SWIG_0(swigCPtr, this, path);
    return (cPtr == 0) ? null : new Config(cPtr, true);
  }

  public Config readConfigFile() throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_readConfigFile__SWIG_1(swigCPtr, this);
    return (cPtr == 0) ? null : new Config(cPtr, true);
  }

  public void loadConfig(Config config) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_loadConfig(swigCPtr, this, Config.getCPtr(config), config);
  }

  public void saveConfig(String path, Config config) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveConfig(swigCPtr, this, path, Config.getCPtr(config), config);
  }

  public void saveCurrentConfig(String path) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveCurrentConfig__SWIG_0(swigCPtr, this, path);
  }

  public void saveCurrentConfig() throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveCurrentConfig__SWIG_1(swigCPtr, this);
  }

  public RecipeVector readRecipeFile(String path) throws com.inscoper.api.InscoperException {
    return new RecipeVector(InscoperJNI.Bridge_readRecipeFile__SWIG_0(swigCPtr, this, path), true);
  }

  public RecipeVector readRecipeFile() throws com.inscoper.api.InscoperException {
    return new RecipeVector(InscoperJNI.Bridge_readRecipeFile__SWIG_1(swigCPtr, this), true);
  }

  public void saveRecipes(String path, RecipeVector recipes) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveRecipes(swigCPtr, this, path, RecipeVector.getCPtr(recipes), recipes);
  }

  public void initDevices() throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initDevices__SWIG_0(swigCPtr, this);
  }

  public void initDevice(String deviceId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initDevice(swigCPtr, this, deviceId);
  }

  public void initDevices(StringVector deviceIdList) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initDevices__SWIG_1(swigCPtr, this, StringVector.getCPtr(deviceIdList), deviceIdList);
  }

  public StringVector getLoadedDevices() {
    return new StringVector(InscoperJNI.Bridge_getLoadedDevices(swigCPtr, this), true);
  }

  public StringVector getInitializedDevices() {
    return new StringVector(InscoperJNI.Bridge_getInitializedDevices(swigCPtr, this), true);
  }

  public SubDeviceIdVector getInitializedSubDeviceIds() {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getInitializedSubDeviceIds(swigCPtr, this), true);
  }

  public boolean closeDevices() {
    return InscoperJNI.Bridge_closeDevices__SWIG_0(swigCPtr, this);
  }

  public boolean closeDevice(String deviceId) {
    return InscoperJNI.Bridge_closeDevice(swigCPtr, this, deviceId);
  }

  public boolean closeDevices(StringVector deviceIdList) {
    return InscoperJNI.Bridge_closeDevices__SWIG_1(swigCPtr, this, StringVector.getCPtr(deviceIdList), deviceIdList);
  }

  public void close() throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_close(swigCPtr, this);
  }

  public DeviceDescriptionVector getDeviceDescriptionList() throws com.inscoper.api.InscoperException {
    return new DeviceDescriptionVector(InscoperJNI.Bridge_getDeviceDescriptionList(swigCPtr, this), true);
  }

  public DeviceDescriptionVector loadDeviceDescriptionList(String filename) throws com.inscoper.api.InscoperException {
    return new DeviceDescriptionVector(InscoperJNI.Bridge_loadDeviceDescriptionList(swigCPtr, this, filename), true);
  }

  public void saveDeviceDescriptionList(DeviceDescriptionVector deviceDescriptionList, String filename) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveDeviceDescriptionList(swigCPtr, this, DeviceDescriptionVector.getCPtr(deviceDescriptionList), deviceDescriptionList, filename);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, String paramsFile, Status currentStatus, int printIndex, SequenceHandler handler) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_0(swigCPtr, this, sequenceNumber, recipeName, paramsFile, Status.getCPtr(currentStatus), currentStatus, printIndex, SequenceHandler.getCPtr(handler), handler);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, String paramsFile, Status currentStatus, int printIndex) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_1(swigCPtr, this, sequenceNumber, recipeName, paramsFile, Status.getCPtr(currentStatus), currentStatus, printIndex);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, String paramsFile, Status currentStatus) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_2(swigCPtr, this, sequenceNumber, recipeName, paramsFile, Status.getCPtr(currentStatus), currentStatus);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, String paramsFile) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_3(swigCPtr, this, sequenceNumber, recipeName, paramsFile);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, DimensionVector dimensionList, Status currentStatus, int printIndex, SequenceHandler handler) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_4(swigCPtr, this, sequenceNumber, recipeName, DimensionVector.getCPtr(dimensionList), dimensionList, Status.getCPtr(currentStatus), currentStatus, printIndex, SequenceHandler.getCPtr(handler), handler);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, DimensionVector dimensionList, Status currentStatus, int printIndex) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_5(swigCPtr, this, sequenceNumber, recipeName, DimensionVector.getCPtr(dimensionList), dimensionList, Status.getCPtr(currentStatus), currentStatus, printIndex);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, DimensionVector dimensionList, Status currentStatus) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_6(swigCPtr, this, sequenceNumber, recipeName, DimensionVector.getCPtr(dimensionList), dimensionList, Status.getCPtr(currentStatus), currentStatus);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, DimensionVector dimensionList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_7(swigCPtr, this, sequenceNumber, recipeName, DimensionVector.getCPtr(dimensionList), dimensionList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus, int printIndex, SequenceHandler handler) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_8(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus, printIndex, SequenceHandler.getCPtr(handler), handler);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus, int printIndex) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_9(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus, printIndex);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_10(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadSequence(int sequenceNumber, String recipeName, StatusVector statusList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadSequence__SWIG_11(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadAndRunSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus, int printIndex, boolean async) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadAndRunSequence__SWIG_0(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus, printIndex, async);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadAndRunSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus, int printIndex) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadAndRunSequence__SWIG_1(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus, printIndex);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadAndRunSequence(int sequenceNumber, String recipeName, StatusVector statusList, Status currentStatus) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadAndRunSequence__SWIG_2(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList, Status.getCPtr(currentStatus), currentStatus);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status loadAndRunSequence(int sequenceNumber, String recipeName, StatusVector statusList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_loadAndRunSequence__SWIG_3(swigCPtr, this, sequenceNumber, recipeName, StatusVector.getCPtr(statusList), statusList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public void runSequence(int sequenceNumber, boolean async) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_runSequence__SWIG_0(swigCPtr, this, sequenceNumber, async);
  }

  public void runSequence(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_runSequence__SWIG_1(swigCPtr, this, sequenceNumber);
  }

  public void waitUntilSequenceFinished(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_waitUntilSequenceFinished(swigCPtr, this, sequenceNumber);
  }

  public void pauseSequence(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_pauseSequence(swigCPtr, this, sequenceNumber);
  }

  public void continueSequence(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_continueSequence(swigCPtr, this, sequenceNumber);
  }

  public void stopSequence(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_stopSequence(swigCPtr, this, sequenceNumber);
  }

  public void removeSequence(int sequenceNumber) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_removeSequence(swigCPtr, this, sequenceNumber);
  }

  public void modifySequence(int sequenceNumber, UIntVector modifierIndexes) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_modifySequence(swigCPtr, this, sequenceNumber, UIntVector.getCPtr(modifierIndexes), modifierIndexes);
  }

  public Status addBackgroundSequence(int sequenceIndex, String recipeName, String paramsFile) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_addBackgroundSequence__SWIG_0(swigCPtr, this, sequenceIndex, recipeName, paramsFile);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status addBackgroundSequence(int sequenceIndex, String recipeName, DimensionVector dimensionList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_addBackgroundSequence__SWIG_1(swigCPtr, this, sequenceIndex, recipeName, DimensionVector.getCPtr(dimensionList), dimensionList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status addBackgroundSequence(int sequenceIndex, String recipeName, StatusVector statusList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_addBackgroundSequence__SWIG_2(swigCPtr, this, sequenceIndex, recipeName, StatusVector.getCPtr(statusList), statusList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public void removeBackgroundSequence(int sequenceIndex) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_removeBackgroundSequence(swigCPtr, this, sequenceIndex);
  }

  public void addSequenceListener(SequenceListener listener) {
    InscoperJNI.Bridge_addSequenceListener(swigCPtr, this, SequenceListener.getCPtr(listener), listener);
  }

  public void removeSequenceListener(SequenceListener listener) {
    InscoperJNI.Bridge_removeSequenceListener(swigCPtr, this, SequenceListener.getCPtr(listener), listener);
  }

  public void addAbstractSubDevice(AbstractSubDevice subDevice) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_addAbstractSubDevice(swigCPtr, this, AbstractSubDevice.getCPtr(subDevice), subDevice);
  }

  public void removeAbstractSubDevice(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_removeAbstractSubDevice(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public Camera getCamera(String id) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_getCamera(swigCPtr, this, id);
    return (cPtr == 0) ? null : new Camera(cPtr, true);
  }

  public boolean isHardwareCropAvailable(String id) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_isHardwareCropAvailable(swigCPtr, this, id);
  }

  public void setHardwareCrop(String id, RoiCropVector crops) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setHardwareCrop(swigCPtr, this, id, RoiCropVector.getCPtr(crops), crops);
  }

  public RoiCropVector getHardwareCrop(String id) throws com.inscoper.api.InscoperException {
    return new RoiCropVector(InscoperJNI.Bridge_getHardwareCrop(swigCPtr, this, id), true);
  }

  public void createTimeDevice(int index, String startRecipeId, String waitRecipeId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_createTimeDevice__SWIG_0(swigCPtr, this, index, startRecipeId, waitRecipeId);
  }

  public void createTimeDevice(int index, String startRecipeId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_createTimeDevice__SWIG_1(swigCPtr, this, index, startRecipeId);
  }

  public void createTimeDevice(int index) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_createTimeDevice__SWIG_2(swigCPtr, this, index);
  }

  public SubDeviceId getStartTimerSubDeviceId(int index) throws com.inscoper.api.InscoperException {
    return new SubDeviceId(InscoperJNI.Bridge_getStartTimerSubDeviceId(swigCPtr, this, index), true);
  }

  public SubDeviceId getWaitTimerSubDeviceId(int index) throws com.inscoper.api.InscoperException {
    return new SubDeviceId(InscoperJNI.Bridge_getWaitTimerSubDeviceId(swigCPtr, this, index), true);
  }

  public DiagResults runDeviceDiagnosis(DeviceDescription deviceDesc, DriverConfig driverConfig) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_runDeviceDiagnosis(swigCPtr, this, DeviceDescription.getCPtr(deviceDesc), deviceDesc, DriverConfig.getCPtr(driverConfig), driverConfig);
    return (cPtr == 0) ? null : new DiagResults(cPtr, true);
  }

  public void saveDiagResults(DiagResults diagResults, String filename) {
    InscoperJNI.Bridge_saveDiagResults(swigCPtr, this, DiagResults.getCPtr(diagResults), diagResults, filename);
  }

  public DiagResults loadDiagResults(String filename) {
    long cPtr = InscoperJNI.Bridge_loadDiagResults(swigCPtr, this, filename);
    return (cPtr == 0) ? null : new DiagResults(cPtr, true);
  }

  public void saveDiagResultsList(DiagResultsVector diagResultsList, String filename) {
    InscoperJNI.Bridge_saveDiagResultsList(swigCPtr, this, DiagResultsVector.getCPtr(diagResultsList), diagResultsList, filename);
  }

  public DiagResultsVector loadDiagResultsList(String filename) {
    return new DiagResultsVector(InscoperJNI.Bridge_loadDiagResultsList(swigCPtr, this, filename), true);
  }

  public SubDeviceIdVector getValueConditionChildren(SubDeviceId subDeviceId, String recipeName) throws com.inscoper.api.InscoperException {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getValueConditionChildren(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, recipeName), true);
  }

  public SubDeviceIdVector getValueConditionParents(SubDeviceId subDeviceId, String recipeName) throws com.inscoper.api.InscoperException {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getValueConditionParents(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, recipeName), true);
  }

  public SubDeviceIdVector getValueConditionSiblings(SubDeviceId subDeviceId, String recipeName) throws com.inscoper.api.InscoperException {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getValueConditionSiblings(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, recipeName), true);
  }

  public SubDeviceIdVector getCallConditionSubDeviceIdList(SubDeviceId subDeviceId, String recipeName) throws com.inscoper.api.InscoperException {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getCallConditionSubDeviceIdList(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, recipeName), true);
  }

  public StringVector getCustomDriverAvailableDevices(String driverName) throws com.inscoper.api.InscoperException {
    return new StringVector(InscoperJNI.Bridge_getCustomDriverAvailableDevices(swigCPtr, this, driverName), true);
  }

  public void addFunctionListener(FunctionListener listener) {
    InscoperJNI.Bridge_addFunctionListener__SWIG_0(swigCPtr, this, FunctionListener.getCPtr(listener), listener);
  }

  public void addFunctionListener(FunctionListener listener, String deviceId) {
    InscoperJNI.Bridge_addFunctionListener__SWIG_1(swigCPtr, this, FunctionListener.getCPtr(listener), listener, deviceId);
  }

  public void addFunctionListener(FunctionListener listener, SubDeviceId subDeviceId) {
    InscoperJNI.Bridge_addFunctionListener__SWIG_2(swigCPtr, this, FunctionListener.getCPtr(listener), listener, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public void addFunctionListener(FunctionListener listener, SubDeviceId subDeviceId, EFunctionType functionType) {
    InscoperJNI.Bridge_addFunctionListener__SWIG_3(swigCPtr, this, FunctionListener.getCPtr(listener), listener, SubDeviceId.getCPtr(subDeviceId), subDeviceId, functionType.swigValue());
  }

  public void removeFunctionListener(FunctionListener listener) {
    InscoperJNI.Bridge_removeFunctionListener(swigCPtr, this, FunctionListener.getCPtr(listener), listener);
  }

  public boolean hasGetFunction(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasGetFunction(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean hasSetFunction(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasSetFunction(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean hasCheckFunction(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasCheckFunction(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public void setValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_0(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public void setValue(SubDeviceId subDeviceId, String value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_1(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, char value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_2(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, short value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_3(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, int value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_4(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, java.math.BigInteger value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_5(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, long value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_6(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, float value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_7(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void setValue(SubDeviceId subDeviceId, double value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setValue__SWIG_8(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public String getStringValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getStringValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public char getCharValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getCharValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public short getShortValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getShortValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public int getIntValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getIntValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public java.math.BigInteger getUnsignedLongValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getUnsignedLongValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public long getLongValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getLongValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public float getFloatValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getFloatValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public double getDoubleValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getDoubleValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public StatusParam getValue(StatusParam param) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_getValue(swigCPtr, this, StatusParam.getCPtr(param), param);
    return StatusParam.createProxy(cPtr, false);
}

  public void checkValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_0(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public void checkValue(SubDeviceId subDeviceId, String value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_1(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, char value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_2(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, short value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_3(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, int value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_4(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, java.math.BigInteger value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_5(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, long value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_6(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, float value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_7(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public void checkValue(SubDeviceId subDeviceId, double value) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_checkValue__SWIG_8(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, value);
  }

  public SubDeviceIdVector getModifiedSubDevices(String deviceId) {
    return new SubDeviceIdVector(InscoperJNI.Bridge_getModifiedSubDevices(swigCPtr, this, deviceId), true);
  }

  public boolean isAccessibleInSequence(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_isAccessibleInSequence(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public void setClampMode(boolean clampMode) {
    InscoperJNI.Bridge_setClampMode(swigCPtr, this, clampMode);
  }

  public boolean hasMaxValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasMaxValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean hasMinValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasMinValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean hasStepValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasStepValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean hasListValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasListValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public boolean isReadOnly(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_isReadOnly(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public double getMaxValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getMaxValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public double getMinValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getMinValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public double getStepValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getStepValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public StringVector getListValue(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return new StringVector(InscoperJNI.Bridge_getListValue(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId), true);
  }

  public StringStringMap getKeyValueMap(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return new StringStringMap(InscoperJNI.Bridge_getKeyValueMap(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId), true);
  }

  public EParamType getParamType(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    return EParamType.swigToEnum(InscoperJNI.Bridge_getParamType(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId));
  }

  public void saveStatusListToXML(String xmlfilename, StatusVector statusList) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveStatusListToXML(swigCPtr, this, xmlfilename, StatusVector.getCPtr(statusList), statusList);
  }

  public void saveDimensionListToXML(String xmlfilename, DimensionVector dimensionList) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveDimensionListToXML(swigCPtr, this, xmlfilename, DimensionVector.getCPtr(dimensionList), dimensionList);
  }

  public Status getCurrentStatus() throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_getCurrentStatus__SWIG_0(swigCPtr, this);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status getCurrentStatus(SubDeviceId subDeviceId) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_getCurrentStatus__SWIG_1(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public Status getCurrentStatus(SubDeviceIdVector subDeviceList) throws com.inscoper.api.InscoperException {
    long cPtr = InscoperJNI.Bridge_getCurrentStatus__SWIG_2(swigCPtr, this, SubDeviceIdVector.getCPtr(subDeviceList), subDeviceList);
    return (cPtr == 0) ? null : new Status(cPtr, true);
  }

  public void getCurrentStatus(CurrentStatusAction action) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_getCurrentStatus__SWIG_3(swigCPtr, this, CurrentStatusAction.getCPtr(action), action);
  }

  public void getCurrentStatus(SubDeviceId subDeviceId, CurrentStatusAction action) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_getCurrentStatus__SWIG_4(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId, CurrentStatusAction.getCPtr(action), action);
  }

  public void getCurrentStatus(SubDeviceIdVector subDeviceList, CurrentStatusAction action) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_getCurrentStatus__SWIG_5(swigCPtr, this, SubDeviceIdVector.getCPtr(subDeviceList), subDeviceList, CurrentStatusAction.getCPtr(action), action);
  }

  public void setCurrentStatus(Status status, boolean async) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setCurrentStatus__SWIG_0(swigCPtr, this, Status.getCPtr(status), status, async);
  }

  public void setCurrentStatus(Status status) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_setCurrentStatus__SWIG_1(swigCPtr, this, Status.getCPtr(status), status);
  }

  public StatusVector getStatusList(DimensionVector dimensions) {
    return new StatusVector(InscoperJNI.Bridge_getStatusList(swigCPtr, this, DimensionVector.getCPtr(dimensions), dimensions), true);
  }

  public void addImageListener(ImageListener listener, String cameraId) {
    InscoperJNI.Bridge_addImageListener__SWIG_0(swigCPtr, this, ImageListener.getCPtr(listener), listener, cameraId);
  }

  public void addImageListener(ImageListener listener) {
    InscoperJNI.Bridge_addImageListener__SWIG_1(swigCPtr, this, ImageListener.getCPtr(listener), listener);
  }

  public void removeImageListener(ImageListener listener, String cameraId) {
    InscoperJNI.Bridge_removeImageListener__SWIG_0(swigCPtr, this, ImageListener.getCPtr(listener), listener, cameraId);
  }

  public void removeImageListener(ImageListener listener) {
    InscoperJNI.Bridge_removeImageListener__SWIG_1(swigCPtr, this, ImageListener.getCPtr(listener), listener);
  }

  public void removeImageListener(String cameraId) {
    InscoperJNI.Bridge_removeImageListener__SWIG_2(swigCPtr, this, cameraId);
  }

  public void saveImages(String filename, ImageVector images) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_saveImages(swigCPtr, this, filename, ImageVector.getCPtr(images), images);
  }

  public ImageVector loadImages(String filename) throws com.inscoper.api.InscoperException {
    return new ImageVector(InscoperJNI.Bridge_loadImages(swigCPtr, this, filename), true);
  }

  public String getVersion() {
    return InscoperJNI.Bridge_getVersion(swigCPtr, this);
  }

  public String getFirmwareVersion() throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_getFirmwareVersion(swigCPtr, this);
  }

  public void initLogger(ELogMode mode, ELogLevel level, String filename, LogListener listener) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initLogger__SWIG_0(swigCPtr, this, mode.swigValue(), level.swigValue(), filename, LogListener.getCPtr(listener), listener);
  }

  public void initLogger(ELogMode mode, ELogLevel level, String filename) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initLogger__SWIG_1(swigCPtr, this, mode.swigValue(), level.swigValue(), filename);
  }

  public void initLogger(ELogMode mode, ELogLevel level) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initLogger__SWIG_2(swigCPtr, this, mode.swigValue(), level.swigValue());
  }

  public void setLogLevel(ELogLevel level) {
    InscoperJNI.Bridge_setLogLevel(swigCPtr, this, level.swigValue());
  }

  public void removeLogListener(LogListener listener) {
    InscoperJNI.Bridge_removeLogListener(swigCPtr, this, LogListener.getCPtr(listener), listener);
  }

  public ELogLevel getLogLevel() {
    return ELogLevel.swigToEnum(InscoperJNI.Bridge_getLogLevel(swigCPtr, this));
  }

  public void initInscoperBoxLogger(ELogMode mode, ELogLevel level, String filename, LogListener listener) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initInscoperBoxLogger__SWIG_0(swigCPtr, this, mode.swigValue(), level.swigValue(), filename, LogListener.getCPtr(listener), listener);
  }

  public void initInscoperBoxLogger(ELogMode mode, ELogLevel level, String filename) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initInscoperBoxLogger__SWIG_1(swigCPtr, this, mode.swigValue(), level.swigValue(), filename);
  }

  public void initInscoperBoxLogger(ELogMode mode, ELogLevel level) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_initInscoperBoxLogger__SWIG_2(swigCPtr, this, mode.swigValue(), level.swigValue());
  }

  public void setInscoperBoxLogLevel(ELogLevel level) {
    InscoperJNI.Bridge_setInscoperBoxLogLevel(swigCPtr, this, level.swigValue());
  }

  public void removeInscoperBoxLogListener(LogListener listener) {
    InscoperJNI.Bridge_removeInscoperBoxLogListener(swigCPtr, this, LogListener.getCPtr(listener), listener);
  }

  public ELogLevel getInscoperBoxLogLevel() {
    return ELogLevel.swigToEnum(InscoperJNI.Bridge_getInscoperBoxLogLevel(swigCPtr, this));
  }

  public void setLogDirectory(String path) {
    InscoperJNI.Bridge_setLogDirectory(swigCPtr, this, path);
  }

  public void addErrorListener(ErrorListener listener) {
    InscoperJNI.Bridge_addErrorListener(swigCPtr, this, ErrorListener.getCPtr(listener), listener);
  }

  public void removeErrorListener(ErrorListener listener) {
    InscoperJNI.Bridge_removeErrorListener(swigCPtr, this, ErrorListener.getCPtr(listener), listener);
  }

  public void updateFirmware(String firmwarePath) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_updateFirmware(swigCPtr, this, firmwarePath);
  }

  public boolean connectToInscoperBox() throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_connectToInscoperBox(swigCPtr, this);
  }

  public boolean disconnectToInscoperBox() throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_disconnectToInscoperBox(swigCPtr, this);
  }

  public boolean isConnectedToInscoperBox() throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_isConnectedToInscoperBox(swigCPtr, this);
  }

  public void restartInscoperBox() throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_restartInscoperBox(swigCPtr, this);
  }

  public UsbInfoVector getInscoperBoxUsbView() throws com.inscoper.api.InscoperException {
    return new UsbInfoVector(InscoperJNI.Bridge_getInscoperBoxUsbView(swigCPtr, this), true);
  }

  public void resetInscoperBoxUsbView(double secondsToWaitBeforeReconnection) throws com.inscoper.api.InscoperException {
    InscoperJNI.Bridge_resetInscoperBoxUsbView(swigCPtr, this, secondsToWaitBeforeReconnection);
  }

  public EBoxType getInscoperBoxType() throws com.inscoper.api.InscoperException {
    return EBoxType.swigToEnum(InscoperJNI.Bridge_getInscoperBoxType(swigCPtr, this));
  }

  public boolean checkLicense() throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_checkLicense(swigCPtr, this);
  }

  public void setLicensePath(String path) {
    InscoperJNI.Bridge_setLicensePath(swigCPtr, this, path);
  }

  public boolean hasLicenseOption(String option) throws com.inscoper.api.InscoperException {
    return InscoperJNI.Bridge_hasLicenseOption(swigCPtr, this, option);
  }

  public boolean hasLicenseExpirationDate() {
    return InscoperJNI.Bridge_hasLicenseExpirationDate(swigCPtr, this);
  }

  public long getLicenseDaysLeft() {
    return InscoperJNI.Bridge_getLicenseDaysLeft(swigCPtr, this);
  }

  public SubDeviceId getRunSequenceSubDeviceId() {
    return new SubDeviceId(InscoperJNI.Bridge_getRunSequenceSubDeviceId(swigCPtr, this), true);
  }

}

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