Class ScriptTransform
java.lang.Object
com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransform
com.inductiveautomation.perspective.gateway.binding.transforms.script.ScriptTransform
- All Implemented Interfaces:
- Transform
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionScriptTransform(BindingContext context, com.inductiveautomation.ignition.common.gson.JsonObject config) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.python.core.PyCodecompileInternal(BindingContext context, String filename, 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 QualifiedValuePerform a blocking transformation on aQualifiedValue, returning the transformed value as a QualifiedValue.Methods inherited from class com.inductiveautomation.perspective.gateway.binding.transforms.AbstractSynchronousTransformtransformMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.perspective.gateway.api.TransformresolveReferences, shutdown, startup
- 
Field Details- 
TYPE_ID- See Also:
 
 
- 
- 
Constructor Details- 
ScriptTransformpublic ScriptTransform(BindingContext context, com.inductiveautomation.ignition.common.gson.JsonObject config) throws ConfigurationException - Throws:
- ConfigurationException
 
 
- 
- 
Method Details- 
compileInternalprotected org.python.core.PyCode compileInternal(BindingContext context, String filename, String code) throws org.python.core.PyException - Throws:
- org.python.core.PyException
 
- 
createLocalsMap
- 
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
 
- 
synchronousTransformInternalDescription 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.
 
 
-