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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<T> T
getAdapter
(Class<T> adapter) getCopy()
getPath()
Get the path of the script.Get the input PVs of the scriptboolean
boolean
boolean
void
void
setCheckConnectivity
(boolean checkConnectivity) void
setEmbedded
(boolean isEmbedded) boolean
Set the script path.void
setScriptName
(String scriptName) void
setScriptText
(String scriptText) void
setScriptType
(ScriptService.ScriptType scriptType) void
setStopExecuteOnError
(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:
getAdapter
in 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
-