Class Interpreter

  • All Implemented Interfaces:
    InterpreterInterface

    public class Interpreter
    extends java.lang.Object
    implements InterpreterInterface
    Klasse zur Steuerung des Skript-Interpreter Moduls. Diese Klasse steuert die Abläufe beim Interpretieren des Skripts.
    • Constructor Summary

      Constructors 
      Constructor Description
      Interpreter​(de.bsvrz.dav.daf.main.config.DataModel model)
      Erzeugen des Interpreters
    • Method Summary

      Modifier and Type Method Description
      ProtocolRequestResult process​(java.io.DataInputStream script, java.lang.String fileName, ProcessingParameter parameter, ProcessingInformation pi)
      Startet die Interpretation des Skripts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Interpreter

        public Interpreter​(de.bsvrz.dav.daf.main.config.DataModel model)
        Erzeugen des Interpreters
        Parameters:
        model - Verbindung zur Konfiguration.
    • Method Detail

      • process

        public ProtocolRequestResult process​(java.io.DataInputStream script,
                                             java.lang.String fileName,
                                             @Nullable
                                             ProcessingParameter parameter,
                                             ProcessingInformation pi)
        Startet die Interpretation des Skripts.
        Specified by:
        process in interface InterpreterInterface
        Parameters:
        script - Quelltext Skript
        fileName - 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 werden
        Returns:
        Informationen über die Ausführung der Operation