Package org.csstudio.opibuilder.script
Class ScriptData
java.lang.Object
org.csstudio.opibuilder.script.ScriptData
- All Implemented Interfaces:
IAdaptable
- Direct Known Subclasses:
RuleScriptData
The description data for a script.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T> TgetAdapter(Class<T> adapter) getCopy()getPath()Get the path of the script.Get the input PVs of the scriptbooleanbooleanbooleanvoidvoidsetCheckConnectivity(boolean checkConnectivity) voidsetEmbedded(boolean isEmbedded) booleanSet the script path.voidsetScriptName(String scriptName) voidsetScriptText(String scriptText) voidsetScriptType(ScriptService.ScriptType scriptType) voidsetStopExecuteOnError(boolean stopExecuteOnError)
-
Field Details
-
pvList
The input PVs of the script. Which can be accessed in the script and trigger the script execution.
-
-
Constructor Details
-
ScriptData
public ScriptData() -
ScriptData
-
-
Method Details
-
setPath
Set the script path.- Parameters:
path- the file path of the script.- Returns:
- true if successful. false if the input is not a javascript file.
-
getPath
Get the path of the script. -
getPVList
Get the input PVs of the script -
addPV
-
removePV
-
setCheckConnectivity
public void setCheckConnectivity(boolean checkConnectivity) -
isCheckConnectivity
public boolean isCheckConnectivity() -
getCopy
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable
-
setStopExecuteOnError
public void setStopExecuteOnError(boolean stopExecuteOnError) - Parameters:
stopExecuteOnError- If true, stop to execute the script if error is detected in script.
-
isStopExecuteOnError
public boolean isStopExecuteOnError()- Returns:
- true if stop to execute the script if error is detected in script..
-
getScriptType
-
setScriptType
-
isEmbedded
public boolean isEmbedded() -
setEmbedded
public void setEmbedded(boolean isEmbedded) -
getScriptText
-
setScriptText
-
getScriptName
-
setScriptName
-