public class AnswerableProblemAttributes
extends java.lang.Object
AnswerableProblem
.
Each AnswerableProblem subclass must register its attributes by calling
registerProblemTypeAttributes()
in a static initializer (in the subclass).
Constructor and Description |
---|
AnswerableProblemAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Returns whether the specified object is equivalent to this AnswerableProblemAttributes.
|
protected java.util.List<AnswerEvalType> |
getAllowedAnswerEvalTypes()
Returns the evaluation types allowed to be specified in answer value parts.
|
protected java.util.List<AnswerEvalType> |
getAllowedResponseEvalTypes()
Returns the evaluation types allowed to be specified in response value parts.
|
java.lang.String |
getAnswerClassType() |
java.lang.String |
getAnswerValueClassType()
Returns the fully specified AnswerValue subclass name.
|
protected int |
getAnswerValuePartsCount()
Returns the number of value parts in each answer.
|
protected int |
getMaxAnswers()
Returns the maximum number of answers allowed for each problem.
|
java.lang.String |
getProblemClassType()
Returns the fully specified AnswerableProblem subclass name.
|
java.lang.String |
getResponseValueClassType()
Returns the fully specified AnswerValue subclass name.
|
protected int |
getResponseValuePartsCount()
Returns the number of value parts in a student's response
|
protected boolean |
isAllowedAnswerEvalType(AnswerEvalType type)
Returns whether a particular evaluation type is allowed for use in this problem type's answers.
|
protected boolean |
isAllowedResponseEvalType(AnswerEvalType type)
Returns whether a particular evaluation type is allowed for use in this problem's student response.
|
protected void |
setAllowedAnswerEvalTypes(java.util.List<AnswerEvalType> allowedAnswerEvalTypes)
Sets the evaluation types allowed to be specified in answer value parts.
|
protected void |
setAllowedResponseEvalTypes(java.util.List<AnswerEvalType> allowedRepsonseEvalTypes)
Sets the evaluation types allowed to be specified in response value parts.
|
void |
setAnswerClassType(java.lang.String answerClassType) |
protected void |
setAnswerValueClassType(java.lang.String answerValueClassType)
Sets the fully specified AnswerValue subclass name.
|
protected void |
setAnswerValuePartsCount(int answerValuePartsCount)
Sets the number of value parts in each answer.
|
protected void |
setMaxAnswers(int maxAnswers)
Sets the maximum number of answers allowed for each problem.
|
protected void |
setProblemClassType(java.lang.String problemClassType)
Sets the fully specified AnswerableProblem subclass name.
|
protected void |
setResponseValueClassType(java.lang.String responseValueClassType)
Sets the fully specified AnswerValue subclass name.
|
protected void |
setResponseValuePartsCount(int responseValuePartsCount)
Sets the number of value parts in a student's response.
|
public java.lang.String getProblemClassType()
setProblemClassType(String)
protected void setProblemClassType(java.lang.String problemClassType)
problemClassType
- The fully specified class namegetProblemClassType()
public java.lang.String getAnswerClassType()
public void setAnswerClassType(java.lang.String answerClassType)
public java.lang.String getAnswerValueClassType()
setAnswerValueClassType(String)
protected void setAnswerValueClassType(java.lang.String answerValueClassType)
answerValueClassType
- The fully specified class namegetAnswerValueClassType()
public java.lang.String getResponseValueClassType()
setResponseValueClassType(String)
protected void setResponseValueClassType(java.lang.String responseValueClassType)
responseValueClassType
- The fully specified class namegetResponseValueClassType()
protected int getMaxAnswers()
A value of 0 means no limit to the number of answers.
getMaxAnswers()
protected void setMaxAnswers(int maxAnswers)
maxAnswers
- The maximum number or 0 (zero) to allow an unlimited number of answers.getMaxAnswers()
protected int getAnswerValuePartsCount()
setAnswerValuePartsCount(int)
protected void setAnswerValuePartsCount(int answerValuePartsCount)
answerValuePartsCount
- The number of partsgetAnswerValuePartsCount()
protected int getResponseValuePartsCount()
setResponseValuePartsCount(int)
protected void setResponseValuePartsCount(int responseValuePartsCount)
responseValuePartsCount
- The number of parts.getResponseValuePartsCount()
protected java.util.List<AnswerEvalType> getAllowedAnswerEvalTypes()
setAllowedAnswerEvalTypes(List)
,
AnswerEvalType
protected void setAllowedAnswerEvalTypes(java.util.List<AnswerEvalType> allowedAnswerEvalTypes)
allowedAnswerEvalTypes
- a list of allowed typesgetAllowedAnswerEvalTypes()
,
AnswerEvalType
protected java.util.List<AnswerEvalType> getAllowedResponseEvalTypes()
setAllowedResponseEvalTypes(List)
,
AnswerEvalType
protected void setAllowedResponseEvalTypes(java.util.List<AnswerEvalType> allowedRepsonseEvalTypes)
allowedRepsonseEvalTypes
- a list of allowed typesgetAllowedResponseEvalTypes()
,
AnswerEvalType
protected boolean isAllowedAnswerEvalType(AnswerEvalType type)
type
- evaluation type to checkisAllowedResponseEvalType(AnswerEvalType)
protected boolean isAllowedResponseEvalType(AnswerEvalType type)
type
- evaluation type to checkisAllowedAnswerEvalType(AnswerEvalType)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The object to compare to this instance.