|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.DatabaseBean
org.deltava.beans.Flight
org.deltava.beans.schedule.ScheduleEntry
public class ScheduleEntry
A class to store Schedule Entry information.
| Constructor Summary | |
|---|---|
ScheduleEntry(Airline a,
int fNumber,
int leg)
Creates a new Schedule Entry object with a given flight. |
|
| Method Summary | |
|---|---|
boolean |
getAcademy()
Returns if this flight is part of the Flight Academy. |
boolean |
getCanPurge()
Returns if this flight can be purged from the schedule database before an automated import. |
DateTime |
getDateTimeA()
Returns the arrival time of the flight, with full timezone information. |
DateTime |
getDateTimeD()
Returns the departure time of the flight, with full timezone information. |
boolean |
getHistoric()
Returns the "historic flight" flag value for this flight. |
int |
getID()
Returns the database ID of the schedule entry. |
int |
getLength()
Returns the length of the flight, in hours multiplied by 10. |
String |
getRowClassName()
Returns the row CSS class name if displayed in a view table. |
Date |
getTimeA()
Returns the arrival time for this flght. |
Date |
getTimeD()
Returns the departure time for this flght. |
int |
hashCode()
Returns the hash code of the flight code. |
void |
setAcademy(boolean academy)
Updates this Schedule entry's "Flight Academy flight" flag. |
void |
setCanPurge(boolean purge)
Updates this Schedule entry's "no purge" flag. |
void |
setHistoric(boolean historic)
Updates this Schedule entry's "historic flight" flag. |
void |
setID(int id)
Sets the database ID of this schedule entry. |
void |
setLength(int len)
Sets the length of a flight leg. |
void |
setTimeA(Date dt)
Sets the arrival time for this flight. |
void |
setTimeD(Date dt)
Sets the departure time for this flight. |
| Methods inherited from class org.deltava.beans.Flight |
|---|
compareTo, crosses, equals, getAirline, getAirportA, getAirportD, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, setLeg, toString |
| Methods inherited from class org.deltava.beans.DatabaseBean |
|---|
cacheKey, getHexID, validateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduleEntry(Airline a,
int fNumber,
int leg)
a - the AirlinefNumber - the Flight Numberleg - the Leg Number
NullPointerException - if the Airline Code is null
IllegalArgumentException - if the Flight Report is zero or negative
IllegalArgumentException - if the Leg is less than 1 or greater than 5Flight.setAirline(Airline),
Flight.setFlightNumber(int),
Flight.setLeg(int)| Method Detail |
|---|
public final int getLength()
getLength in class FlightIllegalStateException - if departure or arrival times are not setDateTime.difference(DateTime)public DateTime getDateTimeD()
getDateTimeA()public DateTime getDateTimeA()
getDateTimeD()public Date getTimeD()
setTimeD(Date),
getTimeA(),
getDateTimeD()public Date getTimeA()
setTimeA(Date),
getTimeD(),
getDateTimeA()public final int getID()
getID in class DatabaseBeanUnsupportedOperationException - alwayspublic boolean getHistoric()
setHistoric(boolean)public boolean getCanPurge()
setCanPurge(boolean)public boolean getAcademy()
setAcademy(boolean)public final void setID(int id)
setID in class DatabaseBeanid - The primary key of the entry in the database that corresponds to this object.
UnsupportedOperationException - alwaysDatabaseBean.validateID(int, int)public void setTimeD(Date dt)
dt - the departure time of the flight in local time . The date and time zone are ignored.
NullPointerException - if the departure airport is not setsetTimeA(Date),
getTimeD(),
getDateTimeD()public void setTimeA(Date dt)
dt - the arrival time of the flight in local time . The date and time zone are ignored.
NullPointerException - if the arrival airport is not setsetTimeD(Date),
getTimeA(),
getDateTimeA()public void setLength(int len)
len - the length of a leg, in hours mulitiplied by ten.
IllegalArgumentException - if len is negativegetLength()public void setHistoric(boolean historic)
historic - the new "historic flight" flag valuegetHistoric(),
getCanPurge()public void setCanPurge(boolean purge)
purge - the new "no purge" flag valuegetCanPurge(),
getHistoric()public void setAcademy(boolean academy)
academy - TRUE if the Flight is part of the Academy, otherwise FALSEgetAcademy()public String getRowClassName()
getRowClassName in interface ViewEntrypublic int hashCode()
hashCode in class DatabaseBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||