Class RoutePlotQuestion
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.testing.Question
org.deltava.beans.testing.MultiChoiceQuestion
org.deltava.beans.testing.RoutePlotQuestion
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,MultipleChoice
,RoutePlot
,Cacheable
A bean to store route plotting Examination questions.
- Since:
- 2.3
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.beans.ImageBean
ImageBean.ImageFormat
-
Field Summary
Fields inherited from class org.deltava.beans.DatabaseBlobBean
_buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the arrival Airport for this route.Returns the departure Airport for this route.int
Returns the distance between the two Airports.Returns the mid-point between the two Airports.void
Updates the arrival Airport.void
Updates the departure Airport.Methods inherited from class org.deltava.beans.testing.MultiChoiceQuestion
addChoice, getChoices, getExactMatch, getMaxAnswerLength
Methods inherited from class org.deltava.beans.testing.Question
compareTo, getAnswer, getCorrectAnswer, getImageType, getNumber, getQuestion, getReference, isCorrect, setAnswer, setCorrect, setCorrectAnswer, setNumber, setReference
Methods inherited from class org.deltava.beans.ImageBean
checkParam, getFormat, getHasImage, getHeight, getSize, getWidth, load, load, setFormat, setHeight, setSize, setWidth
Methods inherited from class org.deltava.beans.DatabaseBlobBean
clear, getInputStream, isLoaded
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
RoutePlotQuestion
Creates a new route plotting Question bean.- Parameters:
text
- the Question text- Throws:
NullPointerException
- if text is null
-
-
Method Details
-
getAirportA
Description copied from interface:RoutePlot
Returns the arrival Airport for this route.- Specified by:
getAirportA
in interfaceRoutePlot
- Returns:
- the arrival Airport bean
-
getAirportD
Description copied from interface:RoutePlot
Returns the departure Airport for this route.- Specified by:
getAirportD
in interfaceRoutePlot
- Returns:
- the departure Airport bean
-
getMidPoint
Description copied from interface:RoutePlot
Returns the mid-point between the two Airports.- Specified by:
getMidPoint
in interfaceRoutePlot
- Returns:
- the midpoint
-
getDistance
public int getDistance()Description copied from interface:RoutePlot
Returns the distance between the two Airports.- Specified by:
getDistance
in interfaceRoutePlot
- Returns:
- the distance in miles
-
setAirportA
Description copied from interface:RoutePlot
Updates the arrival Airport.- Specified by:
setAirportA
in interfaceRoutePlot
- Parameters:
a
- the arrival Airport bean
-
setAirportD
Description copied from interface:RoutePlot
Updates the departure Airport.- Specified by:
setAirportD
in interfaceRoutePlot
- Parameters:
a
- the departure Airport bean
-