|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.sasi.SASIInterpreter
This class provides methods for parsing and evaluting aicc_script expressions used in SCORM 1.2
HashMap hm = new HashMap();
hm.put("s1", "passed");
hm.put("s2", "failed");
**OO style**
SASIInterpreter sasi = new SASIInterpreter("s1&s2");
sasi.create();
sasi.interpret(hm);
***static style***
SASIEval se = SASIInterpreter.create("s1&s2");
SASIInterpreter.interpret(se, hm);
| Constructor Summary | |
SASIInterpreter(java.lang.String expr)
Constructor |
|
| Method Summary | |
void |
create()
parses the expression |
static SASIEval |
create(java.lang.String expr)
parses an expression |
boolean |
interpret(java.util.HashMap hm)
evalutes an expression using the provided sco states |
static boolean |
interpret(SASIEval expr,
java.util.HashMap hm)
evalutes an expression using the provided sco states |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SASIInterpreter(java.lang.String expr)
expr - the expression to interprete| Method Detail |
public static SASIEval create(java.lang.String expr)
throws java.lang.Exception
expr - the expression to parse
java.lang.Exception
public void create()
throws java.lang.Exception
java.lang.Exception
public static boolean interpret(SASIEval expr,
java.util.HashMap hm)
expr - the expression treehm - the HashMap containing the sco states
public boolean interpret(java.util.HashMap hm)
hm - the HashMap containing the sco states
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||