public final class TutorMessage extends Message
ATTEMPT, CONTEXT_MSG_ELEMENT, CURRICULUM_MSG_ELEMENT, HINT_MESSAGE, HINT_REQUEST, MSG_ELEMENT, MSG_SEQUENCE_ELEMENT, RESULT, TOOL_MSG_ELEMENT, TUTOR_MSG_ELEMENT, VERSION_NUMBER, VERSION_NUMBER_ATTR
Modifier and Type | Method and Description |
---|---|
void |
addAction(java.lang.String action)
Adds an action to the event descriptor element.
|
void |
addCustomField(CustomFieldElement customFieldElement)
Add custom field to custom field list given the custom field element.
|
void |
addCustomField(java.lang.String name,
java.lang.String value)
Add custom field to custom field list given the name and value.
|
void |
addInput(java.lang.String input)
Adds an input to the event descriptor element.
|
void |
addInterpretation(InterpretationElement interpretationElement)
Add an interpretation.
|
void |
addSai(java.lang.String selection,
java.lang.String action,
java.lang.String input)
Add selection, action, and input to the event descriptor element.
|
void |
addSelection(java.lang.String selection)
Adds a selection to the event descriptor element.
|
void |
addSkill(SkillElement skillElement)
Add skill to skill list.
|
boolean |
addTutorAdvice(java.lang.String tutorAdvice)
Add tutorAdvice string to a list.
|
static TutorMessage |
create(ToolMessage toolMessage)
Creates a tutor message given a tool message.
|
ActionEvaluationElement |
getActionEvaluationElement()
Get action evaluation element.
|
java.util.List |
getCustomFieldList()
Get custom field list.
|
EventDescriptorElement |
getEventDescriptorElement()
Get event descriptor element.
|
EventElement |
getEventElement()
Get event element.
|
java.util.List |
getInterpretationList()
Get the interpretation list.
|
java.lang.String |
getProblemName()
Get problem name.
|
java.util.List |
getSkillList()
Get skill list.
|
java.util.List |
getTutorAdviceList()
Get tutor advice list.
|
void |
setActionEvaluationElement(ActionEvaluationElement actionEvaluationElement)
Set action evaluation element.
|
void |
setAsCorrectAttemptResponse()
Set action evaluation element to correct.
|
void |
setAsCorrectAttemptResponse(java.lang.String subtype)
Set action evaluation element to correct given a subtype.
|
void |
setAsHintResponse()
Set action evaluation element to hint.
|
void |
setAsHintResponse(java.lang.String subtype)
Set action evaluation element to hint given a subtype.
|
void |
setAsIncorrectAttemptResponse()
Set action evaluation element to incorrect.
|
void |
setAsIncorrectAttemptResponse(java.lang.String subtype)
Set action evaluation element to incorrect given a subtype.
|
void |
setEventElement(EventElement eventElement)
Set event element.
|
void |
setProblemName(java.lang.String problemName)
Set problem name.
|
void |
setReplayElement(java.lang.String replayText)
Set replay element.
|
void |
setToolMessage(ToolMessage toolMessage)
Set tool message.
|
java.lang.String |
toString()
To string method calls toString(boolean) method.
|
java.lang.String |
toString(boolean logMetaFlag)
To string method.
|
generateGUID, getContextMessageId, getMetaElement, getSessionId, getSource, getTimeString, getTimeZone, getUserId, setContextMessageId, setSource, setTimeString
public static TutorMessage create(ToolMessage toolMessage)
toolMessage
- the tool messagepublic java.lang.String getProblemName()
public void setProblemName(java.lang.String problemName)
problemName
- the problem namepublic EventElement getEventElement()
public void setEventElement(EventElement eventElement)
eventElement
- the event elementpublic void setToolMessage(ToolMessage toolMessage)
toolMessage
- the tool messagepublic void setAsCorrectAttemptResponse()
public void setAsCorrectAttemptResponse(java.lang.String subtype)
subtype
- the subtypepublic void setAsIncorrectAttemptResponse()
public void setAsIncorrectAttemptResponse(java.lang.String subtype)
subtype
- the subtypepublic void setAsHintResponse()
public void setAsHintResponse(java.lang.String subtype)
subtype
- the subtypepublic EventDescriptorElement getEventDescriptorElement()
public void addSai(java.lang.String selection, java.lang.String action, java.lang.String input)
selection
- the selectionaction
- the actioninput
- the inputpublic void addSelection(java.lang.String selection)
selection
- the selectionpublic void addAction(java.lang.String action)
action
- the actionpublic void addInput(java.lang.String input)
input
- the inputpublic ActionEvaluationElement getActionEvaluationElement()
public void setActionEvaluationElement(ActionEvaluationElement actionEvaluationElement)
actionEvaluationElement
- the action evaluation elementpublic java.util.List getTutorAdviceList()
public boolean addTutorAdvice(java.lang.String tutorAdvice)
tutorAdvice
- the tutor advice stringpublic java.util.List getSkillList()
public void addSkill(SkillElement skillElement)
skillElement
- the skill elementpublic java.util.List getInterpretationList()
public void addInterpretation(InterpretationElement interpretationElement)
interpretationElement
- the interpretation elementpublic java.util.List getCustomFieldList()
public void addCustomField(java.lang.String name, java.lang.String value)
name
- the namevalue
- the valuepublic void addCustomField(CustomFieldElement customFieldElement)
customFieldElement
- the custom field elementpublic void setReplayElement(java.lang.String replayText)
replayText
- the replay textpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2015 - Pittsburgh Science of Learning Center