InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/DeviceConfig.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.DeviceConfig DeviceConfig class provides information for device configuration. |
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 DeviceConfig {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected DeviceConfig(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(DeviceConfig 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_DeviceConfig(swigCPtr);
}
swigCPtr = 0;
}
}
public DeviceConfig(EDriverType driverType) {
this(InscoperJNI.new_DeviceConfig(driverType.swigValue()), true);
}
public void fromXML(XMLNode deviceNode) throws com.inscoper.api.InscoperException {
InscoperJNI.DeviceConfig_fromXML(swigCPtr, this, XMLNode.getCPtr(deviceNode), deviceNode);
}
public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
InscoperJNI.DeviceConfig_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
}
public String getId() {
return InscoperJNI.DeviceConfig_getId(swigCPtr, this);
}
public void setId(String id) {
InscoperJNI.DeviceConfig_setId(swigCPtr, this, id);
}
public String getMetaDeviceId() {
return InscoperJNI.DeviceConfig_getMetaDeviceId(swigCPtr, this);
}
public void setMetaDeviceId(String metaDeviceId) {
InscoperJNI.DeviceConfig_setMetaDeviceId(swigCPtr, this, metaDeviceId);
}
public EDriverType getDriverType() {
return EDriverType.swigToEnum(InscoperJNI.DeviceConfig_getDriverType(swigCPtr, this));
}
public void setDriverType(EDriverType driverType) {
InscoperJNI.DeviceConfig_setDriverType(swigCPtr, this, driverType.swigValue());
}
public com.inscoper.nbo.ENBOType getNBOType() {
return com.inscoper.nbo.ENBOType.swigToEnum(InscoperJNI.DeviceConfig_getNBOType(swigCPtr, this));
}
public boolean hasNBOType() {
return InscoperJNI.DeviceConfig_hasNBOType(swigCPtr, this);
}
public void setNBOType(com.inscoper.nbo.ENBOType nboType) {
InscoperJNI.DeviceConfig_setNBOType(swigCPtr, this, nboType.swigValue());
}
public void unsetNBOType() {
InscoperJNI.DeviceConfig_unsetNBOType(swigCPtr, this);
}
public SubDeviceGroupConfigVector getSubDeviceGroupConfigList() {
return new SubDeviceGroupConfigVector(InscoperJNI.DeviceConfig_getSubDeviceGroupConfigList(swigCPtr, this), false);
}
public void setSubDeviceGroupConfigList(SubDeviceGroupConfigVector subDeviceGroups) {
InscoperJNI.DeviceConfig_setSubDeviceGroupConfigList(swigCPtr, this, SubDeviceGroupConfigVector.getCPtr(subDeviceGroups), subDeviceGroups);
}
public void addSubDeviceGroupConfig(SubDeviceGroupConfig subDeviceGroup) {
InscoperJNI.DeviceConfig_addSubDeviceGroupConfig(swigCPtr, this, SubDeviceGroupConfig.getCPtr(subDeviceGroup), subDeviceGroup);
}
public DriverConfig getDriverConfig() {
long cPtr = InscoperJNI.DeviceConfig_getDriverConfig(swigCPtr, this);
return DriverConfig.createProxy(cPtr, false);
}
public void setDriverConfig(DriverConfig driverConfig) {
InscoperJNI.DeviceConfig_setDriverConfig(swigCPtr, this, DriverConfig.getCPtr(driverConfig), driverConfig);
}
}
Updated on 2026-09-03 at 12:14:19 +0200