Class LoadStatistics
java.lang.Object
org.deltava.beans.stats.LoadStatistics
- All Implemented Interfaces:
 Comparable<LoadStatistics>
A bean to track flight load statistics.
- Since:
 - 11.2
 - Version:
 - 11.2
 - Author:
 - Luke
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(LoadStatistics ls2) getLabel()Returns the view label.doubleReturns the average load factor.intgetPax()Returns the total number of passengers carried.inthashCode()voidsetLoad(double lf) Updates the average load factor.voidsetPax(int pax) Updates the total number of passengers carried. 
- 
Constructor Details
- 
LoadStatistics
 
 - 
 - 
Method Details
- 
getLabel
 - 
getLoadFactor
public double getLoadFactor()Returns the average load factor.- Returns:
 - the load factor from 0 to 1
 
 - 
getPax
public int getPax()Returns the total number of passengers carried.- Returns:
 - the number of passengers
 
 - 
setLoad
public void setLoad(double lf) Updates the average load factor.- Parameters:
 lf- the load factor
 - 
setPax
public void setPax(int pax) Updates the total number of passengers carried.- Parameters:
 pax- the number of passengers
 - 
hashCode
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<LoadStatistics>
 
 -