InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/DiagResults.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.DiagResults DiagResults class contains the results from a device diagnostic. |
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 DiagResults {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected DiagResults(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(DiagResults 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_DiagResults(swigCPtr);
}
swigCPtr = 0;
}
}
public DiagResults() {
this(InscoperJNI.new_DiagResults(), true);
}
public void setSubDeviceStatus(UShortESubDeviceStatusMap statusMap) {
InscoperJNI.DiagResults_setSubDeviceStatus(swigCPtr, this, UShortESubDeviceStatusMap.getCPtr(statusMap), statusMap);
}
public ESubDeviceStatus getSubDeviceStatus(int subDeviceTag) {
return ESubDeviceStatus.swigToEnum(InscoperJNI.DiagResults_getSubDeviceStatus(swigCPtr, this, subDeviceTag));
}
public EFunctionStatus getFunctionStatus(int subDeviceTag, EFunctionType functionType) {
return EFunctionStatus.swigToEnum(InscoperJNI.DiagResults_getFunctionStatus(swigCPtr, this, subDeviceTag, functionType.swigValue()));
}
public Constraint getParamConstraint(int paramTag) {
long cPtr = InscoperJNI.DiagResults_getParamConstraint(swigCPtr, this, paramTag);
return (cPtr == 0) ? null : new Constraint(cPtr, true);
}
public UShortESubDeviceStatusMap getSubDeviceStatusMap() {
return new UShortESubDeviceStatusMap(InscoperJNI.DiagResults_getSubDeviceStatusMap(swigCPtr, this), true);
}
public void addParamConstraint(int paramTag, Constraint constraint) {
InscoperJNI.DiagResults_addParamConstraint(swigCPtr, this, paramTag, Constraint.getCPtr(constraint), constraint);
}
public void addFunctionStatus(int subDeviceTag, EFunctionType functionType, EFunctionStatus functionStatus) {
InscoperJNI.DiagResults_addFunctionStatus(swigCPtr, this, subDeviceTag, functionType.swigValue(), functionStatus.swigValue());
}
public String getName() {
return InscoperJNI.DiagResults_getName(swigCPtr, this);
}
public void setName(String name) {
InscoperJNI.DiagResults_setName(swigCPtr, this, name);
}
public DriverConfig getDriverConfig() {
long cPtr = InscoperJNI.DiagResults_getDriverConfig(swigCPtr, this);
return DriverConfig.createProxy(cPtr, false);
}
public void setDriverConfig(DriverConfig driverConfig) {
InscoperJNI.DiagResults_setDriverConfig(swigCPtr, this, DriverConfig.getCPtr(driverConfig), driverConfig);
}
public CameraDiagInfo getCameraDiagInfo() {
long cPtr = InscoperJNI.DiagResults_getCameraDiagInfo(swigCPtr, this);
return (cPtr == 0) ? null : new CameraDiagInfo(cPtr, true);
}
public void setCameraDiagInfo(CameraDiagInfo cameraDiagInfo) {
InscoperJNI.DiagResults_setCameraDiagInfo(swigCPtr, this, CameraDiagInfo.getCPtr(cameraDiagInfo), cameraDiagInfo);
}
}
Updated on 2026-09-03 at 12:14:19 +0200