YgslConfig.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. package com.mes.ygsl;
  2. public class YgslConfig {
  3. private int id;
  4. private int gunIndex;
  5. private String gunName;
  6. private String ipAddress;
  7. private int port;
  8. private int taskCount;
  9. private int enabled;
  10. private int autoSubmit;
  11. private String createTime;
  12. private String updateTime;
  13. public YgslConfig() {
  14. }
  15. public YgslConfig(int gunIndex, String gunName, String ipAddress, int port, int taskCount) {
  16. this.gunIndex = gunIndex;
  17. this.gunName = gunName;
  18. this.ipAddress = ipAddress;
  19. this.port = port;
  20. this.taskCount = taskCount;
  21. this.enabled = 1;
  22. this.autoSubmit = 1;
  23. }
  24. public int getId() {
  25. return id;
  26. }
  27. public void setId(int id) {
  28. this.id = id;
  29. }
  30. public int getGunIndex() {
  31. return gunIndex;
  32. }
  33. public void setGunIndex(int gunIndex) {
  34. this.gunIndex = gunIndex;
  35. }
  36. public String getGunName() {
  37. return gunName;
  38. }
  39. public void setGunName(String gunName) {
  40. this.gunName = gunName;
  41. }
  42. public String getIpAddress() {
  43. return ipAddress;
  44. }
  45. public void setIpAddress(String ipAddress) {
  46. this.ipAddress = ipAddress;
  47. }
  48. public int getPort() {
  49. return port;
  50. }
  51. public void setPort(int port) {
  52. this.port = port;
  53. }
  54. public int getTaskCount() {
  55. return taskCount;
  56. }
  57. public void setTaskCount(int taskCount) {
  58. this.taskCount = taskCount;
  59. }
  60. public int getEnabled() {
  61. return enabled;
  62. }
  63. public void setEnabled(int enabled) {
  64. this.enabled = enabled;
  65. }
  66. public int getAutoSubmit() {
  67. return autoSubmit;
  68. }
  69. public void setAutoSubmit(int autoSubmit) {
  70. this.autoSubmit = autoSubmit;
  71. }
  72. public String getCreateTime() {
  73. return createTime;
  74. }
  75. public void setCreateTime(String createTime) {
  76. this.createTime = createTime;
  77. }
  78. public String getUpdateTime() {
  79. return updateTime;
  80. }
  81. public void setUpdateTime(String updateTime) {
  82. this.updateTime = updateTime;
  83. }
  84. @Override
  85. public String toString() {
  86. return "YgslConfig{" +
  87. "id=" + id +
  88. ", gunIndex=" + gunIndex +
  89. ", gunName='" + gunName + '\'' +
  90. ", ipAddress='" + ipAddress + '\'' +
  91. ", port=" + port +
  92. ", taskCount=" + taskCount +
  93. ", enabled=" + enabled +
  94. ", autoSubmit=" + autoSubmit +
  95. '}';
  96. }
  97. }