public class Interpreter extends java.lang.Object implements InterpreterInterface
Modifier and Type | Field and Description |
---|---|
private DataModel |
_model
Verbindung zum Datenverteiler
|
Constructor and Description |
---|
Interpreter(DataModel model)
Erzeugen des Interpreters
|
Modifier and Type | Method and Description |
---|---|
private ProtocolRequestResult |
errorMsg(java.lang.Exception e,
java.lang.String msg)
Liefert den Rückgabewert.
|
ProtocolRequestResult |
process(java.io.DataInputStream script,
java.lang.String fileName,
ProcessingParameter parameter,
ProcessingInformation pi)
Startet die Interpretation des Skripts.
|
private DataModel _model
public Interpreter(DataModel model)
model
- Verbindung zur Konfiguration.public ProtocolRequestResult process(java.io.DataInputStream script, java.lang.String fileName, ProcessingParameter parameter, ProcessingInformation pi)
process
in interface InterpreterInterface
script
- Quelltext SkriptfileName
- Dateiname des Skripts (nur für detailliertere Fehlerberichte nötig)parameter
- Informationen zum Auswerten des Skripts. Falls null
wird das Skript nur intrepretiert und nicht ausgeführt.pi
- Objekt, in dem die gewonnenen Informationen abgelegt werdenprivate ProtocolRequestResult errorMsg(java.lang.Exception e, java.lang.String msg)
e
- Auslösende Exception.msg
- Nachricht.