Class AbstractTagScript
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.scripts.AbstractTagScript
- All Implemented Interfaces:
CompiledTagScript
- Direct Known Subclasses:
AlarmEventScript
,ValueChangeTagScript
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.python.core.PyObject[]
buildArgumentsFor
(Tag source, TagPath sourcePath, Object[] parameters, boolean overflow) Should return an array of pyobjects that will be used as arguments to the function.void
Executes the script for the given source tags.boolean
void
setErrored
(boolean errored) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.scripts.CompiledTagScript
getId
-
Constructor Details
-
AbstractTagScript
-
-
Method Details
-
isErrored
public boolean isErrored()- Specified by:
isErrored
in interfaceCompiledTagScript
-
setErrored
public void setErrored(boolean errored) - Specified by:
setErrored
in interfaceCompiledTagScript
-
buildArgumentsFor
protected abstract org.python.core.PyObject[] buildArgumentsFor(Tag source, TagPath sourcePath, Object[] parameters, boolean overflow) Should return an array of pyobjects that will be used as arguments to the function. -
invoke
public void invoke(Tag source, TagPath sourcePath, Object[] parameters, boolean overflow) throws Exception Description copied from interface:CompiledTagScript
Executes the script for the given source tags. The parameters passed in are dependent on the type of event being processed. The overflow parameter indicates that other events could not be processed and were dropped before this one.- Specified by:
invoke
in interfaceCompiledTagScript
parameters
- understood in the context of the event that is fired.- Throws:
Exception
-