Package org.deltava.beans.acars
Class TaxiTime
java.lang.Object
org.deltava.beans.acars.TaxiTime
- All Implemented Interfaces:
Serializable
,Comparable<TaxiTime>
,Cacheable
A bean to store average taxi times for an Airport.
- Since:
- 10.0
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncacheKey()
Returns the cache key for this object.int
getICAO()
Returns the Airport's ICAO code.int
Returns the number of inbound flights used to calculate the data.Returns the standard deviation of inbound taxi times.Returns the average inbound taxi time.int
Returns the number of outbound flights used to calculate the data.Returns the standard deviation of outbound taxi times.Returns the average outbound tax time.int
getYear()
Returns the year.int
hashCode()
boolean
isEmpty()
Returns if the inbound and outbound taxi times are both zero.void
setInboundCount
(int cnt) Updates the number of inbound fligts used to calculate the data.void
Updates the inbound taxi time standard deviation.void
Updates the average inbound taxi time.void
setOutboundCount
(int cnt) Updates the number of outbound fligts used to calculate the data.void
Updates the outbound taxi time standard deviation.void
Updates the average outbound taxi time.toString()
-
Constructor Details
-
TaxiTime
Creates the bean.- Parameters:
icao
- the Airport's ICAO codeyear
- the year or zero for all
-
-
Method Details
-
getICAO
-
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
-
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
-
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
Updates the average inbound taxi time.- Parameters:
d
- the Duration- Throws:
IllegalArgumentException
- if d is negative
-
setInboundStdDev
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
Updates the average outbound taxi time.- Parameters:
d
- the Duration- Throws:
IllegalArgumentException
- if d is negative
-
setOutboundStdDev
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
-
cacheKey
-
hashCode
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TaxiTime>
-