mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestPersistence.java
private Observation createObservation()
    {   
        final Long timeStamp = new Date().getTime();
        final double temperatureCelsius = 37.0;
        
        final TemperatureCelsius temperatureMeasurement = new TemperatureCelsius();
        temperatureMeasurement.setValue(temperatureCelsius);
        
        final Weather weather = new Weather();
        weather.setTemperature(temperatureMeasurement);
        
        final Observation observation = new Observation();
        observation.setCreatedTimestamp(timeStamp);
        observation.setUuid(UUID.randomUUID());
        observation.setAssetUuid(ASSETUUID);
        observation.setAssetName("asset-name");
        observation.setAssetType(ASSETTYPE);
        observation.setWeather(weather);
        observation.setVersion(new Version(1,2));

        return observation;
    }
/**
     * Creates observation.
     * 
     * @return the observation
     */
Creates observation.

@return the observation
Creates observation . @return the observation
private Observation createObservation()
    {   
        final Long timeStamp = new Date().getTime();
        final double temperatureCelsius = 37.0;
        final TemperatureCelsius temperatureMeasurement = new TemperatureCelsius();
        temperatureMeasurement.setValue(temperatureCelsius);
        final Weather weather = new Weather();
        weather.setTemperature(temperatureMeasurement);
        final Observation observation = new Observation();
        observation.setCreatedTimestamp(timeStamp);
        observation.setUuid(UUID.randomUUID());
        observation.setAssetUuid(ASSETUUID);
        observation.setAssetName("asset-name");
        observation.setAssetType(ASSETTYPE);
        observation.setWeather(weather);
        observation.setVersion(new Version(1,2));
        return observation;
    }
private Observation createObservation ( ) { final Long timeStamp = new Date ( ) . getTime ( ) ; final double temperatureCelsius = 37.0 ; final TemperatureCelsius temperatureMeasurement = new TemperatureCelsius ( ) ; temperatureMeasurement . setValue ( temperatureCelsius ) ; final Weather weather = new Weather ( ) ; weather . setTemperature ( temperatureMeasurement ) ; final Observation observation = new Observation ( ) ; observation . setCreatedTimestamp ( timeStamp ) ; observation . setUuid ( UUID . randomUUID ( ) ) ; observation . setAssetUuid ( ASSETUUID ) ; observation . setAssetName ( "asset-name" ) ; observation . setAssetType ( ASSETTYPE ) ; observation . setWeather ( weather ) ; observation . setVersion ( new Version ( 1 , 2 ) ) ; return observation ; }
Creates observation.
Creates observation .