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
A bean to store Flight Schedule filter history.
- Since:
- 10.1
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class ScheduleSourceInfo
_adjusted, _skipped -
Constructor Summary
ConstructorsConstructorDescriptionCreates the bean.Creates the bean from a ScheduleSourceInfo bean. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the Author of this bean.Returns the end time of the schedule filter operation.intgetLegs()Returns the total number of flight legs from this source.Returns the CSS class for this object if rendered in a view table.intgetTime()Returns the execution time of the schedule filter operation.voidsetAdjusted(int cnt) Updates the total number of flight legs with arrival times adjusted for DST.voidsetAuthorID(int id) Updates the author of this bean.voidsetLegs(int cnt) Updates the total number of flight legs.voidsetSkipped(int cnt) Updates the total number of flight legs skipped for this source.voidsetTime(int ms) Updates the execution time of the schedule filter operation.Methods inherited from class ScheduleSourceInfo
addLegs, adjust, cacheKey, compareTo, contains, getActive, getAdjusted, getAirlines, getAutoImport, getBaseDate, getComboAlias, getComboName, getDate, getEffectiveDate, getIsCurrent, getLegs, getMaxLineNumber, getNextImportDate, getOptions, getPurged, getSkipped, getSource, hashCode, setActive, setAirlines, setAutoImport, setEffectiveDate, setImportDate, setMaxLineNumber, setPurged, skip, toStringModifier and TypeMethodDescriptionvoidUpdates the number of flight legs for a particular Airline.voidadjust()Increments the number flight legs with adjusted arrival times for this source.cacheKey()Returns the cache key for this object.intbooleanReturns whether this schedule source includes a particular airline.booleanReturns if the schedule import is currently active.intReturns the number of flight legs with adjusted arrival times (for DST) in the last import.Returns the Airlines loaded from this schedule source.booleanReturns whether this schedule import was an automatic import.Returns the base schedule effective date, tied to the Monday of the week of the effective date, if not current.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.getDate()Returns this entry's date for ordering in the Calendar.Returns the effective date of the last schedule filter using this source.booleanReturns whether this is a current schedule import.intReturns the number of flight legs for a particular Airline from this source.intReturns the maximum imported line number for this source.Returns the date to be used if filtering flights from this source today.Converts the airline/leg information into a set of Combobox/Checkbox options.booleanReturns whether this source was purged during the current import.intReturns the number of skipped flight legs in the last import.Returns the schedule source.inthashCode()voidsetActive(boolean isActive) Sets if the schedule import is currently active.voidsetAirlines(Collection<Airline> airlines) Updates the Airlines for this source.voidsetAutoImport(boolean isAuto) Sets the last import as an automatic schedule import.voidUpdates the effective date of the last schedule filter using this source.voidsetImportDate(Instant dt) Updates the date of the last schedule filter using this source.voidsetMaxLineNumber(int ln) Updates the maximum imported line number for this source.voidsetPurged(boolean isPurged) Updates whether this source was purged during the current import.voidskip()Increments the number of skipped flight legs for this source.toString()
-
Constructor Details
-
ScheduleSourceHistory
Creates the bean.- Parameters:
src- the ScheduleSource
-
ScheduleSourceHistory
Creates the bean from a ScheduleSourceInfo bean.- Parameters:
inf- the ScheduleSourceInfo
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
getEndDate
Returns the end time of the schedule filter operation.- Returns:
- the end date/time
-
getLegs
public int getLegs()Description copied from class:ScheduleSourceInfoReturns the total number of flight legs from this source.- Overrides:
getLegsin classScheduleSourceInfo- 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:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin interfaceAuthoredBean- 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
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-