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 TypeMethodDescriptionint
compareTo
(LoadStatistics ls2) getLabel()
Returns the view label.double
Returns the average load factor.int
getPax()
Returns the total number of passengers carried.int
hashCode()
void
setLoad
(double lf) Updates the average load factor.void
setPax
(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:
compareTo
in interfaceComparable<LoadStatistics>
-