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

package com.sundogsoftware.silverlining;

public class WindVolume {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

  public WindVolume() {
    this(SilverLiningWindVolumeJNI.new_WindVolume(), true);
  }

  public void SetMinAltitude(double metersMSL) {
    SilverLiningWindVolumeJNI.WindVolume_SetMinAltitude(swigCPtr, this, metersMSL);
  }

  public double GetMinAltitude() {
    return SilverLiningWindVolumeJNI.WindVolume_GetMinAltitude(swigCPtr, this);
  }

  public void SetMaxAltitude(double metersMSL) {
    SilverLiningWindVolumeJNI.WindVolume_SetMaxAltitude(swigCPtr, this, metersMSL);
  }

  public double GetMaxAltitude() {
    return SilverLiningWindVolumeJNI.WindVolume_GetMaxAltitude(swigCPtr, this);
  }

  public void SetWindSpeed(double metersPerSecond) {
    SilverLiningWindVolumeJNI.WindVolume_SetWindSpeed(swigCPtr, this, metersPerSecond);
  }

  public double GetWindSpeed() {
    return SilverLiningWindVolumeJNI.WindVolume_GetWindSpeed(swigCPtr, this);
  }

  public void SetDirection(double degreesFromNorth) {
    SilverLiningWindVolumeJNI.WindVolume_SetDirection(swigCPtr, this, degreesFromNorth);
  }

  public double GetDirection() {
    return SilverLiningWindVolumeJNI.WindVolume_GetDirection(swigCPtr, this);
  }

  public boolean Inside(double metersMSL) {
    return SilverLiningWindVolumeJNI.WindVolume_Inside(swigCPtr, this, metersMSL);
  }

}
