Class DispatchScheduleEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.DispatchScheduleEntry
- All Implemented Interfaces:
Serializable,Comparable<Object>,AuthoredBean,CalendarEntry,IDBean,TimeSpan,Cacheable
A bean to store Dispatcher schedule entries.
- Since:
- 2.2
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintComapres two sessions by comparing their start times.intReturns the Author of this bean.Returns any dispatcher comments.getDate()Returns this entry's date for ordering in the Calendar.The end date/time of this span.The start date/time of this span.voidsetAuthorID(int id) Updates the Dispatcher ID.voidsetComments(String body) Updates the dispatcher comments.voidsetEndTime(Instant dt) Updates the service end time.voidsetStartTime(Instant dt) Updates the service start time.toString()Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.TimeSpan
getDuration, hasTimes
-
Constructor Details
-
DispatchScheduleEntry
public DispatchScheduleEntry(int id) Creates a new service entry.- Parameters:
id- the dispatcher's database ID- Throws:
IllegalArgumentException- if id is zero or negative
-
-
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:
-
getComments
-
getDate
Description copied from interface:CalendarEntryReturns this entry's date for ordering in the Calendar.- Specified by:
getDatein interfaceCalendarEntry- Returns:
- the date/time
-
getStartTime
Description copied from interface:TimeSpanThe start date/time of this span.- Specified by:
getStartTimein interfaceTimeSpan- Returns:
- the start date/time
-
getEndTime
Description copied from interface:TimeSpanThe end date/time of this span.- Specified by:
getEndTimein interfaceTimeSpan- Returns:
- the end date/time
-
setAuthorID
public void setAuthorID(int id) Updates the Dispatcher ID.- Specified by:
setAuthorIDin interfaceAuthoredBean- Parameters:
id- the Dispatcher database ID- Throws:
IllegalArgumentException- if id is zero or negative- See Also:
-
setComments
Updates the dispatcher comments.- Parameters:
body- the comments- See Also:
-
setStartTime
Updates the service start time.- Parameters:
dt- the start date/time- Throws:
NullPointerException- if dt is null
-
setEndTime
Updates the service end time.- Parameters:
dt- the end date/time- Throws:
NullPointerException- if dt is nullIllegalArgumentException- if dt is before the start time- See Also:
-
compareTo
Comapres two sessions by comparing their start times.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean- See Also:
-
toString
-