com.envision.event.bean.DataPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eos-event-api-new Show documentation
Show all versions of eos-event-api-new Show documentation
1.0 初版
1.1 增加了event的flag和custom_attr字段。
The newest version!
package com.envision.event.bean;
import java.util.Map;
/**
* 数据点
*
* @author kang.ouyang
*
*/
public class DataPoint {
private String deviceID;
private String siteID;
private String pointID;
private String domainID;
private String parentDomainID;
private String customerID;
// 云端时间,点到达云端的时间
private long cloudTime;
// 设备时间,点在设备上打的原始时间戳(0代表无设备时间)
private long deviceTime;
private String value;
// 设备类型
private String deviceType;
// 属性集合
private Map attrs;
public String getDeviceID() {
return deviceID;
}
public void setDeviceID(String deviceID) {
this.deviceID = deviceID;
}
public String getSiteID() {
return siteID;
}
public void setSiteID(String siteID) {
this.siteID = siteID;
}
public String getPointID() {
return pointID;
}
public void setPointID(String pointID) {
this.pointID = pointID;
}
public String getDomainID() {
return domainID;
}
public void setDomainID(String domainID) {
this.domainID = domainID;
}
public String getParentDomainID() {
return parentDomainID;
}
public void setParentDomainID(String parentDomainID) {
this.parentDomainID = parentDomainID;
}
public long getCloudTime() {
return cloudTime;
}
public void setCloudTime(long cloudTime) {
this.cloudTime = cloudTime;
}
public long getDeviceTime() {
return deviceTime;
}
public void setDeviceTime(long deviceTime) {
this.deviceTime = deviceTime;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getCustomerID() {
return customerID;
}
public void setCustomerID(String customerID) {
this.customerID = customerID;
}
public String getDeviceType() {
return deviceType;
}
public void setDeviceType(String deviceType) {
this.deviceType = deviceType;
}
public Map getAttrs() {
return attrs;
}
public void setAttrs(Map attrs) {
this.attrs = attrs;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("{dev:").append(deviceID).append(",devType:").append(deviceType).append(",customer:")
.append(customerID).append(",site:").append(siteID).append(",point:").append(pointID).append(",")
.append(",val:").append(value).append(",domain:").append(domainID).append(",parentDomain:")
.append(parentDomainID).append(",devTime:").append(deviceTime).append(",clouldTime:").append(cloudTime)
.append("}");
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy