Class ScheduleSourceHistory

java.lang.Object
org.deltava.beans.schedule.ScheduleSourceInfo
org.deltava.beans.schedule.ScheduleSourceHistory
All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, CalendarEntry, ComboAlias, ViewEntry, Cacheable

public class ScheduleSourceHistory extends ScheduleSourceInfo implements AuthoredBean, ViewEntry
A bean to store Flight Schedule filter history.
Since:
10.1
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • ScheduleSourceHistory

      public ScheduleSourceHistory(ScheduleSource src)
      Creates the bean.
      Parameters:
      src - the ScheduleSource
    • ScheduleSourceHistory

      public ScheduleSourceHistory(ScheduleSourceInfo inf)
      Creates the bean from a ScheduleSourceInfo bean.
      Parameters:
      inf - the ScheduleSourceInfo
  • Method Details

    • getAuthorID

      public int getAuthorID()
      Description copied from interface: AuthoredBean
      Returns the Author of this bean.
      Specified by:
      getAuthorID in interface AuthoredBean
      Returns:
      the author's database ID
      See Also:
    • getEndDate

      public Instant getEndDate()
      Returns the end time of the schedule filter operation.
      Returns:
      the end date/time
    • getLegs

      public int getLegs()
      Description copied from class: ScheduleSourceInfo
      Returns the total number of flight legs from this source.
      Overrides:
      getLegs in class ScheduleSourceInfo
      Returns:
      the number of legs
    • getTime

      public int getTime()
      Returns the execution time of the schedule filter operation.
      Returns:
      the execution time in milliseconds
    • setAuthorID

      public void setAuthorID(int id)
      Description copied from interface: AuthoredBean
      Updates the author of this bean.
      Specified by:
      setAuthorID in interface AuthoredBean
      Parameters:
      id - the author's database ID.
      See Also:
    • setAdjusted

      public void setAdjusted(int cnt)
      Updates the total number of flight legs with arrival times adjusted for DST.
      Parameters:
      cnt - the number of legs
    • setLegs

      public void setLegs(int cnt)
      Updates the total number of flight legs.
      Parameters:
      cnt - the number of legs
    • setSkipped

      public void setSkipped(int cnt)
      Updates the total number of flight legs skipped for this source.
      Parameters:
      cnt - the number of legs
    • setTime

      public void setTime(int ms)
      Updates the execution time of the schedule filter operation.
      Parameters:
      ms - the execution time in milliseconds
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none