Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.DeviceDescription
DeviceDescription class provides device information coming from drivers.

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

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

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

  public DeviceDescription() {
    this(InscoperJNI.new_DeviceDescription(), true);
  }

  public String getDescription() {
    return InscoperJNI.DeviceDescription_getDescription(swigCPtr, this);
  }

  public void setDescription(String description) {
    InscoperJNI.DeviceDescription_setDescription(swigCPtr, this, description);
  }

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

  public void setVersion(String version) {
    InscoperJNI.DeviceDescription_setVersion(swigCPtr, this, version);
  }

  public String getBrand() {
    return InscoperJNI.DeviceDescription_getBrand(swigCPtr, this);
  }

  public void setBrand(String brand) {
    InscoperJNI.DeviceDescription_setBrand(swigCPtr, this, brand);
  }

  public String getModel() {
    return InscoperJNI.DeviceDescription_getModel(swigCPtr, this);
  }

  public void setModel(String model) {
    InscoperJNI.DeviceDescription_setModel(swigCPtr, this, model);
  }

  public String getReleaseDate() {
    return InscoperJNI.DeviceDescription_getReleaseDate(swigCPtr, this);
  }

  public void setReleaseDate(String releaseDate) {
    InscoperJNI.DeviceDescription_setReleaseDate(swigCPtr, this, releaseDate);
  }

  public String getAuthor() {
    return InscoperJNI.DeviceDescription_getAuthor(swigCPtr, this);
  }

  public void setAuthor(String author) {
    InscoperJNI.DeviceDescription_setAuthor(swigCPtr, this, author);
  }

  public String getChangeLog() {
    return InscoperJNI.DeviceDescription_getChangeLog(swigCPtr, this);
  }

  public void setChangeLog(String changeLog) {
    InscoperJNI.DeviceDescription_setChangeLog(swigCPtr, this, changeLog);
  }

  public String getFxmlContent() {
    return InscoperJNI.DeviceDescription_getFxmlContent(swigCPtr, this);
  }

  public void setFxmlContent(String fxmlContent) {
    InscoperJNI.DeviceDescription_setFxmlContent(swigCPtr, this, fxmlContent);
  }

  public EDriverType getDriverType() {
    return EDriverType.swigToEnum(InscoperJNI.DeviceDescription_getDriverType(swigCPtr, this));
  }

  public com.inscoper.nbo.ENBOType getNBOType() {
    return com.inscoper.nbo.ENBOType.swigToEnum(InscoperJNI.DeviceDescription_getNBOType(swigCPtr, this));
}

  public void setNBOType(com.inscoper.nbo.ENBOType nboType) {
    InscoperJNI.DeviceDescription_setNBOType(swigCPtr, this, nboType.swigValue());
  }

  public boolean isInitialized() {
    return InscoperJNI.DeviceDescription_isInitialized(swigCPtr, this);
  }

  public void setInitialized(boolean initialized) {
    InscoperJNI.DeviceDescription_setInitialized(swigCPtr, this, initialized);
  }

  public void addSubDeviceDescription(SubDeviceDescription subDeviceDescription) {
    InscoperJNI.DeviceDescription_addSubDeviceDescription(swigCPtr, this, SubDeviceDescription.getCPtr(subDeviceDescription), subDeviceDescription);
  }

  public SubDeviceDescriptionVector getSubDeviceDescriptionList() {
    return new SubDeviceDescriptionVector(InscoperJNI.DeviceDescription_getSubDeviceDescriptionList(swigCPtr, this), true);
  }

  public SubDeviceDescription getSubDeviceDescription(int subDeviceTag) {
    long cPtr = InscoperJNI.DeviceDescription_getSubDeviceDescription(swigCPtr, this, subDeviceTag);
    return (cPtr == 0) ? null : new SubDeviceDescription(cPtr, true);
  }

  public void addParamsDescription(ParamDescription paramsDescription) {
    InscoperJNI.DeviceDescription_addParamsDescription(swigCPtr, this, ParamDescription.getCPtr(paramsDescription), paramsDescription);
  }

  public ParamDescription getParamsDescription(int paramTag) {
    long cPtr = InscoperJNI.DeviceDescription_getParamsDescription(swigCPtr, this, paramTag);
    return (cPtr == 0) ? null : new ParamDescription(cPtr, true);
  }

  public ParamDescriptionVector getParamsDescriptionList() {
    return new ParamDescriptionVector(InscoperJNI.DeviceDescription_getParamsDescriptionList(swigCPtr, this), false);
  }

  public void setParamDescriptionList(ParamDescriptionVector paramDescriptionList) {
    InscoperJNI.DeviceDescription_setParamDescriptionList(swigCPtr, this, ParamDescriptionVector.getCPtr(paramDescriptionList), paramDescriptionList);
  }

  public DriverDescription getDriverDescription() {
    long cPtr = InscoperJNI.DeviceDescription_getDriverDescription(swigCPtr, this);
    return DriverDescription.createProxy(cPtr, false);
}

  public void setDriverDescription(DriverDescription driverDescription) {
    InscoperJNI.DeviceDescription_setDriverDescription(swigCPtr, this, DriverDescription.getCPtr(driverDescription), driverDescription);
  }

  public void addSubDeviceGroupDescription(SubDeviceGroupDescription subDeviceGroupDescription) {
    InscoperJNI.DeviceDescription_addSubDeviceGroupDescription(swigCPtr, this, SubDeviceGroupDescription.getCPtr(subDeviceGroupDescription), subDeviceGroupDescription);
  }

  public SubDeviceGroupDescriptionVector getSubDeviceGroupDescriptionList() {
    return new SubDeviceGroupDescriptionVector(InscoperJNI.DeviceDescription_getSubDeviceGroupDescriptionList(swigCPtr, this), false);
  }

  public void setSubDeviceGroupDescriptionList(SubDeviceGroupDescriptionVector subDeviceGroupDescriptionList) {
    InscoperJNI.DeviceDescription_setSubDeviceGroupDescriptionList(swigCPtr, this, SubDeviceGroupDescriptionVector.getCPtr(subDeviceGroupDescriptionList), subDeviceGroupDescriptionList);
  }

  public SubDeviceGroupDescription getSubDeviceGroupDescription(int groupTag) {
    long cPtr = InscoperJNI.DeviceDescription_getSubDeviceGroupDescription(swigCPtr, this, groupTag);
    return (cPtr == 0) ? null : new SubDeviceGroupDescription(cPtr, true);
  }

}

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