Class RunwayVisualRange

java.lang.Object
org.deltava.beans.wx.RunwayVisualRange
All Implemented Interfaces:
Comparable<RunwayVisualRange>

public class RunwayVisualRange extends Object implements Comparable<RunwayVisualRange>
A bean to store Runway visual range METAR components.
Since:
2.6
Version:
7.0
Author:
Luke
  • Constructor Details

    • RunwayVisualRange

      public RunwayVisualRange(String rwyCode)
      Initializes the bean.
      Parameters:
      rwyCode - the runway code
      Throws:
      NullPointerException - if rwyCode is null
  • Method Details

    • getMaxVisibility

      public int getMaxVisibility()
      Retrieves the maximum visibility for this runway.
      Returns:
      the visibility in feet
    • getMinVisibility

      public int getMinVisibility()
      Retrieves the minimum visibility for this runway.
      Returns:
      the visibility in feet
    • getRunwayCode

      public String getRunwayCode()
      Returns the runway code.
      Returns:
      the runway code
    • setMaxVisibility

      public void setMaxVisibility(int viz)
      Updates the maximum visibility for this runway.
      Parameters:
      viz - the visibility in feet
    • setMinVisibility

      public void setMinVisibility(int viz)
      Updates the minimum visibility for this runway.
      Parameters:
      viz - the visibility in feet
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(RunwayVisualRange rvr2)
      Compares two RVRs by comparing their runway codes.
      Specified by:
      compareTo in interface Comparable<RunwayVisualRange>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object