use of org.n52.shetland.ogc.om.TimeLocationValueTriple in project arctic-sea by 52North.
the class TrajectoryObservationTypeEncoderTest method getCategoricalObservation.
private OmObservation getCategoricalObservation() throws EncodingException, ParseException, DecodingException, XmlException, IOException {
MultiObservationValues<List<TimeLocationValueTriple>> multiObservationValues = new MultiObservationValues<List<TimeLocationValueTriple>>();
TLVTValue tlvtValue = new TLVTValue();
tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_1", "test_voc")));
tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_1", "test_voc")));
tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_3", "test_voc")));
tlvtValue.addValue(getTimeLocationValueTriple(new CategoryValue("test_4", "test_voc")));
multiObservationValues.setValue(tlvtValue);
OmObservation observation = createObservation();
observation.setValue(multiObservationValues);
return observation;
}
Aggregations