|
Gocator Development Kit
|
The GDK framework constructs an instance of the associated tool class for each tool defined in the sensor job file or for each tool added using the Gocator UI or SDK.
The constuction invokes a tool's VInit method such that VInit is called just once in a tool's lifetime.
A tool instance exists until the tool is deleted/removed from the sensor, at which time the tool's VRelease method is called.
During a tool's lifetime between invoking VInit and VRelease, other virtual functions are called each of which can be overridden if required. The available tool virtual functions are:
Note that a GDK tool is in one of two states at any time:
While the sensor is stopped, the tools are in the setup state. In this state, the framework may call into the tool class for activities such as tool description, configuration initialization and configuration attribute updating. These activities are exposed by the tool class as class methods.
When the sensor begins to run, the framework will call the tool's VStart method. The VProcess method will be called whenever the sensor has generated a scan. A tool can then access the available data and for instance, send out measurement values in this method.
When the sensor is stopped, the tool's VStop method is called for each tool instance.