Beispiel #1
0
 public static SensorObservation createSensorObservation(VSensorConfig vs, String field) {
   String fileName = generateMetaDataFileName(vs);
   SensorObservation o = new SensorObservation();
   o.setPropertyName(
       PropertiesReader.readProperty(fileName, "observation." + field + "." + "propertyName"));
   o.setUnit(PropertiesReader.readProperty(fileName, "observation." + field + "." + "unit"));
   System.out.println(o.toString());
   return o;
 }
Beispiel #2
0
  private Repository() {
    /*
     * Set sensor's author
     * If you don't have LSM account, please visit LSM Home page (http://lsm.deri.ie) to sign up
     */
    User user = new User();
    user.setUsername(PropertiesReader.readProperty(LSM_CONFIG_PROPERTIES_FILE, "username"));
    user.setPass(PropertiesReader.readProperty(LSM_CONFIG_PROPERTIES_FILE, "password"));

    logger.warn(
        "username : "******"username"));
    logger.warn(
        "password : "******"password"));
  }