Class TouchdownData
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.TouchdownData
- All Implemented Interfaces:
Serializable, Comparable<Object>, RunwayLengthUsage, IDBean, Cacheable
A bean to store data about an individual landing.
- Since:
- 11.5
- Version:
- 11.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the runway usage from the threshold.intReturns the runway length.intReturns the vertical speed at touchdown.voidsetDistance(int d) Updates the touchdown distance from the threshold.voidsetLength(int l) Updates the runway length.voidsetVSpeed(int vs) Updates the vertical speed at landing.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RunwayLengthUsage
getPercentageModifier and TypeMethodDescriptiondefault doubleReturns the percentage of the runway used.
-
Constructor Details
-
TouchdownData
public TouchdownData(int id) Creates the bean.- Parameters:
id- the Flight Report database ID
-
-
Method Details
-
getVSpeed
public int getVSpeed()Returns the vertical speed at touchdown.- Returns:
- the vertical speed in feet per minute
-
getLength
public int getLength()Description copied from interface:RunwayLengthUsageReturns the runway length.- Specified by:
getLengthin interfaceRunwayLengthUsage- Returns:
- the length in feet
-
getDistance
public int getDistance()Description copied from interface:RunwayLengthUsageReturns the runway usage from the threshold.- Specified by:
getDistancein interfaceRunwayLengthUsage- Returns:
- the distance in feet.
-
setLength
public void setLength(int l) Updates the runway length.- Parameters:
l- the length in feet
-
setDistance
public void setDistance(int d) Updates the touchdown distance from the threshold.- Parameters:
d- the distance in feet
-
setVSpeed
public void setVSpeed(int vs) Updates the vertical speed at landing.- Parameters:
vs- the vertical speed in feet per minute
-