/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.19
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package SimbodyAPI;


public class RealParameter extends RealMeasure {
  private long swigCPtr;

  protected RealParameter(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGRealParameterToRealMeasure(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected RealParameter() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_RealParameter(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(RealParameter obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public RealParameter(String name) {
    this(ModelJNI.new_RealParameter__SWIG_0(name), true);
  }

  public RealParameter(RealParameter arg0) {
    this(ModelJNI.new_RealParameter__SWIG_1(RealParameter.getCPtr(arg0)), true);
  }

  public static boolean isInstanceOf(Feature arg0) {
    return ModelJNI.RealParameter_isInstanceOf(Feature.getCPtr(arg0));
  }

}
