IscPlugin
The IscPlugin
class provides access to an IPSA plugin, to set and get data values and assign the plugin to a component. To use the functions in this section an IscPlugin
plugin object must be created from the CreatePlugin
function of the IscNetwork
class. One such object should be created each time a plugin is to be assigned to a network component. The sequence of operations is as follows:
Create an
IscPlugin
from theCreatePlugin
function ofIscNetwork
The plugin name should be obtained from the plugin documentation
Set the
ControlledUID
field value to the UID of the component that the plugin is to be assigned toSet the
Plugin
field value of the component itself to the UID of the plugin created in step 1The plugin parameters can now be set using the normal
SetIntParameterValue
function calls etc
Note that the
Set...
/Get...
functions are used only to get and setIscPlugin
field values such asName
andType
Refer to the documentation provided with each plugin to determine the usage and parameter values available.
Field Values
Type |
Field Name |
Description |
---|---|---|
Integer |
ControlledUID |
Gets the unique ID for controlled plugin. |
String |
Name |
Gets the plugin name. |
Integer |
Type |
Returns the type of the plugin, defined as follows:
|
String |
Model |
Returns the model name of the plugin. |
IscPlugin Class
- class ipsa.IscPlugin
Provides access to an IPSA plugin.
- SetIValue(nFieldIndex: int, nValue: int) bool
Sets the value for the enumerated field from an integer.
- SetDValue(nFieldIndex: int, dValue: float) bool
Sets the value for the enumerated field from a double.
- SetSValue(nFieldIndex: int, strValue: int) bool
Sets the value for the enumerated field from a string.
- SetIntParameter(nPluginIndex: int, nValue: int) bool
Sets the index of the specific plugin parameter for the field from an integer value. The parameters are specific for the plugin object.
- SetDoubleParameter(nPluginIndex: int, dValue: float) bool
Sets the index of the specific plugin parameter for the field from a double value. The parameters are specific for the plugin object.
- SetBoolParameter(nPluginIndex: int, strValue: int) bool
Sets the index of the specific plugin parameter for the field from a boolean value. The parameters are specific for the plugin object.
- GetIntParameter(nPluginIndex: int) int
Returns an integer parameter for the enumerated field defined by the specific plugin parameter. The parameters are specific for the plugin object.
- GetDoubleParameter(nPluginIndex: int) float
Returns a double parameter for the enumerated field defined by the specific plugin parameter. The parameters are specific for the plugin object.
- GetBoolParameter(nPluginIndex: int) bool
Returns a boolean parameter for the enumerated field defined by the specific plugin parameter. The parameters are specific for the plugin object.
- GetIntOutput(nFieldIndex: int) int
Returns the integer output of the plugin itself for the field. The parameters are specific for the plugin object.