Class RunwayVisualRange
java.lang.Object
org.deltava.beans.wx.RunwayVisualRange
- All Implemented Interfaces:
Comparable<RunwayVisualRange>
A bean to store Runway visual range METAR components.
- Since:
- 2.6
- Version:
- 7.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(RunwayVisualRange rvr2) Compares two RVRs by comparing their runway codes.intRetrieves the maximum visibility for this runway.intRetrieves the minimum visibility for this runway.Returns the runway code.inthashCode()voidsetMaxVisibility(int viz) Updates the maximum visibility for this runway.voidsetMinVisibility(int viz) Updates the minimum visibility for this runway.toString()
-
Constructor Details
-
RunwayVisualRange
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
-
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
-
compareTo
Compares two RVRs by comparing their runway codes.- Specified by:
compareToin interfaceComparable<RunwayVisualRange>
-
hashCode
-