Class UsagePercentFilter

java.lang.Object
org.deltava.beans.navdata.UsagePercentFilter
All Implemented Interfaces:
UsageFilter<RunwayUse>
Direct Known Subclasses:
UsageWindFilter

public class UsagePercentFilter extends Object implements UsageFilter<RunwayUse>
A UsageFilter to filter runways based on popularity.
Since:
10.2
Version:
11.1
Author:
Luke
  • Field Details

  • Constructor Details

    • UsagePercentFilter

      public UsagePercentFilter(int minPct)
      Creates the filter.
      Parameters:
      minPct - the minimum percentage of the maximum for inclusion
  • Method Details

    • filter

      public boolean filter(RunwayUse ru, int max, int total)
      Description copied from interface: UsageFilter
      Filters an individual bean.
      Specified by:
      filter in interface UsageFilter<RunwayUse>
      Parameters:
      ru - the UseCount bean
      max - the maximum usage per bean within this Collection
      total - the total bean usage within this Collection
      Returns:
      TRUE if the bean should be included, otherwise FALSE