|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.evaluators.EvaluationTool
public class EvaluationTool
EvaluatorHelper.java Created: Wed Sep 19 12:49:01 2001
| Field Summary | |
|---|---|
static int |
EASIER
|
static int |
HARDER
|
static int |
SAME
|
protected static Logger |
thisLogCat
|
| Constructor Summary | |
|---|---|
EvaluationTool()
|
|
| Method Summary | |
|---|---|
static int |
countWordsInItem(String id)
counts the words in the item with the supplied id |
static int |
countWordsOnPage(List ids)
Counts all the words on a page containing the items referred to by the supplied ids. |
static Map |
createHash(double d)
|
static String |
getAbstractness(String id)
returns the abstractness rating of an item. |
static Double |
getDifficulty(String pid)
|
static String |
getEventType(String id)
|
static void |
getExamples(String id)
|
static Vector |
getExercises(String concept_id)
fetches ids of examples for the given concept from MBase. |
static void |
getSimilarExamples(String exa_id,
int difficulty)
|
static Vector |
getSimilarExercises(String some_exercise,
int difficulty)
fetches ids of exercises similar to the given one from MBase, with the chosen difficulty rating. |
static String |
getType(String id)
returns the type of the given id if it can be retrived. |
static String |
makeCanonical(String in)
gets a Canonical ID from MBase. |
static String |
timeRating(long duration,
String id,
int wordsInPage)
Compares the reading the time observed with the average required reading time, and returns wether the time was "short", "ok" or "long". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HARDER
public static final int SAME
public static final int EASIER
protected static Logger thisLogCat
| Constructor Detail |
|---|
public EvaluationTool()
| Method Detail |
|---|
public static String getType(String id)
id - the id of the item to get the type of.
null if it can't be retrieved.public static String getEventType(String id)
public static String makeCanonical(String in)
in - the id th canonicalize
in
public static String timeRating(long duration,
String id,
int wordsInPage)
duration - the long representation of the Date
when the student started acting.id - the id of the active concept.wordsInPage - number of words on the whole page
"short" if the time spent was too short"ok" if the time spent was near the expected time"long" if the time spent quite above the expected time.
public static int countWordsInItem(String id)
id - the id of the item to cpount the words of
public static int countWordsOnPage(List ids)
ids - list of item ids to count the words of
public static Double getDifficulty(String pid)
public static String getAbstractness(String id)
id - the id of the item to get the abstractness rating for
public static Vector getExercises(String concept_id)
concept_id - the id of the concept to get exercises for
public static Vector getSimilarExercises(String some_exercise,
int difficulty)
some_exercise - the id of the exercise for which to find a similar onedifficulty - the difficulty rating, one of the constants HARDER, SAME or EASIER
public static void getExamples(String id)
public static void getSimilarExamples(String exa_id,
int difficulty)
public static Map createHash(double d)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||