/* ----------------------------------------------------------------------------
 * 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 RealPlacement extends Placement {
  private long swigCPtr;

  protected RealPlacement(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGRealPlacementToPlacement(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_RealPlacement(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(RealPlacement obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public RealPlacement() {
    this(ModelJNI.new_RealPlacement__SWIG_0(), true);
  }

  public RealPlacement(double arg0) {
    this(ModelJNI.new_RealPlacement__SWIG_1(arg0), true);
  }

  public RealPlacement(RealParameter arg0) {
    this(ModelJNI.new_RealPlacement__SWIG_2(RealParameter.getCPtr(arg0)), true);
  }

  public RealPlacement(RealMeasure arg0) {
    this(ModelJNI.new_RealPlacement__SWIG_3(RealMeasure.getCPtr(arg0)), true);
  }

  public RealPlacement(Feature arg0) {
    this(ModelJNI.new_RealPlacement__SWIG_4(Feature.getCPtr(arg0)), true);
  }

  public RealPlacement(SWIGTYPE_p_RealPlacementRep r) {
    this(ModelJNI.new_RealPlacement__SWIG_5(SWIGTYPE_p_RealPlacementRep.getCPtr(r)), true);
  }

  public SWIGTYPE_p_RealPlacementRep getRep() {
    return new SWIGTYPE_p_RealPlacementRep(ModelJNI.RealPlacement_getRep(swigCPtr), false);
  }

  public static boolean isInstanceOf(Placement arg0) {
    return ModelJNI.RealPlacement_isInstanceOf(Placement.getCPtr(arg0));
  }

}
