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 TypeMethodDescriptionvoidaddFlights(Collection<FlightInfo> info) Adds dispatched Flights to this Connection entry.final booleanReturns if this is a Dispatch connection.Returns Flights dispatched during this connection.booleanReturns whether this connection dispatched any flights.toString()Methods inherited from class 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, setVoiceMethods inherited from class ACARSLogEntry
getAddressInfo, getBeta, getClientBuild, getClientType, getRemoteAddr, getRemoteHost, getVersion, setAddressInfo, setBeta, setClientBuild, setRemoteAddr, setRemoteHost, setVersionMethods inherited from class DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from interface ClientVersion
isBetaMethods inherited from interface RemoteAddressBean
getIsResolvedMethods inherited from interface 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:
getDispatchin 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
-