Class ScriptTransform
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
- 
- com.inductiveautomation.perspective.gateway.binding.transforms.script.ScriptTransform
 
 
- 
- All Implemented Interfaces:
- Transform
 
 public class ScriptTransform extends AbstractSynchronousTransform 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTYPE_ID
 - 
Constructor SummaryConstructors Constructor Description ScriptTransform(BindingContext context, com.inductiveautomation.ignition.common.gson.JsonObject config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.python.core.PyCodecompileInternal(BindingContext context, java.lang.String filename, java.lang.String code)protected org.python.core.PyStringMapcreateLocalsMap(BindingContext context)protected voidrunCode(org.python.core.PyCode compiledJyCode, org.python.core.PyStringMap localsMap)protected org.python.core.PyObjectrunFunction(BindingContext context, org.python.core.PyObject transformFunc, org.python.core.PyObject pySelf, org.python.core.PyObject pyValue, org.python.core.PyObject pyQuality, org.python.core.PyObject pyTimestamp)protected QualifiedValuesynchronousTransformInternal(QualifiedValue value)Perform a blocking transformation on aQualifiedValue, returning the transformed value as a QualifiedValue.- 
Methods inherited from class com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransformtransform
 
- 
 
- 
- 
- 
Field Detail- 
TYPE_IDpublic static final java.lang.String TYPE_ID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ScriptTransformpublic ScriptTransform(BindingContext context, com.inductiveautomation.ignition.common.gson.JsonObject config) throws ConfigurationException - Throws:
- ConfigurationException
 
 
- 
 - 
Method Detail- 
compileInternalprotected org.python.core.PyCode compileInternal(BindingContext context, java.lang.String filename, java.lang.String code) throws org.python.core.PyException - Throws:
- org.python.core.PyException
 
 - 
createLocalsMapprotected org.python.core.PyStringMap createLocalsMap(BindingContext context) 
 - 
runCodeprotected void runCode(org.python.core.PyCode compiledJyCode, org.python.core.PyStringMap localsMap) throws JythonExecException- Throws:
- JythonExecException
 
 - 
runFunctionprotected org.python.core.PyObject runFunction(BindingContext context, org.python.core.PyObject transformFunc, org.python.core.PyObject pySelf, org.python.core.PyObject pyValue, org.python.core.PyObject pyQuality, org.python.core.PyObject pyTimestamp) throws JythonExecException - Throws:
- JythonExecException
 
 - 
synchronousTransformInternalprotected QualifiedValue synchronousTransformInternal(@Nonnull QualifiedValue value) Description copied from class:AbstractSynchronousTransformPerform a blocking transformation on aQualifiedValue, returning the transformed value as a QualifiedValue.- Specified by:
- synchronousTransformInternalin class- AbstractSynchronousTransform
- Parameters:
- value- The input value to transform. The value will never be null.
- Returns:
- The transformed value.
 
 
- 
 
-