/* ----------------------------------------------------------------------------
 * 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 StationPlacement extends Placement {
  private long swigCPtr;

  protected StationPlacement(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGStationPlacementToPlacement(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_StationPlacement(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(StationPlacement obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public StationPlacement() {
    this(ModelJNI.new_StationPlacement__SWIG_0(), true);
  }

  public StationPlacement(Station arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_1(Station.getCPtr(arg0)), true);
  }

  public StationPlacement(StationMeasure arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_2(StationMeasure.getCPtr(arg0)), true);
  }

  public StationPlacement(StationParameter arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_3(StationParameter.getCPtr(arg0)), true);
  }

  public StationPlacement(SWIGTYPE_p_simtk__VecT3_t arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_4(SWIGTYPE_p_simtk__VecT3_t.getCPtr(arg0)), true);
  }

  public StationPlacement(Frame arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_5(Frame.getCPtr(arg0)), true);
  }

  public StationPlacement(Feature arg0) {
    this(ModelJNI.new_StationPlacement__SWIG_6(Feature.getCPtr(arg0)), true);
  }

  public StationPlacement(SWIGTYPE_p_StationPlacementRep r) {
    this(ModelJNI.new_StationPlacement__SWIG_7(SWIGTYPE_p_StationPlacementRep.getCPtr(r)), true);
  }

  public SWIGTYPE_p_StationPlacementRep getRep() {
    return new SWIGTYPE_p_StationPlacementRep(ModelJNI.StationPlacement_getRep(swigCPtr), false);
  }

  public static boolean isInstanceOf(Placement arg0) {
    return ModelJNI.StationPlacement_isInstanceOf(Placement.getCPtr(arg0));
  }

}
