|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.stats.AirlineTotals
public class AirlineTotals
A bean to store Airline-wide statistics.
| Field Summary | |
|---|---|
static Calendar |
BIRTHDATE
Date the airline statistics commenced. |
| Constructor Summary | |
|---|---|
AirlineTotals(long ed)
Initializes the bean with an effective date. |
|
| Method Summary | |
|---|---|
Object |
cacheKey()
Returns the cache key for this object. |
int |
compareTo(AirlineTotals at2)
Compares the effective date/times. |
double |
getACARSHours()
Returns the total number of hours flown with ACARS. |
int |
getACARSLegs()
Returns the number of legs flown with ACARS. |
int |
getACARSMiles()
Returns the total number of miles flown with ACARS. |
int |
getActivePilots()
Returns the number of active pilots. |
int |
getAge()
Helper method to calculate the age of the airline. |
long |
getDBRows()
Returns the total number of rows in all database tables. |
long |
getDBSize()
Returns the total size of all database tables. |
long |
getEffectiveDate()
Returns the effective date of these statistics. |
double |
getMTDHours()
Returns the number of hours flown since the start of the current Month. |
int |
getMTDLegs()
Returns the number of legs flown since the start of the current Month. |
int |
getMTDMiles()
Returns the number of miles flown since the start of the current Month. |
double |
getOnlineHours()
Returns the total number of hours flown online. |
int |
getOnlineLegs()
Returns the number of legs flown online. |
long |
getOnlineMiles()
Returns the total number of miles flown online. |
double |
getTotalHours()
Returns the total number of hours flown. |
int |
getTotalLegs()
Returns the total number of legs flown. |
long |
getTotalMiles()
Returns the total number of miles flown. |
int |
getTotalPilots()
Returns the total number of pilots. |
double |
getYTDHours()
Returns the number of hours flown since the start of the current Year. |
int |
getYTDLegs()
Returns the number of legs flown since the start of the current Year. |
int |
getYTDMiles()
Returns the number of miles flown since the start of the current Year. |
void |
setACARSHours(double hours)
Updates the total number of hours flown with ACARS. |
void |
setACARSLegs(int legs)
Updates the total number of legs flown with ACARS. |
void |
setACARSMiles(int miles)
Updates the total number of miles flown with ACARS. |
void |
setActivePilots(int pilots)
Updates the total number of active pilots. |
void |
setDBRows(long rows)
Updates the total number of rows in all database tables. |
void |
setDBSize(long size)
Updates the total size of all database tables. |
void |
setMTDHours(double hours)
Updates the total number of hours flown since the start of the current Month. |
void |
setMTDLegs(int legs)
Updates the total number of legs flown since the start of the current Month. |
void |
setMTDMiles(int miles)
Updates the total number of miles flown since the start of the current Month. |
void |
setOnlineHours(double hours)
Updates the total number of hours flown online. |
void |
setOnlineLegs(int legs)
Updates the total number of legs flown online. |
void |
setOnlineMiles(long miles)
Updates the total number of miles flown online. |
void |
setTotalHours(double hours)
Updates the total number of hours flown. |
void |
setTotalLegs(int legs)
Updates the total number of legs flown. |
void |
setTotalMiles(long miles)
Updates the total number of miles flown. |
void |
setTotalPilots(int pilots)
Updates the total number of pilots. |
void |
setYTDHours(double hours)
Updates the total number of hours flown since the start of the current Year. |
void |
setYTDLegs(int legs)
Updates the total number of legs flown since the start of the current Yes. |
void |
setYTDMiles(int miles)
Updates the total number of miles flown since the start of the current Year. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Calendar BIRTHDATE
| Constructor Detail |
|---|
public AirlineTotals(long ed)
ed - the effective date/time of the statistics as a 32-bit UNIX timestampgetEffectiveDate()| Method Detail |
|---|
public int getAge()
public long getEffectiveDate()
public int getTotalLegs()
setTotalLegs(int)public long getTotalMiles()
setTotalMiles(long)public double getTotalHours()
setTotalHours(double)public int getTotalPilots()
setTotalPilots(int)public int getActivePilots()
setActivePilots(int)public int getOnlineLegs()
setOnlineLegs(int)public double getOnlineHours()
setOnlineHours(double)public long getOnlineMiles()
setOnlineMiles(long)public int getACARSLegs()
setACARSLegs(int)public double getACARSHours()
setACARSHours(double)public int getACARSMiles()
setACARSMiles(int)public int getMTDLegs()
setMTDLegs(int)public double getMTDHours()
setMTDHours(double)public int getMTDMiles()
setMTDMiles(int)public int getYTDLegs()
setYTDLegs(int)public double getYTDHours()
setYTDHours(double)public int getYTDMiles()
setYTDMiles(int)public long getDBSize()
setDBSize(long)public long getDBRows()
setDBRows(long)public void setTotalLegs(int legs)
legs - the number of legsgetTotalLegs()public void setTotalMiles(long miles)
miles - the number of milesgetTotalMiles()public void setTotalHours(double hours)
hours - the number of hoursgetTotalHours()public void setTotalPilots(int pilots)
pilots - the number of pilotsgetTotalPilots()public void setActivePilots(int pilots)
pilots - the number of actve pilotsgetActivePilots()public void setACARSLegs(int legs)
legs - the number of legsgetACARSLegs()public void setACARSMiles(int miles)
miles - the number of milesgetACARSMiles()public void setACARSHours(double hours)
hours - the number of hoursgetACARSHours()public void setOnlineLegs(int legs)
legs - the number of legsgetOnlineLegs()public void setOnlineMiles(long miles)
miles - the number of milesgetOnlineMiles()public void setOnlineHours(double hours)
hours - the number of hoursgetOnlineHours()public void setMTDLegs(int legs)
legs - the number of legsgetMTDLegs()public void setMTDHours(double hours)
hours - the number of hoursgetMTDHours()public void setMTDMiles(int miles)
miles - the number of milesgetMTDMiles()public void setYTDLegs(int legs)
legs - the number of legsgetYTDLegs()public void setYTDHours(double hours)
hours - the number of hoursgetYTDHours()public void setYTDMiles(int miles)
miles - the number of milesgetYTDMiles()public void setDBSize(long size)
size - the size of the tables in bytesgetDBSize()public void setDBRows(long rows)
rows - the number of rows in all tablesgetDBRows()public int compareTo(AirlineTotals at2)
compareTo in interface Comparable<AirlineTotals>public Object cacheKey()
cacheKey in interface Cacheable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||