Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.AdvancedConnectionConfig
AdvancedConnectionConfig class provides required information for most connections: Analog, TTL, PWM, RS232/UART.

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 AdvancedConnectionConfig extends ConnectionConfig {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected AdvancedConnectionConfig(long cPtr, boolean cMemoryOwn) {
    super(InscoperJNI.AdvancedConnectionConfig_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

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

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwnDerived = own;
    super.swigSetCMemOwn(own);
  }

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

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwnDerived) {
        swigCMemOwnDerived = false;
        InscoperJNI.delete_AdvancedConnectionConfig(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public AdvancedConnectionConfig() {
    this(InscoperJNI.new_AdvancedConnectionConfig(), true);
  }

  public void fromXML(XMLNode connectionNode) throws com.inscoper.api.InscoperException {
    InscoperJNI.AdvancedConnectionConfig_fromXML(swigCPtr, this, XMLNode.getCPtr(connectionNode), connectionNode);
  }

  public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
    InscoperJNI.AdvancedConnectionConfig_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
  }

  public EConnectionType getType() {
    return EConnectionType.swigToEnum(InscoperJNI.AdvancedConnectionConfig_getType(swigCPtr, this));
  }

  public EConnectorType getTypeProvided() {
    return EConnectorType.swigToEnum(InscoperJNI.AdvancedConnectionConfig_getTypeProvided(swigCPtr, this));
  }

  public void setTypeProvided(EConnectorType typeProvided) {
    InscoperJNI.AdvancedConnectionConfig_setTypeProvided(swigCPtr, this, typeProvided.swigValue());
  }

  public short getConnectionId() {
    return InscoperJNI.AdvancedConnectionConfig_getConnectionId(swigCPtr, this);
  }

  public void setConnectionId(short connectionId) {
    InscoperJNI.AdvancedConnectionConfig_setConnectionId(swigCPtr, this, connectionId);
  }

}

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