Package hec.rss.model

Class JythonUtil

java.lang.Object
hec.rss.model.JythonUtil

public class JythonUtil extends Object
  • Field Details

  • Constructor Details

    • JythonUtil

      public JythonUtil()
  • Method Details

    • getAppHome

      public static String getAppHome()
    • buildPythonPath

      public static String buildPythonPath(String appHome)
    • buildPythonInterpreter

      public static org.python.util.PythonInterpreter buildPythonInterpreter()
    • initializePythonInterpreter

      public static void initializePythonInterpreter()
    • compileScript

      public static org.python.core.PyCode compileScript(String script, String scriptFilepath)
    • possiblyConnectToDebugger

      public static void possiblyConnectToDebugger(org.python.util.PythonInterpreter interp, mil.army.usace.hec.rmi.csinterface.RmiFileManager fm)
    • getBoolean

      public static Boolean getBoolean(String name, Boolean defaultValue)
      This method is similar to Boolean.getBoolean except this method returns defaultValue unless the system property named by the argument exists and is equal to the string "true"
      Parameters:
      name - Property to look for
      defaultValue - value to return if specified property does not exist or is not "true"
      Returns:
      See Also: