package com.qianwen.mdc.collect.entity.iotdb;
|
|
public class CollectData {
|
/**
|
* 时间戳
|
*/
|
private Long time;
|
/**
|
* 工位id
|
*/
|
private Long workstationId;
|
/**
|
* 数据名称,如Output,DeviceStatus等
|
*/
|
private String n;
|
/**
|
* 数据的值
|
*/
|
private String v;
|
|
|
public CollectData(Long time, Long workstationId, String n, String v) {
|
super();
|
this.time = time;
|
this.workstationId = workstationId;
|
this.n = n;
|
this.v = v;
|
}
|
public static class CollectDataBuilder {
|
private Long time;
|
private Long workstationId;
|
private String n;
|
private String v;
|
|
CollectDataBuilder() {
|
}
|
|
public CollectDataBuilder time(final Long time) {
|
this.time = time;
|
return this;
|
}
|
|
public CollectDataBuilder workstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public CollectDataBuilder n(final String n) {
|
this.n = n;
|
return this;
|
}
|
|
public CollectDataBuilder v(final String v) {
|
this.v = v;
|
return this;
|
}
|
|
|
public CollectData build() {
|
return new CollectData(this.time, this.workstationId, this.n, this.v);
|
}
|
}
|
|
public static CollectDataBuilder builder() {
|
return new CollectDataBuilder();
|
}
|
public Long getTime() {
|
return time;
|
}
|
public void setTime(Long time) {
|
this.time = time;
|
}
|
public Long getWorkstationId() {
|
return workstationId;
|
}
|
public void setWorkstationId(Long workstationId) {
|
this.workstationId = workstationId;
|
}
|
public String getN() {
|
return n;
|
}
|
public void setN(String n) {
|
this.n = n;
|
}
|
public String getV() {
|
return v;
|
}
|
public void setV(String v) {
|
this.v = v;
|
}
|
|
}
|