public class ClientAppWrapper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeWatershed()
close the watershed
|
static hec.client.ClientMode |
getCurrentModule()
return the current module
|
static boolean |
getScriptModule(java.lang.String pythonModuleName)
make sure the python module is on the local hard drive
requires that
python.path be defined. |
static hec.client.ClientWorkspace |
getWatershed()
get the current ClientWorkspace
|
static java.lang.String |
getWatershedName()
return the current watershed's name
|
static boolean |
isWatershedOpened()
return whether the ClientApp has a Workspace Opened
|
static boolean |
localExec(java.lang.String cmd)
execute a process on the local machine.
|
static boolean |
openWatershed()
display the open watershed dialog.
|
static hec.client.ClientWorkspace |
openWatershed(java.lang.String watershedFile)
open the watershed specified by the watershedFile.
|
static void |
printLogMessage(java.lang.String msg)
print a log message to the Scheduler's log
|
static boolean |
remoteExec(java.lang.String cmd)
execute a process on the server machine
|
static void |
selectModule(int moduleIdx)
select a module by index
|
static boolean |
selectModule(java.lang.String moduleName)
select a module by name
|
public static hec.client.ClientWorkspace openWatershed(java.lang.String watershedFile)
watershedFile - should be the the form public static boolean isWatershedOpened()
public static boolean openWatershed()
public static hec.client.ClientWorkspace getWatershed()
public static boolean closeWatershed()
public static boolean localExec(java.lang.String cmd)
cmd - a specified system command.public static boolean remoteExec(java.lang.String cmd)
cmd - a specified system command.public static hec.client.ClientMode getCurrentModule()
public static boolean selectModule(java.lang.String moduleName)
moduleName - the name of the module to make the current modulepublic static void selectModule(int moduleIdx)
moduleIdx - - the module index starting from 0public static boolean getScriptModule(java.lang.String pythonModuleName)
python.path be defined.
directories are searched in the following order:
pythonModuleName - - python module namepublic static java.lang.String getWatershedName()
public static void printLogMessage(java.lang.String msg)
msg - the message to be logged.