Class DispatchStatistics

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.DispatchStatistics
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class DispatchStatistics extends DatabaseBean
A bean to track Dispatcher statistics.
Since:
3.6
Version:
3.6
Author:
Luke
See Also:
  • 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