Class DispatchConnectionEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSLogEntry
org.deltava.beans.acars.ConnectionEntry
org.deltava.beans.acars.DispatchConnectionEntry
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,ClientVersion
,AuthoredBean
,CalendarEntry
,IDBean
,RemoteAddressBean
,TimeSpan
,Cacheable
An ACARS Connection log entry for Dispatchers.
- Since:
- 2.4
- Version:
- 6.4
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFlights
(Collection<FlightInfo> info) Adds dispatched Flights to this Connection entry.final boolean
Returns if this is a Dispatch connection.Returns Flights dispatched during this connection.boolean
Returns whether this connection dispatched any flights.toString()
Methods inherited from class org.deltava.beans.acars.ConnectionEntry
compareTo, getAuthorID, getCompressed, getConnectionID, getDate, getEndTime, getFlightInfo, getFlightPhase, getMessageCount, getPilotID, getStartTime, getTCPStatistics, getTime, getUDPStatistics, getUser, getUserData, getUserHidden, getVoice, setAuthorID, setCompressed, setConnectionID, setEndTime, setFlightInfo, setFlightPhase, setMessageCount, setStartTime, setStatistics, setUser, setUserData, setUserHidden, setVoice
Methods inherited from class org.deltava.beans.acars.ACARSLogEntry
getAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersion
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.acars.ClientVersion
isBeta
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
Methods inherited from interface org.deltava.beans.TimeSpan
getDuration, hasTimes
-
Constructor Details
-
DispatchConnectionEntry
public DispatchConnectionEntry(long id) Creates a new Dispatch Connection entry.- Parameters:
id
- the Connection ID
-
-
Method Details
-
getDispatch
public final boolean getDispatch()Returns if this is a Dispatch connection.- Overrides:
getDispatch
in classConnectionEntry
- Returns:
- TRUE
-
getHasFlights
public boolean getHasFlights()Returns whether this connection dispatched any flights.- Returns:
- TRUE if flights dispatched, otherwise FALSE
-
getFlights
Returns Flights dispatched during this connection.- Returns:
- a Collection of FlightInfo beans
-
addFlights
Adds dispatched Flights to this Connection entry.- Parameters:
info
- a Collection of FlightInfo beans
-
toString
-