Package com.openhouseautomation.model

Examples of com.openhouseautomation.model.ReadingHistory


    }
    StringTokenizer st1 = new StringTokenizer(key, ":");
    String sensortype = st1.nextToken();
    String sensorid = st1.nextToken();
    String readingdate = st1.nextToken();
    ReadingHistory rhist = new ReadingHistory();
    rhist.setSensor(Key.create(Sensor.class, Long.parseLong(sensorid)));
    rhist.setHigh(high);
    rhist.setLow(low);
    rhist.setTimestamp(convertStringDate(readingdate));
    deduplicateStore(rhist);
    // emit(rhist); // needs to emit an entity
  }
View Full Code Here


    }
    StringTokenizer st1 = new StringTokenizer(key, ":");
    String sensortype = st1.nextToken();
    String sensorid = st1.nextToken();
    String readingdate = st1.nextToken();
    ReadingHistory rhist = new ReadingHistory();
    rhist.setSensor(Key.create(Sensor.class, Long.parseLong(sensorid)));
    rhist.setAverage(Float.toString(totalval / readings));
    rhist.setTimestamp(convertStringDate(readingdate));
    deduplicateStore(rhist);
    // emit(rhist);
  }
View Full Code Here

    }
    StringTokenizer st1 = new StringTokenizer(key, ":");
    String sensortype = st1.nextToken();
    String sensorid = st1.nextToken();
    String readingdate = st1.nextToken();
    ReadingHistory rhist = new ReadingHistory();
    rhist.setSensor(Key.create(Sensor.class, Long.parseLong(sensorid)));
    rhist.setAverage(Float.toString(totalval));
    rhist.setTimestamp(convertStringDate(readingdate));
    deduplicateStore(rhist);
    // emit(rhist);
  }
View Full Code Here

    }
    StringTokenizer st1 = new StringTokenizer(key, ":");
    String sensortype = st1.nextToken();
    String sensorid = st1.nextToken();
    String readingdate = st1.nextToken();
    ReadingHistory rhist = new ReadingHistory();
    rhist.setSensor(Key.create(Sensor.class, Long.parseLong(sensorid)));
    rhist.setHigh(high);
    rhist.setTimestamp(convertStringDate(readingdate));
    deduplicateStore(rhist);
    // emit(rhist);
  }
View Full Code Here

TOP

Related Classes of com.openhouseautomation.model.ReadingHistory

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.