Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
Life Cycle

A measurement tool is in one of two states at any time:

  • Setup state
  • Running state

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 normally exposed by the tool class as static methods.

When the sensor begins to run, the framework will construct an instance of the associated tool class for each tool defined in the sensor job file, and call the GdkTool_Start method. The GdkTool_Process method will be called whenever the sensor has generated a scan. A tool accesses the available data and sends out measurement values in this method.

When the sensor is stopped, the GoTool_Stop method will be called first on each tool instance. The tool instances will also be destroyed at this point.