|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.MetaData
public class MetaData
Stores meta-data of exercises.
| Field Summary | |
|---|---|
static int |
ALL
Allow inputs on all fields in the meta-data |
static int |
CREATOR
Allow inputs only to the Creator-Field (Creator of the exercise) |
static int |
EDITOR
Allow inputs only to the Editor-Field (Student who work on the exercise) |
static int |
EVALUATOR
Allow inputs only to the Evaluator-Field (Tutor who evaluated the exercise) |
| Constructor Summary | |
|---|---|
MetaData()
Creates a MetaData-Object |
|
| Method Summary | |
|---|---|
void |
actualizeEditorDate()
Actualizes the date/time of processing the exercise |
void |
actualizeEvaluatorDate()
Actualizes the date/time of processing the exercise |
int |
getDifficulty()
Gets the difficulty of the exercise |
static int |
getDisplayMode()
Gets the display-mode |
java.lang.String |
getEditorFeedback()
Gets the type of feedback the student chosen |
java.lang.String |
getEditorState()
Gets the current working-state of the editor |
java.lang.String |
getEvaluatorJEAFilename()
Gets the filename of the jedas-recording-animation-file |
java.lang.String |
getEvaluatorName()
Gets the name of the evaluator |
java.lang.String |
getEvaluatorState()
Gets the current evaluation-state |
int |
getMode()
Gets the mode of the exercise |
java.lang.String |
getPreviewString()
Returns a string-representation of this meta-data, which can be used e.g. in the filechooses's preview-panel. |
java.lang.String |
getType()
Gets the type of the exercise |
boolean |
inputDialog()
Displays an input-dialog-window, where the user can input several values. |
void |
load(java.lang.Object o)
Fills this meta-data-object with values from HashMap- representation of the meta-data. |
java.util.HashMap |
save()
Converts the meta-data in a format for saving-purposes |
void |
setComment(java.lang.String c)
Sets a comment the creator has for this exercise |
void |
setDifficulty(int d)
Sets the diffculty of the exercise |
static void |
setDisplayMode(int m)
Sets the display-mode. |
void |
setEditorFeedback(java.lang.String s)
Sets the type of feedback the student chosen |
void |
setEditorName(java.lang.String n)
Sets the name of the student who works on the exercise |
void |
setEditorState(java.lang.String s)
Sets the current working-state of the editor |
void |
setEvaluatorJEAFilename(java.lang.String s)
Sets the filename of the jedas-recording-animation-file, that the current exercise is associated to. |
void |
setEvaluatorName(java.lang.String s)
Sets the name of the person who evaluated the exercise. |
void |
setEvaluatorScore(java.lang.String s)
Sets the reached score of an evaluated exercise. |
void |
setEvaluatorState(java.lang.String s)
Sets the current evaluation-state of the exercise |
void |
setInitRating(int r)
Sets the rating of the init-operations |
void |
setMode(int m)
Sets the mode of the exercise, e.g. |
void |
setSource(java.lang.String s)
Sets the Creator-Name of the exercise, e.g. |
void |
setTodoRating(int r)
Sets the rating of the todo-operations |
void |
setType(java.lang.String t)
Sets the type of the exercise, e.g. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL
public static final int CREATOR
public static final int EDITOR
public static final int EVALUATOR
| Constructor Detail |
|---|
public MetaData()
| Method Detail |
|---|
public static void setDisplayMode(int m)
m - ALL,
CREATOR,
EDITOR,
EVALUATORpublic static int getDisplayMode()
setDisplayMode(int)public java.lang.String getPreviewString()
public void setType(java.lang.String t)
t - plugin-type-namepublic java.lang.String getType()
public void setDifficulty(int d)
d - difficulty-IDDifficultiespublic int getDifficulty()
public void setMode(int m)
m - mode-IDExerciseModepublic int getMode()
public void setSource(java.lang.String s)
s - Creator-Namepublic void setInitRating(int r)
r - Overall-rating of the init-operationspublic void setTodoRating(int r)
r - Overall-rating of the todo-operationspublic void setComment(java.lang.String c)
c - commentpublic void setEditorName(java.lang.String n)
n - student-namepublic void actualizeEditorDate()
public void setEditorState(java.lang.String s)
s - working-state: "unworked", "in process" or "completed"public java.lang.String getEditorState()
setEditorState(String)public void setEditorFeedback(java.lang.String s)
s - Feedback-Type-Stringpublic java.lang.String getEditorFeedback()
public void setEvaluatorName(java.lang.String s)
s - Evaluator-Namepublic java.lang.String getEvaluatorName()
public void actualizeEvaluatorDate()
public void setEvaluatorState(java.lang.String s)
s - evaluation-state: "not evaluated" or "evaluated"public java.lang.String getEvaluatorState()
setEvaluatorState(String)public void setEvaluatorScore(java.lang.String s)
s - reached scorepublic void setEvaluatorJEAFilename(java.lang.String s)
s - jedas-recorder-animation-filenamepublic java.lang.String getEvaluatorJEAFilename()
public java.util.HashMap save()
public void load(java.lang.Object o)
o - HashMap-representation of meta-datapublic boolean inputDialog()
setDisplayMode(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||