Class RoutePlotQuestionProfile
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.testing.Question
org.deltava.beans.testing.QuestionProfile
org.deltava.beans.testing.MultiChoiceQuestionProfile
org.deltava.beans.testing.RoutePlotQuestionProfile
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Object>
,Auditable
,IDBean
,MultipleChoice
,PassStatistics
,RoutePlot
,ViewEntry
,Cacheable
A bean to store route plotting question data.
- 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
ConstructorsConstructorDescriptionCreates a new route plotting question profile. -
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.Returns the CSS row class name if included in a view table.void
Updates the arrival Airport.void
Updates the departure Airport.Converts this profile into aMultiChoiceQuestion
bean.Methods inherited from class org.deltava.beans.testing.MultiChoiceQuestionProfile
addChoice, getChoices, setChoices, setCorrectAnswer
Methods inherited from class org.deltava.beans.testing.QuestionProfile
addAirline, addExam, compareTo, getActive, getAirlines, getAuditID, getExams, getOwner, getPassCount, getTotal, setActive, setAirlines, setCorrectAnswers, setExams, setNumber, setOwner, setQuestion, setTotalAnswers
Methods inherited from class org.deltava.beans.testing.Question
getAnswer, getCorrectAnswer, getExactMatch, getImageType, getNumber, getQuestion, getReference, isCorrect, setAnswer, setCorrect, 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
-
Constructor Details
-
RoutePlotQuestionProfile
Creates a new route plotting question profile.- 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
-
getRowClassName
Description copied from class:QuestionProfile
Returns the CSS row class name if included in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Overrides:
getRowClassName
in classQuestionProfile
- Returns:
- the CSS class name
-
toQuestion
Description copied from class:MultiChoiceQuestionProfile
Converts this profile into aMultiChoiceQuestion
bean. The choices will be rearranged in random order.- Overrides:
toQuestion
in classMultiChoiceQuestionProfile
- Returns:
- a Question bean
-