Class TaxiTime

java.lang.Object
org.deltava.beans.acars.TaxiTime
All Implemented Interfaces:
Serializable, Comparable<TaxiTime>, Cacheable

public class TaxiTime extends Object implements Cacheable, Comparable<TaxiTime>
A bean to store average taxi times for an Airport.
Since:
10.0
Version:
11.2
Author:
Luke
See Also:
  • Constructor Details

    • TaxiTime

      public TaxiTime(String icao, int year)
      Creates the bean.
      Parameters:
      icao - the Airport's ICAO code
      year - the year or zero for all
  • Method Details

    • getICAO

      public String getICAO()
      Returns the Airport's ICAO code.
      Returns:
      the ICAO code
    • getYear

      public int getYear()
      Returns the year.
      Returns:
      the year, or zero for an aggergated average
    • getInboundCount

      public int getInboundCount()
      Returns the number of inbound flights used to calculate the data.
      Returns:
      the number of flights
    • getInboundTime

      public Duration getInboundTime()
      Returns the average inbound taxi time.
      Returns:
      the Duration
    • getInboundStdDev

      public Duration getInboundStdDev()
      Returns the standard deviation of inbound taxi times.
      Returns:
      the deviation as a Duration
    • getOutboundCount

      public int getOutboundCount()
      Returns the number of outbound flights used to calculate the data.
      Returns:
      the number of flights
    • getOutboundTime

      public Duration getOutboundTime()
      Returns the average outbound tax time.
      Returns:
      the Duration
    • getOutboundStdDev

      public Duration getOutboundStdDev()
      Returns the standard deviation of outbound taxi times.
      Returns:
      the deviation as a Duration
    • isEmpty

      public boolean isEmpty()
      Returns if the inbound and outbound taxi times are both zero.
      Returns:
      TRUE if both are zero, otherwise FALSE
    • setInboundTime

      public void setInboundTime(Duration d)
      Updates the average inbound taxi time.
      Parameters:
      d - the Duration
      Throws:
      IllegalArgumentException - if d is negative
    • setInboundStdDev

      public void setInboundStdDev(Duration d)
      Updates the inbound taxi time standard deviation.
      Parameters:
      d - the deviation as a Duration
    • setInboundCount

      public void setInboundCount(int cnt)
      Updates the number of inbound fligts used to calculate the data.
      Parameters:
      cnt - the number of flights
    • setOutboundTime

      public void setOutboundTime(Duration d)
      Updates the average outbound taxi time.
      Parameters:
      d - the Duration
      Throws:
      IllegalArgumentException - if d is negative
    • setOutboundStdDev

      public void setOutboundStdDev(Duration d)
      Updates the outbound taxi time standard deviation.
      Parameters:
      d - the deviation as a Duration
    • setOutboundCount

      public void setOutboundCount(int cnt)
      Updates the number of outbound fligts used to calculate the data.
      Parameters:
      cnt - the number of flights
    • toString

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

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(TaxiTime tt)
      Specified by:
      compareTo in interface Comparable<TaxiTime>