|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.xulu.appl.AbstractScriptInterpreter
edu.bonn.xulu.appl.AbstractCommandInterpreter
public abstract class AbstractCommandInterpreter
Diese Klasse bildet eine Basis-Implementierung eines ScriptInterpreter
.
Sie basiert darauf, dass die Befehle zunaechst alle
aus einem InputStream eingelesen und danach hintereinander ausgefuehrt
werden. Implementierungen dieser Klasse brauchen lediglich noch das
Einlesen der Befehle aus dem Stream implementieren. Das Ausfuehren (mit
entsprechenden Status-Meldungen) uebernimmt diese Oberklasse.
Nested Class Summary | |
---|---|
protected static interface |
AbstractCommandInterpreter.Command
Diese Interface beschreibt einen unter der Xulu-Plattform ausfuehrbaren Befehl. |
Nested classes/interfaces inherited from interface edu.bonn.xulu.appl.ScriptInterpreter |
---|
ScriptInterpreter.ScriptExecutionDefinition, ScriptInterpreter.ScriptFileExecutionDefinition |
Field Summary | |
---|---|
protected XuluModellingPlatform |
appl
Speichert die Xulu-Instanz fuer die das Skript ausgefuehrt wird. |
protected int |
errorCount
Speichert die Anzahl an Fehlern, die fuer das Skript aufgetreten sind. |
protected String |
name
Speichert den Namen des Skript-Interpreters. |
Constructor Summary | |
---|---|
AbstractCommandInterpreter()
|
Method Summary | |
---|---|
void |
execute(InputStream in,
XuluModellingPlatform appl)
Fuehrt ein Script aus. |
protected abstract AbstractCommandInterpreter.Command[] |
readCommands(InputStream in)
Liest ein Skript ein und erzeugt daraus eine Reihe von Befehlen. |
Methods inherited from class edu.bonn.xulu.appl.AbstractScriptInterpreter |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int errorCount
protected String name
protected XuluModellingPlatform appl
Constructor Detail |
---|
public AbstractCommandInterpreter()
Method Detail |
---|
public void execute(InputStream in, XuluModellingPlatform appl)
in
- Eingabe-Stream in dem das Skript zu finden ist.appl
- Applikation, in der das Skript auszufuehren istprotected abstract AbstractCommandInterpreter.Command[] readCommands(InputStream in)
in
- Eingabe-Stream in dem das Skript zu finden ist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |