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
,RoutePair
,MultipleChoice
,PassStatistics
,RoutePlot
,ViewEntry
,Cacheable
A bean to store route plotting question data.
- Since:
- 2.3
- Version:
- 12.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.beans.ImageBean
ImageBean.ImageFormat
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
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.Returns the departure Airport.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
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
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:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the arrival Airport
-
getAirportD
Description copied from interface:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
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
-