SensorLiveTextDto.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.xcgl.dataview.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. public class SensorLiveTextDto implements Serializable {
  5. private String device_id;
  6. private String device_code;
  7. private String device_name;
  8. private String sensor_id;
  9. private String sensor_code;
  10. private String sensor_name;
  11. private Double value;
  12. private Date valueTime;
  13. private DeviceStatus status;
  14. public String getDevice_id() {
  15. return device_id;
  16. }
  17. public void setDevice_id(String device_id) {
  18. this.device_id = device_id;
  19. }
  20. public String getDevice_code() {
  21. return device_code;
  22. }
  23. public void setDevice_code(String device_code) {
  24. this.device_code = device_code;
  25. }
  26. public String getDevice_name() {
  27. return device_name;
  28. }
  29. public void setDevice_name(String device_name) {
  30. this.device_name = device_name;
  31. }
  32. public String getSensor_id() {
  33. return sensor_id;
  34. }
  35. public void setSensor_id(String sensor_id) {
  36. this.sensor_id = sensor_id;
  37. }
  38. public String getSensor_code() {
  39. return sensor_code;
  40. }
  41. public void setSensor_code(String sensor_code) {
  42. this.sensor_code = sensor_code;
  43. }
  44. public String getSensor_name() {
  45. return sensor_name;
  46. }
  47. public void setSensor_name(String sensor_name) {
  48. this.sensor_name = sensor_name;
  49. }
  50. public Double getValue() {
  51. return value;
  52. }
  53. public void setValue(Double value) {
  54. this.value = value;
  55. }
  56. public Date getValueTime() {
  57. return valueTime;
  58. }
  59. public void setValueTime(Date valueTime) {
  60. this.valueTime = valueTime;
  61. }
  62. public DeviceStatus getStatus() {
  63. return status;
  64. }
  65. public void setStatus(DeviceStatus status) {
  66. this.status = status;
  67. }
  68. public String toString() {
  69. StringBuffer sb = new StringBuffer();
  70. sb.append("["+getValueTime()+"] : ");
  71. sb.append(getSensor_name() + "采集值");
  72. sb.append("[").append(getValue()).append("]");
  73. sb.append(" [").append(getStatus().toString()).append("]");
  74. return sb.toString();
  75. }
  76. }