DNodeVal.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import javax.persistence.*;
  5. @Table(name = "d_node_val")
  6. public class DNodeVal extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private Integer id;
  9. /**
  10. * node Id
  11. */
  12. private Integer nid;
  13. /**
  14. * 事故编号
  15. */
  16. private Integer aid;
  17. /**
  18. * 水位
  19. */
  20. private Float val1;
  21. /**
  22. * 温度
  23. */
  24. private Float val2;
  25. /**
  26. * so2浓度
  27. */
  28. private Float val3;
  29. /**
  30. * co2浓度
  31. */
  32. private Float val4;
  33. /**
  34. * 名称
  35. */
  36. private String nname;
  37. /**
  38. * 类型
  39. */
  40. private String ntype;
  41. private static final long serialVersionUID = 1L;
  42. /**
  43. * @return id
  44. */
  45. public Integer getId() {
  46. return id;
  47. }
  48. /**
  49. * @param id
  50. */
  51. public void setId(Integer id) {
  52. this.id = id;
  53. }
  54. /**
  55. * 获取node Id
  56. *
  57. * @return nid - node Id
  58. */
  59. public Integer getNid() {
  60. return nid;
  61. }
  62. /**
  63. * 设置node Id
  64. *
  65. * @param nid node Id
  66. */
  67. public void setNid(Integer nid) {
  68. this.nid = nid;
  69. }
  70. /**
  71. * 获取事故编号
  72. *
  73. * @return aid - 事故编号
  74. */
  75. public Integer getAid() {
  76. return aid;
  77. }
  78. /**
  79. * 设置事故编号
  80. *
  81. * @param aid 事故编号
  82. */
  83. public void setAid(Integer aid) {
  84. this.aid = aid;
  85. }
  86. /**
  87. * 获取水位
  88. *
  89. * @return val1 - 水位
  90. */
  91. public Float getVal1() {
  92. return val1;
  93. }
  94. /**
  95. * 设置水位
  96. *
  97. * @param val1 水位
  98. */
  99. public void setVal1(Float val1) {
  100. this.val1 = val1;
  101. }
  102. /**
  103. * 获取温度
  104. *
  105. * @return val2 - 温度
  106. */
  107. public Float getVal2() {
  108. return val2;
  109. }
  110. /**
  111. * 设置温度
  112. *
  113. * @param val2 温度
  114. */
  115. public void setVal2(Float val2) {
  116. this.val2 = val2;
  117. }
  118. /**
  119. * 获取so2浓度
  120. *
  121. * @return val3 - so2浓度
  122. */
  123. public Float getVal3() {
  124. return val3;
  125. }
  126. /**
  127. * 设置so2浓度
  128. *
  129. * @param val3 so2浓度
  130. */
  131. public void setVal3(Float val3) {
  132. this.val3 = val3;
  133. }
  134. /**
  135. * 获取co2浓度
  136. *
  137. * @return val4 - co2浓度
  138. */
  139. public Float getVal4() {
  140. return val4;
  141. }
  142. /**
  143. * 设置co2浓度
  144. *
  145. * @param val4 co2浓度
  146. */
  147. public void setVal4(Float val4) {
  148. this.val4 = val4;
  149. }
  150. /**
  151. * 获取名称
  152. *
  153. * @return nname - 名称
  154. */
  155. public String getNname() {
  156. return nname;
  157. }
  158. /**
  159. * 设置名称
  160. *
  161. * @param nname 名称
  162. */
  163. public void setNname(String nname) {
  164. this.nname = nname == null ? null : nname.trim();
  165. }
  166. /**
  167. * 获取类型
  168. *
  169. * @return ntype - 类型
  170. */
  171. public String getNtype() {
  172. return ntype;
  173. }
  174. /**
  175. * 设置类型
  176. *
  177. * @param ntype 类型
  178. */
  179. public void setNtype(String ntype) {
  180. this.ntype = ntype == null ? null : ntype.trim();
  181. }
  182. }