
io.relayr.java.model.aggregated.AggregatedReading Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for connecting to the Relayr Cloud
The newest version!
package io.relayr.java.model.aggregated;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.TimeZone;
import io.relayr.java.helper.observer.TimeZoneUtil;
public class AggregatedReading implements Serializable {
private String timestamp;
private double count;
private double avg;
private double min;
private double max;
private double totalCount;
private double boolCount;
private double numCount;
private double stringCount;
private double latLongCount;
private double xyzCount;
private double lengthAvg;
private HashMap stringValues;
private AggregatedBooleans boolValues;
private AggregatedLatLon latLonAvg;
private AggregatedXYZ xyzAvg;
/**
* Returns ISO timestamp in UTC timezone
*/
public String getUtcIsoTs() {
return timestamp;
}
/**
* Returns timestamp in local timezone
*/
public long getLocaleTs() {
return TimeZoneUtil.getLocaleTs(timestamp);
}
/**
* Returns timestamp in UTC timezone
*/
public long getUtcTs() {
return TimeZoneUtil.getUtcTs(timestamp);
}
public double getCount() {
return count;
}
public double getAvg() {
return avg;
}
public double getMin() {
return min;
}
public double getMax() {
return max;
}
public double getTotalCount() {
return totalCount;
}
public double getBoolCount() {
return boolCount;
}
public double getNumCount() {
return numCount;
}
public double getStringCount() {
return stringCount;
}
public double getLatLongCount() {
return latLongCount;
}
public double getXyzCount() {
return xyzCount;
}
public double getLengthAvg() {
return lengthAvg;
}
public HashMap getStringValues() {
return stringValues;
}
public AggregatedBooleans getBoolValues() {
return boolValues;
}
public AggregatedLatLon getLatLonAvg() {
return latLonAvg;
}
public AggregatedXYZ getXyzAvg() {
return xyzAvg;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy