/* ----------------------------------------------------------------------------
 * 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 Joint extends Feature {
  private long swigCPtr;

  protected Joint(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGJointToFeature(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected Joint() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_Joint(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(Joint obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public Joint(int arg0, String arg1) {
    this(ModelJNI.new_Joint__SWIG_0(arg0, arg1), true);
  }

  public Joint(Joint arg0) {
    this(ModelJNI.new_Joint__SWIG_1(Joint.getCPtr(arg0)), true);
  }

  public Joint assign(Joint arg0) {
    return new Joint(ModelJNI.Joint_assign(swigCPtr, Joint.getCPtr(arg0)), false);
  }

  public static boolean isInstanceOf(Feature arg0) {
    return ModelJNI.Joint_isInstanceOf(Feature.getCPtr(arg0));
  }

}
