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 TypeMethodDescriptiondouble
getHours()
Returns the time spent providing Dispatch services.int
getLegs()
Returns the number of flights dispatched.void
setHours
(double hrs) Updates the time spent providing Dispatch services.void
setLegs
(int legs) Updates the number of flights dispatched.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
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
-