|
|||||||||
| 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.assign.AssignmentInfo
public class AssignmentInfo
A class to store Flight Assignments.
| Field Summary | |
|---|---|
static int |
AVAILABLE
|
static int |
COMPLETE
|
static int |
RESERVED
|
static String[] |
STATUS
Assignment status names. |
| Constructor Summary | |
|---|---|
AssignmentInfo(String eqType)
Creates a new Flight Assignment for a particular Equipment Type. |
|
| Method Summary | |
|---|---|
void |
addAssignment(AssignmentLeg a)
Adds an Assigned Flight to this Assignment. |
void |
addFlight(FlightReport fr)
Adds a Flight Report to this Assignment. |
Date |
getAssignDate()
Returns the date/time this Assignment was assigned to the Pilot. |
Collection<AssignmentLeg> |
getAssignments()
Returns the individual Legs for this Assignment. |
Date |
getCompletionDate()
Returns the date/time this Assignment was completed by the Pilot. |
String |
getEquipmentType()
Returns the equipment type for this assignment. |
int |
getEventID()
Returns the ID of the associated Online Event. |
Collection<FlightReport> |
getFlights()
Returns the Flight Reports linked to this Assignment. |
int |
getPilotID()
Returns the Pilot Database ID for this Flight Assignment. |
String |
getRowClassName()
Returns the CSS class name for this assignment when displayed in a view. |
int |
getStatus()
Returns the status of this Assignment. |
boolean |
isComplete()
Determines if all flights in this assignment are complete. |
boolean |
isPurgeable()
Returns if this Assignment should be automatically purged on a Schedule reload. |
boolean |
isRandom()
Returns if this Assignment was randomly generated. |
boolean |
isRepeating()
Returns if this Assignment should be made available again when complete. |
void |
setAssignDate(Date dt)
Updates the Date this Assignment was assigned to a Pilot. |
void |
setCompletionDate(Date dt)
Updates the Date this Assignment was completed. |
void |
setEventID(int id)
Sets the associated Online Event for this Assignment. |
void |
setPilotID(int id)
Updates the associated Pilot for this Assignment. |
void |
setPilotID(Person p)
Updates the associated Pilot for this Assignment. |
void |
setPurgeable(boolean canPurge)
Marks this Assignment as purgeable when the Schedule database is updated. |
void |
setRandom(boolean random)
Marks this Assignment as randomly generated. |
void |
setRepeating(boolean repeating)
Marks this Assignment as repeating (automatically regenerated when completed). |
void |
setStatus(int status)
Updates the status of this Flight Assignment. |
void |
setStatus(String status)
Updates the status of this Flight Assignment. |
| Methods inherited from class org.deltava.beans.DatabaseBean |
|---|
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int AVAILABLE
public static final int RESERVED
public static final int COMPLETE
public static final String[] STATUS
| Constructor Detail |
|---|
public AssignmentInfo(String eqType)
eqType - the equipment type code
NullPointerException - if eqType is null| Method Detail |
|---|
public Collection<AssignmentLeg> getAssignments()
addAssignment(AssignmentLeg)public Collection<FlightReport> getFlights()
addFlight(FlightReport)public String getEquipmentType()
public int getEventID()
setEventID(int)public int getPilotID()
setPilotID(int),
setPilotID(Person)public int getStatus()
setStatus(int),
setStatus(String)public Date getAssignDate()
setAssignDate(Date)public Date getCompletionDate()
setCompletionDate(Date)public boolean isComplete()
public boolean isRandom()
setRandom(boolean)public boolean isRepeating()
setRepeating(boolean)public boolean isPurgeable()
setPurgeable(boolean)public void addAssignment(AssignmentLeg a)
a - the assigned flightpublic void addFlight(FlightReport fr)
fr - the flight reportpublic void setEventID(int id)
id - the Event Database ID
IllegalArgumentException - if id is negativepublic void setPilotID(Person p)
p - the Pilot beansetPilotID(int),
getPilotID()public void setPilotID(int id)
id - the Pilot Database ID
IllegalArgumentException - if id is negativesetPilotID(Person),
getPilotID()public void setStatus(int status)
status - the status code
IllegalArgumentException - if an invalid or negative status codesetStatus(String),
getStatus()public void setStatus(String status)
status - the status type name
IllegalArgumentException - if an invalid type namesetStatus(int),
getStatus()public void setRandom(boolean random)
random - TRUE if generated from Find a Flight, otherwise FALSEisRandom()public void setRepeating(boolean repeating)
repeating - TRUE if automatically repeating, otherwise FALSEisRepeating()public void setPurgeable(boolean canPurge)
canPurge - TRUE if the Assignment should be purged on a Schedule update.isPurgeable()public void setAssignDate(Date dt)
dt - the date/time this Assignment was assignedgetAssignDate()public void setCompletionDate(Date dt)
dt - the date/time this Assignment was completedgetCompletionDate()public String getRowClassName()
getRowClassName in interface ViewEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||