Skip to content

Template virtual sensor

ebiiii edited this page Oct 27, 2014 · 1 revision

Replace the '---' place holders with appropriate values.

<virtual-sensor name="---" priority="10" >
    <processing-class>
       <class-name>gsn.vsensor.BridgeVirtualSensor</class-name>
       <init-params>
          <param name="---">---</param>
       </init-params>
       <output-structure>
          <field name="---" type="binary:image/jpeg" />
       </output-structure>
    </processing-class>
    <description> --- </description>
    <addressing>
	<predicate key="geographical"> --- </predicate>
    </addressing>
    <storage history-size="---"/>
    <streams>
        <stream name="data">
            <source alias="---" storage-size="---" sampling-rate="1">
                <address wrapper="---">
                    <predicate key="name">---</predicate>
                </address>
                <query>  --- </query>
            </source>
            <source alias="---" storage-size="---" sampling-rate="1">
                <address wrapper="---">
                    <predicate key="name">---</predicate>
                </address>
                <query> --- </query>
            </source>
            <query> --- </query>
        </stream>
    </streams>
</virtual-sensor> 

Note: optional attributes and elements are possibly not listed herein; just commonly used parameters.

For an in-depth description see the current XML file describing the structure

Clone this wiki locally