Class DispatchStatistics
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.DispatchStatistics
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable
A bean to track Dispatcher statistics.
- Since:
- 3.6
- Version:
- 3.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetHours()Returns the time spent providing Dispatch services.intgetLegs()Returns the number of flights dispatched.voidsetHours(double hrs) Updates the time spent providing Dispatch services.voidsetLegs(int legs) Updates the number of flights dispatched.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.
-
Constructor Details
-
DispatchStatistics
public DispatchStatistics(int dispatcherID) Creates the bean.- Parameters:
dispatcherID- the Dispatcher dataabase ID
-
-
Method Details
-
getHours
public double getHours()Returns the time spent providing Dispatch services.- Returns:
- the time in hours
-
getLegs
public int getLegs()Returns the number of flights dispatched.- Returns:
- the number of flights
-
setHours
public void setHours(double hrs) Updates the time spent providing Dispatch services.- Parameters:
hrs- the time spent in hours
-
setLegs
public void setLegs(int legs) Updates the number of flights dispatched.- Parameters:
legs- the number of flights
-