org.deltava.beans.stats
Class LandingStatistics

java.lang.Object
  extended by org.deltava.beans.DatabaseBean
      extended by org.deltava.beans.stats.LandingStatistics
All Implemented Interfaces:
Serializable, Comparable<Object>, Cacheable

public class LandingStatistics
extends DatabaseBean

A bean used to track average landing speeds.

Since:
2.1
Version:
2.6
Author:
Luke
See Also:
Serialized Form

Constructor Summary
LandingStatistics(String name, String eqType)
          Initializes the bean.
 
Method Summary
 int compareTo(Object o)
          Compares two beans by comparing their average touchdown speeds.
 double getAverageDistance()
          Returns the average runway threshold displacement.
 double getAverageSpeed()
          Returns the average touchdown speed.
 double getDistanceStdDeviation()
          Returns the standard deviation of runway threshold displacements.
 String getEquipmentType()
          Returns the equipment type.
 double getHours()
          Returns the number of hours logged.
 int getLegs()
          Returns the number of legs flown.
 String getPilotName()
          Returns the pilot name.
 double getStdDeviation()
          Returns the standard deviation of touchdown speeds.
 int hashCode()
          Returns the hash code of the database ID.
 void setAverageDistance(double distance)
          Updates the average threshold displacement.
 void setAverageSpeed(double spd)
          Updates the average touchdown speed.
 void setDistanceStdDeviation(double sd)
          Updates the standard deviation of threshold displacements.
 void setHours(double hours)
          Updates the number of hours logged.
 void setLegs(int legs)
          Updates the number of legs flown.
 void setStdDeviation(double sd)
          Updates the standard deviation of touchdown speeds.
 String toString()
          Returns the pilot and equipment type.
 
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, setID, validateID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LandingStatistics

public LandingStatistics(String name,
                         String eqType)
Initializes the bean. When displaying statistics across multiple pilots or equipment types, either parameter (but not both) can be null

Parameters:
name - the pilot name
eqType - the equipment type
Method Detail

getPilotName

public String getPilotName()
Returns the pilot name.

Returns:
the pilot name, or null

getEquipmentType

public String getEquipmentType()
Returns the equipment type.

Returns:
the equipment type, or null

getLegs

public int getLegs()
Returns the number of legs flown.

Returns:
the number of legs

getHours

public double getHours()
Returns the number of hours logged.

Returns:
the number of hours

getAverageSpeed

public double getAverageSpeed()
Returns the average touchdown speed.

Returns:
the average speed in feet per minute

getStdDeviation

public double getStdDeviation()
Returns the standard deviation of touchdown speeds.

Returns:
the standard deviation in feet per minute

getAverageDistance

public double getAverageDistance()
Returns the average runway threshold displacement.

Returns:
the average displacement in feet

getDistanceStdDeviation

public double getDistanceStdDeviation()
Returns the standard deviation of runway threshold displacements.

Returns:
the standard deviation in feet

setLegs

public void setLegs(int legs)
Updates the number of legs flown.

Parameters:
legs - the number of legs

setHours

public void setHours(double hours)
Updates the number of hours logged.

Parameters:
hours - the number of hours

setAverageSpeed

public void setAverageSpeed(double spd)
Updates the average touchdown speed.

Parameters:
spd - the average speed in feet per minute

setStdDeviation

public void setStdDeviation(double sd)
Updates the standard deviation of touchdown speeds.

Parameters:
sd - the standard deviation in feet per minute

setAverageDistance

public void setAverageDistance(double distance)
Updates the average threshold displacement.

Parameters:
distance - the distance in feet

setDistanceStdDeviation

public void setDistanceStdDeviation(double sd)
Updates the standard deviation of threshold displacements.

Parameters:
sd - the standard deviation in feet

compareTo

public int compareTo(Object o)
Compares two beans by comparing their average touchdown speeds.

Specified by:
compareTo in interface Comparable<Object>
Overrides:
compareTo in class DatabaseBean
See Also:
Comparable.compareTo(Object)

toString

public String toString()
Returns the pilot and equipment type.

Overrides:
toString in class Object

hashCode

public int hashCode()
Description copied from class: DatabaseBean
Returns the hash code of the database ID.

Overrides:
hashCode in class DatabaseBean


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.