blob: 12641b25b98acabc960d8d0c0b155008f75b880d [file] [log] [blame]
/*
* Copyright (c) 2021 Kentyou.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.historic.storage.reader.api;
import java.time.Instant;
import org.osgi.dto.DTO;
/**
* A simple object representing a spatio-temporal data point available in the database.
* Each spatial point is described by its timestamp, unique tagID, coordinates and value.
* Any database error during the retrieval of the spatio-temporal point is hold in the
* error field.
*/
public class SpatioTemporalDTO extends DTO{
public String error;
public Instant timestamp;
public int tagID;
public String latitude, longitude;
public String value;
}