A file named <moduleName>.<sdtName>.sdt.def.xml defines one or more sensor data types. This extension point requires a file pattern of "*.sdt.def.xml" in order to be recognized by the build system.
Example 24.10, “hackySdt_DevEvent.devevent.sdt.def.xml” illustrates an example SDT definition file for the DevEvent Sensor Data Type.
Example 24.10. hackySdt_DevEvent.devevent.sdt.def.xml
<sensordatatypes>
<sensordatatype name="DevEvent"
enabled="true"
wrapper="org.hackystat.sdt.devevent.sdt.DevEvent"
shellcommand="org.hackystat.sdt.devevent.sdt.DevEventShellCommand"
docstring="Represents timestamped developer events as a unified way of collecting "Dynamic Human" behaviors."
contact="Mike Paulding (mpauldin@hawaii.edu)">
<entryattribute name="path" />
<entryattribute name="type" />
</sensordatatype>
</sensordatatypes>
The definition file specifies the name of the sensor data type, its Shell Command, a short documentation string, and the set of fields (called entryattributes) defining its internal structure.