Package com.probe.service.sensor

Examples of com.probe.service.sensor.TemperatureDocument


   /**
    * Takes the temperature reading from the scanner and sets the Temperature resource property.
    */
   public void takeTemperatureReading(  )
   {
      TemperatureDocument tempDoc = TemperatureDocument.Factory.newInstance(  );

      IntegerMetric       tempMetric =
         (IntegerMetric) XmlBeansUtils.copyXmlBean( getProperties(  ).getTemperature(  ) ).changeType( IntegerMetric.type );
      tempMetric.setLastUpdated( Calendar.getInstance(  ) );
      tempMetric.setBigIntegerValue( new BigInteger( "" + m_temperatureScanner.getLastTemperature(  ) ) );
      tempDoc.setTemperature( tempMetric );

      try
      {
         updateResourceProperties( new SOAPElement[]
                                   {
View Full Code Here

TOP

Related Classes of com.probe.service.sensor.TemperatureDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.