UPnP-Robair-PositionSensor1

From air
Jump to navigation Jump to search
<!-- Copyright Didier Donsez 2005 -->
<scpd>
   <serviceStateTable>
      <stateVariable>
         <name>CurrentLatitude</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>float</dataType>
      </stateVariable>
      <stateVariable>
         <name>CurrentLongitude</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>float</dataType>
      </stateVariable>
      <stateVariable>
         <name>CurrentAltitude</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>float</dataType>
      </stateVariable>
      <stateVariable>
         <name>CurrentSpeed</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>float</dataType>
      </stateVariable>
      <stateVariable>
         <name>CurrentTrack</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>float</dataType>
      </stateVariable>
      <stateVariable>
         <name>Timestamp</name>
         <sendEventsAttribute>yes</sendEventsAttribute>
         <dataType>dateTime</dataType>
      </stateVariable>
      <stateVariable>
         <Optional/>
         <name>Name</name>
         <sendEventsAttribute>no</sendEventsAttribute>
         <dataType>string</dataType>
         <defaultValue/>
      </stateVariable>
      <stateVariable>
         <name>Method</name>
         <sendEventsAttribute>no</sendEventsAttribute>
         <dataType>string</dataType>
         <allowedValueList>
            <allowedValue>sattelite</allowedValue>
            <allowedValue>rfid</allowedValue>
            <allowedValue>cellular</allowedValue>
            <allowedValue>magnetic</allowedValue>
         </allowedValueList>
      </stateVariable>
   </serviceStateTable>
   <actionList>
      <action>
         <name>GetCurrentPosition</name>
         <argumentList>
            <argument>
               <name>CurrentLatitude</name>
               <direction>out</direction>
               <relatedStateVariable>CurrentLatitude</relatedStateVariable>
            </argument>
            <argument>
               <name>CurrentLongitude</name>
               <direction>out</direction>
               <relatedStateVariable>CurrentLongitude</relatedStateVariable>
            </argument>
            <argument>
               <name>CurrentAltitude</name>
               <direction>out</direction>
               <relatedStateVariable>CurrentAltitude</relatedStateVariable>
            </argument>
            <argument>
               <name>CurrentSpeed</name>
               <direction>out</direction>
               <relatedStateVariable>CurrentSpeed</relatedStateVariable>
            </argument>
            <argument>
               <name>CurrentTrack</name>
               <direction>out</direction>
               <relatedStateVariable>CurrentTrack</relatedStateVariable>
            </argument>
            <argument>
               <name>Timestamp</name>
               <direction>out</direction>
               <relatedStateVariable>Timestamp</relatedStateVariable>
            </argument>
         </argumentList>
      </action>
      <action>
         <Optional/>
         <name>GetName</name>
         <argumentList>
            <argument>
               <name>CurrentName</name>
               <direction>out</direction>
               <relatedStateVariable>Name</relatedStateVariable>
               <retval/>
            </argument>
         </argumentList>
      </action>
      <action>
         <Optional/>
         <name>SetName</name>
         <argumentList>
            <argument>
               <name>NewName</name>
               <direction>in</direction>
               <relatedStateVariable>Name</relatedStateVariable>
            </argument>
         </argumentList>
      </action>
      <action>
         <Optional/>
         <name>GetMethod</name>
         <argumentList>
            <argument>
               <name>Method</name>
               <direction>out</direction>
               <relatedStateVariable>Method</relatedStateVariable>
               <retval/>
            </argument>
         </argumentList>
      </action>
   </actionList>
</scpd>