TechParamsDTO.java 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. package com.lstznkj.groundstation.DTO.ui;
  2. import com.lstznkj.groundstation.model.crane.Device;
  3. import com.lstznkj.groundstation.model.crane.extra.TechParameter;
  4. import org.hibernate.annotations.CreationTimestamp;
  5. import org.hibernate.annotations.UpdateTimestamp;
  6. import javax.persistence.*;
  7. import java.sql.Timestamp;
  8. public class TechParamsDTO {
  9. private Integer id;
  10. private Timestamp createTimestamp;
  11. private Timestamp updateTimestamp;
  12. private String createTime;
  13. private String updateTime;
  14. //长度
  15. private double length;
  16. //长度
  17. private String lengthUnit;
  18. //宽度
  19. private double width;
  20. private String widthUnit;
  21. //最高点距柜面
  22. private double highestValueToRail;
  23. private String highestValueToRailUnit;
  24. //轨面标高
  25. private double railSurfaceHeight;
  26. private String railSurfaceHeightUnit;
  27. //大车缓冲器行程
  28. private double bigCarBufferDistance;
  29. private String bigCarBufferDistanceUnit;
  30. //小车车缓冲器行程
  31. private double smallCarBufferDistance;
  32. private String smallCarBufferDistanceUnit;
  33. //各机构电机功率总和
  34. private double powerGenerationgTotalCapacity;
  35. private String powerGenerationgTotalCapacityUnit;
  36. //主起重量
  37. private double mainHoistWeight;
  38. private String mainHoistWeightUnit;
  39. //副起重量
  40. private double deputyHoistWeight;
  41. private String deputyHoistWeightUnit;
  42. //大车跨度
  43. private double bigCarLength;
  44. private String bigCarLengthUnit;
  45. //小车车跨度
  46. private double smallCarLength;
  47. private String smallCarLengthUnit;
  48. //工作级别(M5)
  49. private String workLevel;
  50. //主起最小速度
  51. private double mainHoistMinSpeed;
  52. private String mainHoistMinSpeedUnit;
  53. //主起最大速度
  54. private double mainHoistMaxSpeed;
  55. private String mainHoistMaxSpeedUnit;
  56. //副起升最小速度
  57. private double deputyHoistMinSpeed;
  58. private String deputyHoistMinSpeedUnit;
  59. //副起升最大速度
  60. private double deputyHoistMaxSpeed;
  61. private String deputyHoistMaxSpeedUnit;
  62. //大车最小运行速度
  63. private double bigCarMinSpeed;
  64. private String bigCarminSpeedUnit;
  65. //大车最大运行速度
  66. private double bigCarMaxSpeed;
  67. private String bigCarMaxSpeedUnit;
  68. //小车车最小运行速度
  69. private double smallCarMinSpeed;
  70. private String smallCarminSpeedUnit;
  71. //小车最大运行速度
  72. private double smallCarMaxSpeed;
  73. private String smallCarMaxSpeedUnit;
  74. private double mainHoistHeight;
  75. private String mainHoistHeightUnit;
  76. private double deputyHoistHeight;
  77. private String deputyHoistHeightUnit;
  78. public TechParamsDTO(){
  79. }
  80. public TechParamsDTO(TechParameter techParameter){
  81. if(techParameter==null){
  82. return;
  83. }
  84. this.id= techParameter.getId();
  85. this.createTimestamp=techParameter.getCreateTimestamp();
  86. this.updateTimestamp=techParameter.getUpdateTimestamp();
  87. this.createTime=techParameter.getCreateTime();
  88. this.updateTime=techParameter.getUpdateTime();
  89. //长度
  90. this.length=techParameter.getLength();
  91. //长度
  92. this.lengthUnit=techParameter.getLengthUnit();
  93. //宽度
  94. this.width=techParameter.getWidth();
  95. this.widthUnit=techParameter.getWidthUnit();
  96. //最高点距柜面
  97. this.highestValueToRail=techParameter.getHighestValueToRail();
  98. this.highestValueToRailUnit=techParameter.getHighestValueToRailUnit();
  99. //轨面标高
  100. this.railSurfaceHeight= techParameter.getRailSurfaceHeight();
  101. this.railSurfaceHeightUnit=techParameter.getRailSurfaceHeightUnit();
  102. //大车缓冲器行程
  103. this.bigCarBufferDistance=techParameter.getBigCarBufferDistance();
  104. this.bigCarBufferDistanceUnit=techParameter.getBigCarBufferDistanceUnit();
  105. //小车车缓冲器行程
  106. this.smallCarBufferDistance=techParameter.getSmallCarBufferDistance();
  107. this.smallCarBufferDistanceUnit=techParameter.getSmallCarBufferDistanceUnit();
  108. //各机构电机功率总和
  109. this.powerGenerationgTotalCapacity=techParameter.getPowerGenerationgTotalCapacity();
  110. this.powerGenerationgTotalCapacityUnit=techParameter.getPowerGenerationgTotalCapacityUnit();
  111. //主起重量
  112. this.mainHoistWeight=techParameter.getMainHoistWeight();
  113. this.mainHoistWeightUnit=techParameter.getMainHoistWeightUnit();
  114. //副起重量
  115. this.deputyHoistWeight=techParameter.getDeputyHoistWeight();
  116. this.deputyHoistWeightUnit=techParameter.getDeputyHoistWeightUnit();
  117. //大车跨度
  118. this.bigCarLength=techParameter.getBigCarLength();
  119. this.bigCarLengthUnit=techParameter.getBigCarLengthUnit();
  120. //小车车跨度
  121. this.smallCarLength=techParameter.getSmallCarLength();
  122. this.smallCarLengthUnit=techParameter.getSmallCarLengthUnit();
  123. //工作级别(M5)
  124. this.workLevel=techParameter.getWorkLevel();
  125. //主起最小速度
  126. this.mainHoistMinSpeed=techParameter.getMainHoistMinSpeed();
  127. this.mainHoistMinSpeedUnit=techParameter.getMainHoistMinSpeedUnit();
  128. //主起最大速度
  129. this.mainHoistMaxSpeed=techParameter.getMainHoistMaxSpeed();
  130. this.mainHoistMaxSpeedUnit=techParameter.getMainHoistMaxSpeedUnit();
  131. //副起升最小速度
  132. this.deputyHoistMinSpeed=techParameter.getDeputyHoistMinSpeed();
  133. this.deputyHoistMinSpeedUnit=techParameter.getDeputyHoistMinSpeedUnit();
  134. //副起升最大速度
  135. this.deputyHoistMaxSpeed=techParameter.getDeputyHoistMaxSpeed();
  136. this.deputyHoistMaxSpeedUnit=techParameter.getDeputyHoistMaxSpeedUnit();
  137. //大车最小运行速度
  138. this.bigCarMinSpeed=techParameter.getBigCarMinSpeed();
  139. this.bigCarminSpeedUnit=techParameter.getBigCarminSpeedUnit();
  140. //大车最大运行速度
  141. this.bigCarMaxSpeed=techParameter.getBigCarMaxSpeed();
  142. this.bigCarMaxSpeedUnit=techParameter.getBigCarMaxSpeedUnit();
  143. //小车车最小运行速度
  144. this.smallCarMinSpeed=techParameter.getSmallCarMinSpeed();
  145. this.smallCarminSpeedUnit=techParameter.getSmallCarminSpeedUnit();
  146. //小车最大运行速度
  147. this.smallCarMaxSpeed=techParameter.getSmallCarMaxSpeed();
  148. this.smallCarMaxSpeedUnit=techParameter.getSmallCarMaxSpeedUnit();
  149. this.mainHoistHeight=techParameter.getMainHoistHeight();
  150. this.mainHoistHeightUnit=techParameter.getMainHoistHeightUnit();
  151. this.deputyHoistHeight=techParameter.getDeputyHoistHeight();
  152. this.deputyHoistHeightUnit=techParameter.getDeputyHoistHeightUnit();
  153. }
  154. public Integer getId() {
  155. return id;
  156. }
  157. public void setId(Integer id) {
  158. this.id = id;
  159. }
  160. public Timestamp getCreateTimestamp() {
  161. return createTimestamp;
  162. }
  163. public void setCreateTimestamp(Timestamp createTimestamp) {
  164. this.createTimestamp = createTimestamp;
  165. }
  166. public Timestamp getUpdateTimestamp() {
  167. return updateTimestamp;
  168. }
  169. public void setUpdateTimestamp(Timestamp updateTimestamp) {
  170. this.updateTimestamp = updateTimestamp;
  171. }
  172. public String getCreateTime() {
  173. return createTime;
  174. }
  175. public void setCreateTime(String createTime) {
  176. this.createTime = createTime;
  177. }
  178. public String getUpdateTime() {
  179. return updateTime;
  180. }
  181. public void setUpdateTime(String updateTime) {
  182. this.updateTime = updateTime;
  183. }
  184. public double getLength() {
  185. return length;
  186. }
  187. public void setLength(double length) {
  188. this.length = length;
  189. }
  190. public String getLengthUnit() {
  191. return lengthUnit;
  192. }
  193. public void setLengthUnit(String lengthUnit) {
  194. this.lengthUnit = lengthUnit;
  195. }
  196. public double getWidth() {
  197. return width;
  198. }
  199. public void setWidth(double width) {
  200. this.width = width;
  201. }
  202. public String getWidthUnit() {
  203. return widthUnit;
  204. }
  205. public void setWidthUnit(String widthUnit) {
  206. this.widthUnit = widthUnit;
  207. }
  208. public double getHighestValueToRail() {
  209. return highestValueToRail;
  210. }
  211. public void setHighestValueToRail(double highestValueToRail) {
  212. this.highestValueToRail = highestValueToRail;
  213. }
  214. public String getHighestValueToRailUnit() {
  215. return highestValueToRailUnit;
  216. }
  217. public void setHighestValueToRailUnit(String highestValueToRailUnit) {
  218. this.highestValueToRailUnit = highestValueToRailUnit;
  219. }
  220. public double getRailSurfaceHeight() {
  221. return railSurfaceHeight;
  222. }
  223. public void setRailSurfaceHeight(double railSurfaceHeight) {
  224. this.railSurfaceHeight = railSurfaceHeight;
  225. }
  226. public String getRailSurfaceHeightUnit() {
  227. return railSurfaceHeightUnit;
  228. }
  229. public void setRailSurfaceHeightUnit(String railSurfaceHeightUnit) {
  230. this.railSurfaceHeightUnit = railSurfaceHeightUnit;
  231. }
  232. public double getBigCarBufferDistance() {
  233. return bigCarBufferDistance;
  234. }
  235. public void setBigCarBufferDistance(double bigCarBufferDistance) {
  236. this.bigCarBufferDistance = bigCarBufferDistance;
  237. }
  238. public String getBigCarBufferDistanceUnit() {
  239. return bigCarBufferDistanceUnit;
  240. }
  241. public void setBigCarBufferDistanceUnit(String bigCarBufferDistanceUnit) {
  242. this.bigCarBufferDistanceUnit = bigCarBufferDistanceUnit;
  243. }
  244. public double getSmallCarBufferDistance() {
  245. return smallCarBufferDistance;
  246. }
  247. public void setSmallCarBufferDistance(double smallCarBufferDistance) {
  248. this.smallCarBufferDistance = smallCarBufferDistance;
  249. }
  250. public String getSmallCarBufferDistanceUnit() {
  251. return smallCarBufferDistanceUnit;
  252. }
  253. public void setSmallCarBufferDistanceUnit(String smallCarBufferDistanceUnit) {
  254. this.smallCarBufferDistanceUnit = smallCarBufferDistanceUnit;
  255. }
  256. public double getPowerGenerationgTotalCapacity() {
  257. return powerGenerationgTotalCapacity;
  258. }
  259. public void setPowerGenerationgTotalCapacity(double powerGenerationgTotalCapacity) {
  260. this.powerGenerationgTotalCapacity = powerGenerationgTotalCapacity;
  261. }
  262. public String getPowerGenerationgTotalCapacityUnit() {
  263. return powerGenerationgTotalCapacityUnit;
  264. }
  265. public void setPowerGenerationgTotalCapacityUnit(String powerGenerationgTotalCapacityUnit) {
  266. this.powerGenerationgTotalCapacityUnit = powerGenerationgTotalCapacityUnit;
  267. }
  268. public double getMainHoistWeight() {
  269. return mainHoistWeight;
  270. }
  271. public void setMainHoistWeight(double mainHoistWeight) {
  272. this.mainHoistWeight = mainHoistWeight;
  273. }
  274. public String getMainHoistWeightUnit() {
  275. return mainHoistWeightUnit;
  276. }
  277. public void setMainHoistWeightUnit(String mainHoistWeightUnit) {
  278. this.mainHoistWeightUnit = mainHoistWeightUnit;
  279. }
  280. public double getDeputyHoistWeight() {
  281. return deputyHoistWeight;
  282. }
  283. public void setDeputyHoistWeight(double deputyHoistWeight) {
  284. this.deputyHoistWeight = deputyHoistWeight;
  285. }
  286. public String getDeputyHoistWeightUnit() {
  287. return deputyHoistWeightUnit;
  288. }
  289. public void setDeputyHoistWeightUnit(String deputyHoistWeightUnit) {
  290. this.deputyHoistWeightUnit = deputyHoistWeightUnit;
  291. }
  292. public double getBigCarLength() {
  293. return bigCarLength;
  294. }
  295. public void setBigCarLength(double bigCarLength) {
  296. this.bigCarLength = bigCarLength;
  297. }
  298. public String getBigCarLengthUnit() {
  299. return bigCarLengthUnit;
  300. }
  301. public void setBigCarLengthUnit(String bigCarLengthUnit) {
  302. this.bigCarLengthUnit = bigCarLengthUnit;
  303. }
  304. public double getSmallCarLength() {
  305. return smallCarLength;
  306. }
  307. public void setSmallCarLength(double smallCarLength) {
  308. this.smallCarLength = smallCarLength;
  309. }
  310. public String getSmallCarLengthUnit() {
  311. return smallCarLengthUnit;
  312. }
  313. public void setSmallCarLengthUnit(String smallCarLengthUnit) {
  314. this.smallCarLengthUnit = smallCarLengthUnit;
  315. }
  316. public String getWorkLevel() {
  317. return workLevel;
  318. }
  319. public void setWorkLevel(String workLevel) {
  320. this.workLevel = workLevel;
  321. }
  322. public double getMainHoistMinSpeed() {
  323. return mainHoistMinSpeed;
  324. }
  325. public void setMainHoistMinSpeed(double mainHoistMinSpeed) {
  326. this.mainHoistMinSpeed = mainHoistMinSpeed;
  327. }
  328. public String getMainHoistMinSpeedUnit() {
  329. return mainHoistMinSpeedUnit;
  330. }
  331. public void setMainHoistMinSpeedUnit(String mainHoistMinSpeedUnit) {
  332. this.mainHoistMinSpeedUnit = mainHoistMinSpeedUnit;
  333. }
  334. public double getMainHoistMaxSpeed() {
  335. return mainHoistMaxSpeed;
  336. }
  337. public void setMainHoistMaxSpeed(double mainHoistMaxSpeed) {
  338. this.mainHoistMaxSpeed = mainHoistMaxSpeed;
  339. }
  340. public String getMainHoistMaxSpeedUnit() {
  341. return mainHoistMaxSpeedUnit;
  342. }
  343. public void setMainHoistMaxSpeedUnit(String mainHoistMaxSpeedUnit) {
  344. this.mainHoistMaxSpeedUnit = mainHoistMaxSpeedUnit;
  345. }
  346. public double getDeputyHoistMinSpeed() {
  347. return deputyHoistMinSpeed;
  348. }
  349. public void setDeputyHoistMinSpeed(double deputyHoistMinSpeed) {
  350. this.deputyHoistMinSpeed = deputyHoistMinSpeed;
  351. }
  352. public String getDeputyHoistMinSpeedUnit() {
  353. return deputyHoistMinSpeedUnit;
  354. }
  355. public void setDeputyHoistMinSpeedUnit(String deputyHoistMinSpeedUnit) {
  356. this.deputyHoistMinSpeedUnit = deputyHoistMinSpeedUnit;
  357. }
  358. public double getDeputyHoistMaxSpeed() {
  359. return deputyHoistMaxSpeed;
  360. }
  361. public void setDeputyHoistMaxSpeed(double deputyHoistMaxSpeed) {
  362. this.deputyHoistMaxSpeed = deputyHoistMaxSpeed;
  363. }
  364. public String getDeputyHoistMaxSpeedUnit() {
  365. return deputyHoistMaxSpeedUnit;
  366. }
  367. public void setDeputyHoistMaxSpeedUnit(String deputyHoistMaxSpeedUnit) {
  368. this.deputyHoistMaxSpeedUnit = deputyHoistMaxSpeedUnit;
  369. }
  370. public double getBigCarMinSpeed() {
  371. return bigCarMinSpeed;
  372. }
  373. public void setBigCarMinSpeed(double bigCarMinSpeed) {
  374. this.bigCarMinSpeed = bigCarMinSpeed;
  375. }
  376. public String getBigCarminSpeedUnit() {
  377. return bigCarminSpeedUnit;
  378. }
  379. public void setBigCarminSpeedUnit(String bigCarminSpeedUnit) {
  380. this.bigCarminSpeedUnit = bigCarminSpeedUnit;
  381. }
  382. public double getBigCarMaxSpeed() {
  383. return bigCarMaxSpeed;
  384. }
  385. public void setBigCarMaxSpeed(double bigCarMaxSpeed) {
  386. this.bigCarMaxSpeed = bigCarMaxSpeed;
  387. }
  388. public String getBigCarMaxSpeedUnit() {
  389. return bigCarMaxSpeedUnit;
  390. }
  391. public void setBigCarMaxSpeedUnit(String bigCarMaxSpeedUnit) {
  392. this.bigCarMaxSpeedUnit = bigCarMaxSpeedUnit;
  393. }
  394. public double getSmallCarMinSpeed() {
  395. return smallCarMinSpeed;
  396. }
  397. public void setSmallCarMinSpeed(double smallCarMinSpeed) {
  398. this.smallCarMinSpeed = smallCarMinSpeed;
  399. }
  400. public String getSmallCarminSpeedUnit() {
  401. return smallCarminSpeedUnit;
  402. }
  403. public void setSmallCarminSpeedUnit(String smallCarminSpeedUnit) {
  404. this.smallCarminSpeedUnit = smallCarminSpeedUnit;
  405. }
  406. public double getSmallCarMaxSpeed() {
  407. return smallCarMaxSpeed;
  408. }
  409. public void setSmallCarMaxSpeed(double smallCarMaxSpeed) {
  410. this.smallCarMaxSpeed = smallCarMaxSpeed;
  411. }
  412. public String getSmallCarMaxSpeedUnit() {
  413. return smallCarMaxSpeedUnit;
  414. }
  415. public void setSmallCarMaxSpeedUnit(String smallCarMaxSpeedUnit) {
  416. this.smallCarMaxSpeedUnit = smallCarMaxSpeedUnit;
  417. }
  418. public double getMainHoistHeight() {
  419. return mainHoistHeight;
  420. }
  421. public void setMainHoistHeight(double mainHoistHeight) {
  422. this.mainHoistHeight = mainHoistHeight;
  423. }
  424. public String getMainHoistHeightUnit() {
  425. return mainHoistHeightUnit;
  426. }
  427. public void setMainHoistHeightUnit(String mainHoistHeightUnit) {
  428. this.mainHoistHeightUnit = mainHoistHeightUnit;
  429. }
  430. public double getDeputyHoistHeight() {
  431. return deputyHoistHeight;
  432. }
  433. public void setDeputyHoistHeight(double deputyHoistHeight) {
  434. this.deputyHoistHeight = deputyHoistHeight;
  435. }
  436. public String getDeputyHoistHeightUnit() {
  437. return deputyHoistHeightUnit;
  438. }
  439. public void setDeputyHoistHeightUnit(String deputyHoistHeightUnit) {
  440. this.deputyHoistHeightUnit = deputyHoistHeightUnit;
  441. }
  442. }