/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package ur_rna.RNAstructure.backend;

public class TwoRNA {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

  public TwoRNA(String sequence1, String sequence2, boolean IsRNA) {
    this(RNABackendJNI.new_TwoRNA__SWIG_0(sequence1, sequence2, IsRNA), true);
  }

  public TwoRNA(String sequence1, String sequence2) {
    this(RNABackendJNI.new_TwoRNA__SWIG_1(sequence1, sequence2), true);
  }

  public TwoRNA(String filename1, int type1, String filename2, int type2, boolean IsRNA) {
    this(RNABackendJNI.new_TwoRNA__SWIG_2(filename1, type1, filename2, type2, IsRNA), true);
  }

  public TwoRNA(String filename1, int type1, String filename2, int type2) {
    this(RNABackendJNI.new_TwoRNA__SWIG_3(filename1, type1, filename2, type2), true);
  }

  public TwoRNA(String filename1, int type1, String filename2, int type2, Thermodynamics copyThermo) {
    this(RNABackendJNI.new_TwoRNA__SWIG_4(filename1, type1, filename2, type2, Thermodynamics.getCPtr(copyThermo), copyThermo), true);
  }

  public TwoRNA() {
    this(RNABackendJNI.new_TwoRNA__SWIG_5(), true);
  }

  public int SetTemperature(double temperature) {
    return RNABackendJNI.TwoRNA_SetTemperature(swigCPtr, this, temperature);
  }

  public double GetTemperature() {
    return RNABackendJNI.TwoRNA_GetTemperature(swigCPtr, this);
  }

  public int GetErrorCode() {
    return RNABackendJNI.TwoRNA_GetErrorCode(swigCPtr, this);
  }

  public String GetErrorMessage(int error) {
    return RNABackendJNI.TwoRNA_GetErrorMessage(swigCPtr, this, error);
  }

  public String GetErrorDetails() {
    return RNABackendJNI.TwoRNA_GetErrorDetails(swigCPtr, this);
  }

  public void SetErrorDetails(String details) {
    RNABackendJNI.TwoRNA_SetErrorDetails(swigCPtr, this, details);
  }

  public String GetErrorMessageString(int error) {
    return RNABackendJNI.TwoRNA_GetErrorMessageString(swigCPtr, this, error);
  }

  public void ResetError() {
    RNABackendJNI.TwoRNA_ResetError(swigCPtr, this);
  }

  public RNA GetRNA1() {
    long cPtr = RNABackendJNI.TwoRNA_GetRNA1(swigCPtr, this);
    return (cPtr == 0) ? null : new RNA(cPtr, false);
  }

  public RNA GetRNA2() {
    long cPtr = RNABackendJNI.TwoRNA_GetRNA2(swigCPtr, this);
    return (cPtr == 0) ? null : new RNA(cPtr, false);
  }

  public void setCompoundmessage(String value) {
    RNABackendJNI.TwoRNA_compoundmessage_set(swigCPtr, this, value);
  }

  public String getCompoundmessage() {
    return RNABackendJNI.TwoRNA_compoundmessage_get(swigCPtr, this);
  }

}
