Class UsageWindFilter
java.lang.Object
org.deltava.beans.navdata.UsagePercentFilter
org.deltava.beans.navdata.UsageWindFilter
- All Implemented Interfaces:
UsageFilter<RunwayUse>
A UsageFilter to filter runways based on maximum tailwind component and popularity.
- Since:
- 10.2
- Version:
- 11.1
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.beans.navdata.UsagePercentFilter
ALL
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.deltava.beans.navdata.UsagePercentFilter
filter
-
Constructor Details
-
UsageWindFilter
public UsageWindFilter(int minPct, int maxTailwind) Creates the filter.- Parameters:
minPct
-maxTailwind
-
-
-
Method Details
-
setWinds
public void setWinds(int hdg, int spd) Updates the Airport wind data.- Parameters:
hdg
- the wind heading in degreesspd
- the wind speed in knots
-
setWinds
Updates the Airport wind data from a METAR.- Parameters:
m
- the METAR bean
-
filter
Description copied from interface:UsageFilter
Filters a Collection of UseCount beans.- Parameters:
data
- the beans to filter- Returns:
- a filtered List of beans that met the criteria
-