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 TypeMethodDescriptionint
Comapres two sessions by comparing their start times.int
Returns 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.void
setAuthorID
(int id) Updates the Dispatcher ID.void
setComments
(String body) Updates the dispatcher comments.void
setEndTime
(Instant dt) Updates the service end time.void
setStartTime
(Instant dt) Updates the service start time.toString()
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- Returns:
- the author's database ID
- See Also:
-
getComments
-
getDate
Description copied from interface:CalendarEntry
Returns this entry's date for ordering in the Calendar.- Specified by:
getDate
in interfaceCalendarEntry
- Returns:
- the date/time
-
getStartTime
Description copied from interface:TimeSpan
The start date/time of this span.- Specified by:
getStartTime
in interfaceTimeSpan
- Returns:
- the start date/time
-
getEndTime
Description copied from interface:TimeSpan
The end date/time of this span.- Specified by:
getEndTime
in interfaceTimeSpan
- Returns:
- the end date/time
-
setAuthorID
public void setAuthorID(int id) Updates the Dispatcher ID.- Specified by:
setAuthorID
in 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:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
- See Also:
-
toString
-