public class HintRequestedAction extends TutoringRequestedAction implements ItemStartedAction, ItemFinishedAction, NonInteractiveAction
EXCLUDE_TIMESTAMP, EXTRA_DATA_DEV_CONSOLE, EXTRA_DATA_NAVIGATOR, EXTRA_DATA_TERMINATOR, INCLUDE_TIMESTAMP
Constructor and Description |
---|
HintRequestedAction(java.lang.String uid) |
HintRequestedAction(java.lang.String uid,
int hintNumber,
int ofTotalHints) |
HintRequestedAction(java.lang.String uid,
Manifest manifest,
int hintNumber,
int ofTotalHints) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getClassType() |
double |
getContinuousScore() |
int |
getDiscreteScore() |
java.lang.String |
getFingerPrint()
Returns a string, based the content this action refers to, to uniquely identify this action
for the purpose of determining whether actions are duplicates.
|
int |
getHintNumber() |
int |
getOfTotalHints() |
double |
getScore(ScoreValueType vType) |
void |
setContinuousScore(double score) |
void |
setDiscreteScore(int score) |
void |
setHintNumber(int hintNumber) |
void |
setOfTotalHints(int ofTotalHints) |
void |
setScore(ScoreValueType vType,
double score) |
java.lang.String |
toString()
Returns a string representation of this object.
|
getOwningProblemManifestKey, setOwningProblemManifestKey
isFirstResponse, setIsFirstResponse
getProblemType, getRubyProblemType, setProblemType, setRubyProblemType
addElementToExtraData, addExtraData, getAssignmentXId, getAssignmentXRef, getBaseFingerPrint, getBaseFingerPrint, getContentKey, getExtraData, getExtraData, getManifestKey, getNavigator, getNetworkState, getPath, getTerminator, getTimestamp, getUserXId, getUserXRef, isForMe, isForMe, isScaffolding, modifyExtraDataElement, removeExtraDataEntry, setAssignmentXId, setAssignmentXRef, setContentKey, setExtraData, setManifestKey, setNavigator, setNetworkState, setPath, setScaffolding, setTerminator, setTimestamp, setUserXId, setUserXRef, shouldBePersisted
createKey, createKey, equals, extractType, extractUID, getKey, getShortKey, getShortKey, getType, getUID, getValidatorUtilities, setValidatorUtilities, validate, validateKey
public HintRequestedAction(java.lang.String uid, Manifest manifest, int hintNumber, int ofTotalHints)
public HintRequestedAction(java.lang.String uid, int hintNumber, int ofTotalHints)
public HintRequestedAction(java.lang.String uid)
public static java.lang.String getClassType()
public java.lang.String getFingerPrint()
Action
Subclasses must override this base implementation when if fact multiple instances of an Action are expected and acceptable. For example: While there should be one and only one user response with a correct answer, there can be multiple incorrect user responses.
The each subclass can choose to overwrite or modify the return finger print string to reflect its own semantics of uniqueness.
getFingerPrint
in class Action
public int getHintNumber()
public void setHintNumber(int hintNumber)
public int getOfTotalHints()
public void setOfTotalHints(int ofTotalHints)
public double getScore(ScoreValueType vType)
public void setScore(ScoreValueType vType, double score)
public double getContinuousScore()
public int getDiscreteScore()
public void setContinuousScore(double score)
public void setDiscreteScore(int score)
public java.lang.String toString()
Persistable
toString
in interface IsPersistable
toString
in class TutoringRequestedAction