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 TypeMethodDescriptionint
compareTo
(RunwayVisualRange rvr2) Compares two RVRs by comparing their runway codes.int
Retrieves the maximum visibility for this runway.int
Retrieves the minimum visibility for this runway.Returns the runway code.int
hashCode()
void
setMaxVisibility
(int viz) Updates the maximum visibility for this runway.void
setMinVisibility
(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:
compareTo
in interfaceComparable<RunwayVisualRange>
-
hashCode
-