|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.services.LearnObjExplnServer
public class LearnObjExplnServer
Serves the text explanation for a given learning objective of a given topic. Uses a cache for efficiency.
Field Summary | |
---|---|
static java.lang.String |
NOT_FOUND
String returned if the learning objective is not found |
Constructor Summary | |
---|---|
LearnObjExplnServer(java.lang.String inTopic)
Creates a server that can be queried for the explanation of each learning objective in the specified topic ( inTopic parameter). |
Method Summary | |
---|---|
java.util.Vector |
getAllExplanations(boolean leafOnly)
Returns a vector of the explanations of all the leaf or leaf+intermediate learning objectives for this topic |
java.lang.String |
getExplanation(java.lang.String learnObj)
Given a learning objective, returns its explanation. |
int |
getNumberOfObjectives(boolean leafOnly)
Returns the number of leaf or leaf+intermediate learning objectives available for this topic. |
java.lang.String |
getXMLHierarchy()
Returns the correct knowledge model - nodes and nesting relationships in XML format |
static void |
main(java.lang.String[] args)
Used for local testing |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NOT_FOUND
Constructor Detail |
---|
public LearnObjExplnServer(java.lang.String inTopic)
inTopic
parameter).
inTopic
- String that specifies the topic for which the
explanation server is constructedMethod Detail |
---|
public java.lang.String getExplanation(java.lang.String learnObj)
learnObj
- String representing the learning objective for
which explanation is desired
public int getNumberOfObjectives(boolean leafOnly)
leafOnly
- Boolean flag that is true if only the number of
leaf learning objectives is desired, and false if the number of all
(leaf + intermediate) learning objectives is desired.
public java.util.Vector getAllExplanations(boolean leafOnly)
leafOnly
- Boolean flag that is true if only the number of
leaf learning objectives is desired, and false if the number of all
(leaf + intermediate) learning objectives is desired.
public java.lang.String getXMLHierarchy()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |