Class CheckRide
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.testing.Test
org.deltava.beans.testing.CheckRide
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,AuthoredBean
,IDBean
,ViewEntry
,Cacheable
A class to store Check Ride data.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the aircraft type used in this Check Ride.int
Returns the Flight Academy Course this CheckRide is associated with.Returns the equipment type for the check ride.Returns the expiration of this check ride.int
Returns the ACARS Flight ID for this checkride.int
getIndex()
Returns the Check Ride index for a Flight Academy course.Returns the CSS class name for a view table row.final int
getScore()
Returns the score for this Check Ride.int
getSize()
Returns the size of the Test.getType()
Returns the Check Ride type.void
setAcademy
(boolean academy) Marks this Test as part of the Flight Academy.void
setAircraftType
(String acType) Sets the aircraft type used for this Check Ride.void
setCourseID
(int id) Updates the Flight Academy Course ID for this Check Ride.void
setEquipmentType
(String eqType) Sets the equipment program for this Check Ride.void
Sets the equipment program and stage for this Check Ride.void
Sets the expiration date for this Check Ride.void
setFlightID
(int id) Sets the ACARS Flight ID for this Check Ride.void
setScore
(boolean passFail) Sets the score for the Check Ride.final void
setScore
(int score) Sets the score for the Check ride.void
setSize
(int size) Sets the size of the Test.void
Sets the Check Ride Type.Methods inherited from class org.deltava.beans.testing.Test
compareTo, getAcademy, getAuthorID, getComments, getDate, getFirstName, getLastName, getName, getOwner, getPassFail, getScoredOn, getScorerID, getStage, getStatus, getSubmittedOn, setAuthorID, setComments, setDate, setFirstName, setLastName, setOwner, setPassFail, setScoredOn, setScorerID, setStage, setStatus, setSubmittedOn
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
CheckRide
Creates a new Check Ride/Video.- Parameters:
name
- the name of the checkride- See Also:
-
-
Method Details
-
getFlightID
public int getFlightID()Returns the ACARS Flight ID for this checkride.- Returns:
- the ACARS Flight ID
- See Also:
-
getCourseID
public int getCourseID()Returns the Flight Academy Course this CheckRide is associated with.- Returns:
- the Course's database ID, or zero if no Course
- See Also:
-
getScore
-
getAircraftType
Returns the aircraft type used in this Check Ride.- Returns:
- the aircraft type
- See Also:
-
getEquipmentType
Returns the equipment type for the check ride.- Returns:
- the equipment type
- See Also:
-
getExpirationDate
Returns the expiration of this check ride.- Returns:
- the expiry date/time, or null if never
- See Also:
-
getSize
-
getIndex
public int getIndex()Returns the Check Ride index for a Flight Academy course.- Returns:
- the Check Ride index
-
getType
-
setFlightID
public void setFlightID(int id) Sets the ACARS Flight ID for this Check Ride.- Parameters:
id
- the ACARS Flight ID- Throws:
IllegalArgumentException
- if id is negative- See Also:
-
setCourseID
public void setCourseID(int id) Updates the Flight Academy Course ID for this Check Ride.- Parameters:
id
- the Flight Academy Course database ID- Throws:
IllegalStateException
- if this is not a Flight Academy Check RideIllegalArgumentException
- if id is negative- See Also:
-
setSize
public void setSize(int size) Sets the size of the Test. NOT IMPLEMENTED- Specified by:
setSize
in classTest
- Parameters:
size
- the number of questions- Throws:
UnsupportedOperationException
-
setScore
public void setScore(boolean passFail) Sets the score for the Check Ride.- Parameters:
passFail
- TRUE if a pass (1), otherwise FALSE (0) for a fail- See Also:
-
setScore
public final void setScore(int score) Sets the score for the Check ride.- Overrides:
setScore
in classTest
- Parameters:
score
- the score, either 0 or 1 for pass or fail- Throws:
IllegalArgumentException
- if the score is not 0 or 1- See Also:
-
setAircraftType
Sets the aircraft type used for this Check Ride.- Parameters:
acType
- the aircraft type- See Also:
-
setEquipmentType
Sets the equipment program for this Check Ride.- Parameters:
eqType
- the equipment program.- See Also:
-
setEquipmentType
Sets the equipment program and stage for this Check Ride.- Parameters:
eq
- the Equipment Program bean- See Also:
-
setExpirationDate
Sets the expiration date for this Check Ride.- Parameters:
dt
- the expiration date/time, or null if never- See Also:
-
setType
-
setAcademy
public void setAcademy(boolean academy) Marks this Test as part of the Flight Academy.- Overrides:
setAcademy
in classTest
- Parameters:
academy
- TRUE if the Test is part of the Flight Academy, otherwise FALSE- See Also:
-
getRowClassName
Returns the CSS class name for a view table row.- Returns:
- the CSS class name
-