Package hec.rss.model

Class PythonScriptContainer

java.lang.Object
hec.script.Script
hec.rss.model.PythonScriptContainer
All Implemented Interfaces:
Cloneable

public class PythonScriptContainer extends Script implements Cloneable
  • Field Details

    • LINE_START

      public static String LINE_START
  • Constructor Details

    • PythonScriptContainer

      public PythonScriptContainer()
  • Method Details

    • compile

      public void compile() throws Exception
      Throws:
      Exception
    • run

      public void run() throws Exception
      Throws:
      Exception
    • exec

      public Object exec(Object[] input) throws Exception
      Throws:
      Exception
    • setScript

      public void setScript(String script)
      Overrides:
      setScript in class Script
    • getPythonCode

      public org.python.core.PyCode getPythonCode()
    • setPythonCode

      public void setPythonCode(org.python.core.PyCode pythonCode)
    • getLocals

      public org.python.core.PyStringMap getLocals()
    • setLocals

      public void setLocals(org.python.core.PyStringMap locals)
    • setLocals

      public void setLocals(Object currentVariable, Manager system)
    • getInterp

      public org.python.util.PythonInterpreter getInterp()
    • setInterp

      public void setInterp(org.python.util.PythonInterpreter pythonInterp)
    • clone

      public PythonScriptContainer clone()
      Overrides:
      clone in class Object
    • read

      public void read(BufferedReader reader)
    • write

      public void write(BufferedWriter writer)
    • fout

      public static void fout(BufferedWriter out, String txt)
    • getType

      public static String getType(String line, String delim)
    • getParam

      public static String getParam(String line, String delim)
    • getParam

      public static String getParam(String line, String delim, boolean trim)