com.phoenix_int.aserver.util.scriptwrapper.api
Class Hierarchy
Declaration
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
PHXScriptWrapperObject
Method Detail
addMethod
methodName- The name of the method to publicize
PHXNameAlreadyInUseExceptionPHXInvalidNameException
addMethod
methodName- The name of the method to publicize.fullName- A human readable name to show in GUI programs for this method. For example, ModelCenter will show this in the right click menu of a component.
PHXNameAlreadyInUseExceptionPHXInvalidNameException
addMethod
methodName- The name of the method to publicize.downloadInputs- Hint passed to the client on whether the inputs should be downloaded after the method is run.
PHXNameAlreadyInUseExceptionPHXInvalidNameException
addMethod
methodName- The name of the method to publicize.fullName- A human readable name to show in GUI programs for this method. For example, ModelCenter will show this in the right click menu of a component.downloadInputs- Hint passed to the client on whether the inputs should be downloaded after the method is run.
PHXNameAlreadyInUseExceptionPHXInvalidNameException
addVariable
All types except
PHXGeometry and PHXRawFile may be made into arrays by adding [] at the end of the type string. In that case, the associated PHX<type>Array class is used to represent a resizable, multi-dimensional array.
Parameters:
name- The full name of the new variable. May include group specification with ’.’.type- The type of variable to create. Use the same type strings as for the variable: statemensts at the top of the ScriptWrapper.isInput- If true, the variable will be an input, if false, it will be an output.
PHXNameAlreadyInUseException- Thrown if there is already a variable by that name.PHXInvalidNameException- Thrown if the name uses invalid characters like space.PHXInvalidTypeException- Thrown if the type string is not understood
getVariable
PHXNoSuchObjectException
removeVariable
PHXNoSuchObjectException
addConsoleVariables
PHXNameAlreadyInUseExceptionPHXInvalidNameExceptionPHXInvalidTypeException
updateConsoleVariables
PHXNoSuchObjectException
getDirectory
getRunShare
PHXRunShareContext object used for process control and monitoring with this component
getRunDirectory
getDirectory() unless run sharing is being used.
sleep
millisecs- the amount of time to sleep
getConnection
setConnection
getDictionary
- a Map of string/value pairs giving context information about the environment inside which the component is running.
setBinary
varName- the name of the file variable
PHXInvalidTypeExceptionPHXNoSuchObjectException
writeFile
varName- the name of the file variablefileName- the name of the target file
PHXInvalidTypeExceptionPHXNoSuchObjectExceptionjava.io.IOException
parseFile
varName- the name of the file variablefileName- the name of the target file
PHXInvalidTypeExceptionPHXNoSuchObjectExceptionjava.io.IOException
deleteFile
varName- the name of the file variablefileName- the name of the target file
PHXInvalidTypeExceptionPHXNoSuchObjectExceptionjava.io.IOException
backupFile
varName- the name of the file variablefileName- the name of the target file
PHXInvalidTypeExceptionPHXNoSuchObjectExceptionjava.io.IOException
defaultExecutableMapping
trace
msg- the message to print
requireAnalysisServerVersion
majorVersion- required major versionminorVersion- required minor version
addAutoClose
file- the closeable file
removeAutoClose
file- the closeable file