langjie-m-play 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/domain/JsonRpcConstant.d.ts +1 -0
  2. package/domain/JsonRpcConstant.js +1 -0
  3. package/domain/ReadDataDO.d.ts +1 -0
  4. package/domain/enums/JsonRpcMethodEnum.d.ts +4 -0
  5. package/domain/enums/JsonRpcMethodEnum.js +4 -0
  6. package/package.json +9 -1
  7. package/service/GtcClient.d.ts +18 -0
  8. package/service/GtcClient.js +36 -0
  9. package/service/MPlay.d.ts +16 -0
  10. package/service/MPlay.js +27 -0
  11. package/src/domain/AtsInfo.d.ts +0 -15
  12. package/src/domain/AtsInfo.js +0 -1
  13. package/src/domain/AtsLoadResponse.d.ts +0 -14
  14. package/src/domain/AtsLoadResponse.js +0 -1
  15. package/src/domain/DiDo.d.ts +0 -6
  16. package/src/domain/DiDo.js +0 -1
  17. package/src/domain/GtcCallBackMsg.d.ts +0 -10
  18. package/src/domain/GtcCallBackMsg.js +0 -1
  19. package/src/domain/JsonRpcConstant.d.ts +0 -30
  20. package/src/domain/JsonRpcConstant.js +0 -30
  21. package/src/domain/JsonRpcError.d.ts +0 -6
  22. package/src/domain/JsonRpcError.js +0 -1
  23. package/src/domain/JsonRpcRequest.d.ts +0 -13
  24. package/src/domain/JsonRpcRequest.js +0 -1
  25. package/src/domain/JsonRpcResponse.d.ts +0 -15
  26. package/src/domain/JsonRpcResponse.js +0 -1
  27. package/src/domain/NodeInfo.d.ts +0 -11
  28. package/src/domain/NodeInfo.js +0 -1
  29. package/src/domain/OutMsg.d.ts +0 -9
  30. package/src/domain/OutMsg.js +0 -1
  31. package/src/domain/ProductInfo.d.ts +0 -4
  32. package/src/domain/ProductInfo.js +0 -1
  33. package/src/domain/ReadDataDO.d.ts +0 -9
  34. package/src/domain/ReadDataDO.js +0 -1
  35. package/src/domain/RuntimeInfo.d.ts +0 -13
  36. package/src/domain/RuntimeInfo.js +0 -1
  37. package/src/domain/SubscribeDatagramResult.d.ts +0 -7
  38. package/src/domain/SubscribeDatagramResult.js +0 -1
  39. package/src/domain/VinChnl.d.ts +0 -12
  40. package/src/domain/VinChnl.js +0 -1
  41. package/src/domain/VtcMsgTypeConstant.d.ts +0 -46
  42. package/src/domain/VtcMsgTypeConstant.js +0 -46
  43. package/src/domain/ats/AtsStruct.d.ts +0 -22
  44. package/src/domain/ats/AtsStruct.js +0 -1
  45. package/src/domain/ats/event/AtsActionEnteredEventContent.d.ts +0 -6
  46. package/src/domain/ats/event/AtsActionEnteredEventContent.js +0 -1
  47. package/src/domain/ats/event/AtsCapturedEventContent.d.ts +0 -5
  48. package/src/domain/ats/event/AtsCapturedEventContent.js +0 -1
  49. package/src/domain/ats/event/AtsLoadEventContent.d.ts +0 -4
  50. package/src/domain/ats/event/AtsLoadEventContent.js +0 -1
  51. package/src/domain/ats/event/BaseAtsEvent.d.ts +0 -8
  52. package/src/domain/ats/event/BaseAtsEvent.js +0 -1
  53. package/src/domain/enums/AtsEventEnum.d.ts +0 -9
  54. package/src/domain/enums/AtsEventEnum.js +0 -10
  55. package/src/domain/enums/CommunicationTypeEnum.d.ts +0 -7
  56. package/src/domain/enums/CommunicationTypeEnum.js +0 -8
  57. package/src/domain/enums/ConnectStatusEnum.d.ts +0 -7
  58. package/src/domain/enums/ConnectStatusEnum.js +0 -8
  59. package/src/domain/enums/InterRoleEnum.d.ts +0 -8
  60. package/src/domain/enums/InterRoleEnum.js +0 -9
  61. package/src/domain/enums/JsonRpcEventEnum.d.ts +0 -12
  62. package/src/domain/enums/JsonRpcEventEnum.js +0 -13
  63. package/src/domain/enums/JsonRpcMethodEnum.d.ts +0 -90
  64. package/src/domain/enums/JsonRpcMethodEnum.js +0 -92
  65. package/src/domain/enums/JsonRpcResponseCodeEnum.d.ts +0 -22
  66. package/src/domain/enums/JsonRpcResponseCodeEnum.js +0 -23
  67. package/src/domain/enums/MixGramTypeEnum.d.ts +0 -11
  68. package/src/domain/enums/MixGramTypeEnum.js +0 -12
  69. package/src/domain/enums/MsgEventTypeEnum.d.ts +0 -8
  70. package/src/domain/enums/MsgEventTypeEnum.js +0 -9
  71. package/src/domain/enums/MsgSourceEnum.d.ts +0 -4
  72. package/src/domain/enums/MsgSourceEnum.js +0 -5
  73. package/src/domain/enums/RunStateEnum.d.ts +0 -9
  74. package/src/domain/enums/RunStateEnum.js +0 -10
  75. package/src/domain/enums/ServiceTypeEnum.d.ts +0 -7
  76. package/src/domain/enums/ServiceTypeEnum.js +0 -8
  77. package/src/domain/enums/StationEventEnum.d.ts +0 -4
  78. package/src/domain/enums/StationEventEnum.js +0 -5
  79. package/src/domain/server/PlayAccountDO.d.ts +0 -9
  80. package/src/domain/server/PlayAccountDO.js +0 -1
  81. package/src/domain/server/PlayAccountPageDO.d.ts +0 -5
  82. package/src/domain/server/PlayAccountPageDO.js +0 -1
  83. package/src/domain/server/PlayAccountQueryDO.d.ts +0 -4
  84. package/src/domain/server/PlayAccountQueryDO.js +0 -1
  85. package/src/domain/server/PlayReleaseSubmit.d.ts +0 -3
  86. package/src/domain/server/PlayReleaseSubmit.js +0 -1
  87. package/src/domain/server/PlayUseSubmit.d.ts +0 -6
  88. package/src/domain/server/PlayUseSubmit.js +0 -1
  89. package/src/domain/server/RequestServerConfig.d.ts +0 -5
  90. package/src/domain/server/RequestServerConfig.js +0 -1
  91. package/src/index.d.ts +0 -23
  92. package/src/index.js +0 -15
  93. package/src/server/RemoteWebService.d.ts +0 -14
  94. package/src/server/RemoteWebService.js +0 -79
  95. package/src/service/GtcClient.d.ts +0 -377
  96. package/src/service/GtcClient.js +0 -686
  97. package/src/service/GtcServiceFactory.d.ts +0 -12
  98. package/src/service/GtcServiceFactory.js +0 -25
  99. package/src/service/GtcServiceSocketIOImpl.d.ts +0 -27
  100. package/src/service/GtcServiceSocketIOImpl.js +0 -149
  101. package/src/service/GtcServiceWebSocketImpl.d.ts +0 -33
  102. package/src/service/GtcServiceWebSocketImpl.js +0 -222
  103. package/src/service/IGtcService.d.ts +0 -16
  104. package/src/service/IGtcService.js +0 -1
  105. package/src/service/MPlay.d.ts +0 -217
  106. package/src/service/MPlay.js +0 -601
  107. package/src/service/StationSocketIOService.d.ts +0 -12
  108. package/src/service/StationSocketIOService.js +0 -75
  109. package/src/utils/Base64Util.d.ts +0 -5
  110. package/src/utils/Base64Util.js +0 -16
  111. package/src/utils/DataGramUtil.d.ts +0 -21
  112. package/src/utils/DataGramUtil.js +0 -37
  113. package/src/utils/Dvb.d.ts +0 -13
  114. package/src/utils/Dvb.js +0 -174
  115. package/src/utils/IdGenerator.d.ts +0 -7
  116. package/src/utils/IdGenerator.js +0 -11
  117. package/src/utils/NPack.d.ts +0 -53
  118. package/src/utils/NPack.js +0 -261
  119. package/src/utils/PubSubUtil.d.ts +0 -7
  120. package/src/utils/PubSubUtil.js +0 -21
  121. package/src/utils/RemoteBinData.d.ts +0 -46
  122. package/src/utils/RemoteBinData.js +0 -198
  123. package/src/utils/ServerConfigUtil.d.ts +0 -10
  124. package/src/utils/ServerConfigUtil.js +0 -26
  125. package/src/utils/TaskSynchronizer.d.ts +0 -8
  126. package/src/utils/TaskSynchronizer.js +0 -19
  127. package/src/utils/ThreadPoolUtil.d.ts +0 -48
  128. package/src/utils/ThreadPoolUtil.js +0 -299
  129. package/src/utils/enums/SubKeyEnum.d.ts +0 -16
  130. package/src/utils/enums/SubKeyEnum.js +0 -17
@@ -27,4 +27,5 @@ export declare class JsonRpcConstant {
27
27
  static readonly ACTUAL_TAG = "actualTag";
28
28
  static readonly SYNC_MODE = "syncMode";
29
29
  static readonly ACTUAL_CTRL_TAG = "actualCtrlTag";
30
+ static readonly CYCLE_COUNT = "cycleCount";
30
31
  }
@@ -28,3 +28,4 @@ JsonRpcConstant.FORMAL_NAME = "formalName";
28
28
  JsonRpcConstant.ACTUAL_TAG = "actualTag";
29
29
  JsonRpcConstant.SYNC_MODE = "syncMode";
30
30
  JsonRpcConstant.ACTUAL_CTRL_TAG = "actualCtrlTag";
31
+ JsonRpcConstant.CYCLE_COUNT = "cycleCount";
@@ -6,4 +6,5 @@ export interface ReadDataDO {
6
6
  DoList: Array<DiDo>;
7
7
  TimeArr: number[];
8
8
  DataGramList: Array<string[]>;
9
+ DynaDataGramList: Array<string[]>;
9
10
  }
@@ -63,6 +63,10 @@ export declare enum JsonRpcMethodEnum {
63
63
  REPLY_ATS_SUBSCRIBE_FOR_DATA_GRAM = "R_REPLY_PACK.atsSubscribeForDatagram",
64
64
  CALL_UNSUBSCRIBE_FOR_DATA_GRAM = "R_CALL_PACK.unsubscribeForDatagram",
65
65
  REPLY_UNSUBSCRIBE_FOR_DATA_GRAM = "R_REPLY_PACK.unsubscribeForDatagram",
66
+ CALL_ATS_SUBSCRIBE_FOR_DYNA_DATA_GRAM = "R_CALL_PACK.atsSubscribeForDynaDatagram",
67
+ REPLY_ATS_SUBSCRIBE_FOR_DYNA_DATA_GRAM = "R_REPLY_PACK.atsSubscribeForDynaDatagram",
68
+ CALL_ATS_SET_CYCLE_COUNT = "R_CALL_PACK.atsSetCycleCount",
69
+ REPLY_ATS_SET_CYCLE_COUNT = "R_REPLY_PACK.atsSetCycleCount",
66
70
  CALL_SYNC_RUNTIME_INFO = "R_CALL_PACK.syncRuntimeInfo",
67
71
  REPLY_SYNC_RUNTIME_INFO = "R_REPLY_PACK.syncRuntimeInfo",
68
72
  CALL_UPDATE_NOTE = "R_CALL_PACK.updateNote",
@@ -65,6 +65,10 @@ export var JsonRpcMethodEnum;
65
65
  JsonRpcMethodEnum["REPLY_ATS_SUBSCRIBE_FOR_DATA_GRAM"] = "R_REPLY_PACK.atsSubscribeForDatagram";
66
66
  JsonRpcMethodEnum["CALL_UNSUBSCRIBE_FOR_DATA_GRAM"] = "R_CALL_PACK.unsubscribeForDatagram";
67
67
  JsonRpcMethodEnum["REPLY_UNSUBSCRIBE_FOR_DATA_GRAM"] = "R_REPLY_PACK.unsubscribeForDatagram";
68
+ JsonRpcMethodEnum["CALL_ATS_SUBSCRIBE_FOR_DYNA_DATA_GRAM"] = "R_CALL_PACK.atsSubscribeForDynaDatagram";
69
+ JsonRpcMethodEnum["REPLY_ATS_SUBSCRIBE_FOR_DYNA_DATA_GRAM"] = "R_REPLY_PACK.atsSubscribeForDynaDatagram";
70
+ JsonRpcMethodEnum["CALL_ATS_SET_CYCLE_COUNT"] = "R_CALL_PACK.atsSetCycleCount";
71
+ JsonRpcMethodEnum["REPLY_ATS_SET_CYCLE_COUNT"] = "R_REPLY_PACK.atsSetCycleCount";
68
72
  JsonRpcMethodEnum["CALL_SYNC_RUNTIME_INFO"] = "R_CALL_PACK.syncRuntimeInfo";
69
73
  JsonRpcMethodEnum["REPLY_SYNC_RUNTIME_INFO"] = "R_REPLY_PACK.syncRuntimeInfo";
70
74
  JsonRpcMethodEnum["CALL_UPDATE_NOTE"] = "R_CALL_PACK.updateNote";
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "langjie-m-play",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
+ "files": [
8
+ "index.js",
9
+ "index.d.ts",
10
+ "domain/**/*",
11
+ "service/**/*",
12
+ "server/**/*",
13
+ "utils/**/*"
14
+ ],
7
15
  "scripts": {
8
16
  "build": "tsc"
9
17
  },
@@ -118,6 +118,24 @@ export declare class GtcClient {
118
118
  * @param tags 通道列表 Time,Event,Disp,Load
119
119
  */
120
120
  static atsSubscribeForDatagram(slaveInstId: string | null, serviceType: ServiceTypeEnum, atsHandle: number, tags: string): Promise<Array<SubscribeDatagramResult>>;
121
+ /**
122
+ * ATS订阅动态数据流
123
+ *
124
+ * @param slaveInstId 从机id
125
+ * @param serviceType 服务类型
126
+ * @param atsHandle ats句柄
127
+ * @param tags 通道列表 Disp_Min,Disp_Max,Cycle
128
+ */
129
+ static atsSubscribeForDynaDatagram(slaveInstId: string | null, serviceType: ServiceTypeEnum, atsHandle: number, tags: string): Promise<void>;
130
+ /**
131
+ * 设置初始循环次数
132
+ *
133
+ * @param slaveInstId 从机id
134
+ * @param serviceType 服务类型
135
+ * @param atsHandle ats句柄
136
+ * @param cycleCount 循环次数
137
+ */
138
+ static atsSetCycleCount(slaveInstId: string | null, serviceType: ServiceTypeEnum, atsHandle: number, cycleCount: number): Promise<void>;
121
139
  /**
122
140
  * 取消订阅通道数据流
123
141
  *
@@ -202,6 +202,42 @@ export class GtcClient {
202
202
  return GtcServiceFactory.getGtcService(slaveInstId).call(request);
203
203
  });
204
204
  }
205
+ /**
206
+ * ATS订阅动态数据流
207
+ *
208
+ * @param slaveInstId 从机id
209
+ * @param serviceType 服务类型
210
+ * @param atsHandle ats句柄
211
+ * @param tags 通道列表 Disp_Min,Disp_Max,Cycle
212
+ */
213
+ static atsSubscribeForDynaDatagram(slaveInstId, serviceType, atsHandle, tags) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ const request = GtcClient.generateRequest(JsonRpcMethodEnum.CALL_ATS_SUBSCRIBE_FOR_DYNA_DATA_GRAM, slaveInstId);
216
+ request.params[JsonRpcConstant.SERVICE_TYPE] = serviceType;
217
+ request.params[JsonRpcConstant.VIN_TAGS] = tags;
218
+ request.params[JsonRpcConstant.CTRL_INDEX] = 0;
219
+ request.params[JsonRpcConstant.ATS_HANDLE] = atsHandle;
220
+ return GtcServiceFactory.getGtcService(slaveInstId).call(request);
221
+ });
222
+ }
223
+ /**
224
+ * 设置初始循环次数
225
+ *
226
+ * @param slaveInstId 从机id
227
+ * @param serviceType 服务类型
228
+ * @param atsHandle ats句柄
229
+ * @param cycleCount 循环次数
230
+ */
231
+ static atsSetCycleCount(slaveInstId, serviceType, atsHandle, cycleCount) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const request = GtcClient.generateRequest(JsonRpcMethodEnum.CALL_ATS_SET_CYCLE_COUNT, slaveInstId);
234
+ request.params[JsonRpcConstant.SERVICE_TYPE] = serviceType;
235
+ request.params[JsonRpcConstant.CYCLE_COUNT] = cycleCount;
236
+ request.params[JsonRpcConstant.CTRL_INDEX] = 0;
237
+ request.params[JsonRpcConstant.ATS_HANDLE] = atsHandle;
238
+ return GtcServiceFactory.getGtcService(slaveInstId).call(request);
239
+ });
240
+ }
205
241
  /**
206
242
  * 取消订阅通道数据流
207
243
  *
@@ -19,6 +19,7 @@ export declare class MPlay {
19
19
  private readonly serviceType;
20
20
  private readonly ctrlIndex;
21
21
  private dataGramCallBack;
22
+ private dynaDataGramCallBack;
22
23
  private atsEventCallbackMap;
23
24
  private atsHandleNameMap;
24
25
  private atsStartedMark;
@@ -214,4 +215,19 @@ export declare class MPlay {
214
215
  * @param ctrlTag controllerName
215
216
  */
216
217
  getHotAtsId(ctrlTag: string): Promise<number>;
218
+ /**
219
+ * Get dynamic data stream
220
+ *
221
+ * @param atsHandle
222
+ * @param tags
223
+ * @param fn
224
+ */
225
+ atsSubscribeForDynaDatagram(atsHandle: number, tags: string, fn: (data: Array<Array<string>>) => void): Promise<void>;
226
+ /**
227
+ * Set cycle count
228
+ *
229
+ * @param atsHandle
230
+ * @param cycleCount
231
+ */
232
+ atsSetCycleCount(atsHandle: number, cycleCount: number): Promise<void>;
217
233
  }
package/service/MPlay.js CHANGED
@@ -96,6 +96,9 @@ export class MPlay {
96
96
  if (this.dataGramCallBack) {
97
97
  this.dataGramCallBack(data.data.DataGramList);
98
98
  }
99
+ if (this.dynaDataGramCallBack && data.data.DynaDataGramList.length > 0) {
100
+ this.dynaDataGramCallBack(data.data.DynaDataGramList);
101
+ }
99
102
  });
100
103
  // 这个考虑废弃,应该换成别的机制
101
104
  GtcClient.listenEventMsg(this.instId, this.serviceType, this.ctrlIndex, (msg) => {
@@ -602,6 +605,30 @@ export class MPlay {
602
605
  return yield GtcClient.getHotAtsId(this.instId, this.serviceType, this.ctrlIndex, ctrlTag);
603
606
  });
604
607
  }
608
+ /**
609
+ * Get dynamic data stream
610
+ *
611
+ * @param atsHandle
612
+ * @param tags
613
+ * @param fn
614
+ */
615
+ atsSubscribeForDynaDatagram(atsHandle, tags, fn) {
616
+ return __awaiter(this, void 0, void 0, function* () {
617
+ this.dynaDataGramCallBack = fn;
618
+ yield GtcClient.atsSubscribeForDynaDatagram(this.instId, this.serviceType, atsHandle, tags);
619
+ });
620
+ }
621
+ /**
622
+ * Set cycle count
623
+ *
624
+ * @param atsHandle
625
+ * @param cycleCount
626
+ */
627
+ atsSetCycleCount(atsHandle, cycleCount) {
628
+ return __awaiter(this, void 0, void 0, function* () {
629
+ yield GtcClient.atsSetCycleCount(this.instId, this.serviceType, atsHandle, cycleCount);
630
+ });
631
+ }
605
632
  }
606
633
  MPlay.isOperator = false;
607
634
  MPlay.AND = "AND";
@@ -1,15 +0,0 @@
1
- export interface AtsInfo {
2
- handle: number;
3
- atsName: string;
4
- atsParams: Record<string, any>;
5
- capturedParams: Record<string, any>;
6
- started: boolean;
7
- atsFile: string;
8
- ctrlTag: string;
9
- atsAxisActionList: Array<AtsAxisAction>;
10
- }
11
- export interface AtsAxisAction {
12
- axisIndex: number;
13
- actionList: Array<string>;
14
- currentActionTag: string;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- export interface AtsLoadResponse<K extends string, V> {
2
- atsHandle: number;
3
- atsParam: Record<K, V>;
4
- capturedParams: Record<K, V>;
5
- atsFile: string;
6
- ctrlTag: string;
7
- atsName: string;
8
- atsAxisActionList: Array<SimpleAxisAction>;
9
- }
10
- export interface SimpleAxisAction {
11
- axisIndex: number;
12
- actionList: Array<string>;
13
- currentActionTag: string;
14
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export interface DiDo {
2
- LastVal: number;
3
- ValArray: number[];
4
- BindHandle: number;
5
- Caption: string;
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { MsgSourceEnum } from "./enums/MsgSourceEnum";
2
- import { RunStateEnum } from "./enums/RunStateEnum";
3
- export interface GtcCallBackMsg {
4
- hSrc: number;
5
- msgId: number;
6
- ms: number;
7
- msg: string;
8
- source: MsgSourceEnum;
9
- runState: RunStateEnum;
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,30 +0,0 @@
1
- /**
2
- * rpc通讯参数常量
3
- */
4
- export declare class JsonRpcConstant {
5
- static readonly SLAVE_INST_ID = "slaveInstId";
6
- static readonly CTRL_INDEX = "ctrlIndex";
7
- static readonly SERVICE_TYPE = "serviceType";
8
- static readonly CHANNEL_HANDLE = "channelHandle";
9
- static readonly SPEED = "speed";
10
- static readonly LOW_LIMIT = "lowLimit";
11
- static readonly UP_LIMIT = "upLimit";
12
- static readonly VALUE = "value";
13
- static readonly SWITCH_CODE = "switchCode";
14
- static readonly OPEN_STATUS = "openStatus";
15
- static readonly ATS_SCRIPT = "atsScript";
16
- static readonly ATS_HANDLE = "atsHandle";
17
- static readonly ATS_BUTTON_CODE = "atsButtonCode";
18
- static readonly ATS_PARAM_KEYS = "atsParamKeys";
19
- static readonly ATS_PARAM_VALUES = "atsParamValues";
20
- static readonly VIN_TAGS = "vinTags";
21
- static readonly FILE_NAME = "fileName";
22
- static readonly FILE_CONTENT = "fileContent";
23
- static readonly NOTE = "note";
24
- static readonly ROLE = "role";
25
- static readonly CONTROLLER_NAME = "controllerName";
26
- static readonly FORMAL_NAME = "formalName";
27
- static readonly ACTUAL_TAG = "actualTag";
28
- static readonly SYNC_MODE = "syncMode";
29
- static readonly ACTUAL_CTRL_TAG = "actualCtrlTag";
30
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * rpc通讯参数常量
3
- */
4
- export class JsonRpcConstant {
5
- }
6
- JsonRpcConstant.SLAVE_INST_ID = "slaveInstId";
7
- JsonRpcConstant.CTRL_INDEX = "ctrlIndex";
8
- JsonRpcConstant.SERVICE_TYPE = "serviceType";
9
- JsonRpcConstant.CHANNEL_HANDLE = "channelHandle";
10
- JsonRpcConstant.SPEED = "speed";
11
- JsonRpcConstant.LOW_LIMIT = "lowLimit";
12
- JsonRpcConstant.UP_LIMIT = "upLimit";
13
- JsonRpcConstant.VALUE = "value";
14
- JsonRpcConstant.SWITCH_CODE = "switchCode";
15
- JsonRpcConstant.OPEN_STATUS = "openStatus";
16
- JsonRpcConstant.ATS_SCRIPT = "atsScript";
17
- JsonRpcConstant.ATS_HANDLE = "atsHandle";
18
- JsonRpcConstant.ATS_BUTTON_CODE = "atsButtonCode";
19
- JsonRpcConstant.ATS_PARAM_KEYS = "atsParamKeys";
20
- JsonRpcConstant.ATS_PARAM_VALUES = "atsParamValues";
21
- JsonRpcConstant.VIN_TAGS = "vinTags";
22
- JsonRpcConstant.FILE_NAME = "fileName";
23
- JsonRpcConstant.FILE_CONTENT = "fileContent";
24
- JsonRpcConstant.NOTE = "note";
25
- JsonRpcConstant.ROLE = "role";
26
- JsonRpcConstant.CONTROLLER_NAME = "controllerName";
27
- JsonRpcConstant.FORMAL_NAME = "formalName";
28
- JsonRpcConstant.ACTUAL_TAG = "actualTag";
29
- JsonRpcConstant.SYNC_MODE = "syncMode";
30
- JsonRpcConstant.ACTUAL_CTRL_TAG = "actualCtrlTag";
@@ -1,6 +0,0 @@
1
- import { JsonRpcResponseCodeEnum } from "./enums/JsonRpcResponseCodeEnum";
2
- export interface JsonRpcError<E> {
3
- code: JsonRpcResponseCodeEnum;
4
- message: string;
5
- data: E;
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { JsonRpcMethodEnum } from "./enums/JsonRpcMethodEnum";
2
- import { JsonRpcEventEnum } from "./enums/JsonRpcEventEnum";
3
- /**
4
- * 请求对象
5
- */
6
- export interface JsonRpcRequest<T> {
7
- id: string;
8
- method: JsonRpcMethodEnum;
9
- params: T;
10
- timestamp: number;
11
- event: JsonRpcEventEnum;
12
- slaveInstId: string | null;
13
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- import { JsonRpcMethodEnum } from "./enums/JsonRpcMethodEnum";
2
- import { JsonRpcEventEnum } from "./enums/JsonRpcEventEnum";
3
- import { JsonRpcError } from "./JsonRpcError";
4
- /**
5
- * 响应对象
6
- */
7
- export interface JsonRpcResponse<T, E> {
8
- id: string;
9
- method: JsonRpcMethodEnum;
10
- result: T;
11
- error: JsonRpcError<E>;
12
- timestamp: number;
13
- event: JsonRpcEventEnum;
14
- slaveInstId: string;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import { ConnectStatusEnum } from "./enums/ConnectStatusEnum";
2
- export interface NodeInfo {
3
- /**
4
- * 节点状态
5
- */
6
- nodeStatus: ConnectStatusEnum;
7
- /**
8
- * 节点id
9
- */
10
- instId: string | null;
11
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { MsgEventTypeEnum } from "./enums/MsgEventTypeEnum";
2
- import { ServiceTypeEnum } from "./enums/ServiceTypeEnum";
3
- export interface OutMsg<T> {
4
- serviceType: ServiceTypeEnum;
5
- ctrlIndex: number;
6
- batchId: string;
7
- msgEventType: MsgEventTypeEnum;
8
- data: T;
9
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export interface ProductInfo {
2
- dSn: number;
3
- device: string;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { VinChnl } from "./VinChnl";
2
- import { DiDo } from "./DiDo";
3
- export interface ReadDataDO {
4
- ChannelList: Array<VinChnl>;
5
- DiList: Array<DiDo>;
6
- DoList: Array<DiDo>;
7
- TimeArr: number[];
8
- DataGramList: Array<string[]>;
9
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { SubscribeDatagramResult } from "./SubscribeDatagramResult";
2
- import { AtsInfo } from "./AtsInfo";
3
- export interface RuntimeInfo {
4
- testing: boolean;
5
- currentAtsHandle: number;
6
- currentActionTag: string;
7
- subscribeDatagramResultList: Array<SubscribeDatagramResult>;
8
- atsInfoList: Array<AtsInfo>;
9
- }
10
- export interface MultiStationRuntimeInfo {
11
- ctrlTagRuntimeInfoMap: Record<string, RuntimeInfo>;
12
- subscribeDatagramResultList: Array<SubscribeDatagramResult>;
13
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export interface SubscribeDatagramResult {
2
- tag: string;
3
- maxScale: number;
4
- unitCode: number;
5
- unitName: string;
6
- handle: number;
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- export interface VinChnl {
2
- LastVal: number;
3
- SnapshotValArray: number[];
4
- SnapshotNum: number;
5
- Caption: string;
6
- Dot: number;
7
- BindHandle: number;
8
- WavePeak: number[];
9
- WaveValley: number[];
10
- WaveEndIndexArr: number[];
11
- GtWaveCount: number;
12
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,46 +0,0 @@
1
- export declare const LAUNCH_STEP = 256;
2
- export declare const LAUNCH_ABORTED = 33024;
3
- export declare const LAUNCH_OK = 33280;
4
- export declare const CLOSE_STEP = 16384;
5
- export declare const CLOSE_OK = 32768;
6
- export declare const RUN_MSG = 512;
7
- export declare const RUN_EVENT = 768;
8
- export declare const RUN_EVENT_TOUCH = 784;
9
- export declare const RUN_WARNING = 1024;
10
- export declare const RUN_DEBUG = 1280;
11
- export declare const ATS_LOADING = 1536;
12
- export declare const ATS_LOAD_ABORTED = 1552;
13
- export declare const ATS_LOAD_OK = 1568;
14
- export declare const ATS_STARTING = 1584;
15
- export declare const ATS_STARTED = 1616;
16
- export declare const ATS_BREAK = 1632;
17
- export declare const ATS_CONTINUE = 1648;
18
- export declare const ATS_CATCH_CONTROLLER = 1664;
19
- export declare const ATS_RELEASE_CONTROLLER = 1680;
20
- export declare const ATS_TERMINATING = 1696;
21
- export declare const ATS_ACTION = 1792;
22
- export declare const ATS_ABORTED = 2048;
23
- export declare const ATS_COMPLETED = 2304;
24
- export declare const ATS_TRIGGER = 2560;
25
- export declare const ATS_FINAL_ACTION = 3328;
26
- export declare const ATS_TEST_STARTED = 3088;
27
- export declare const ATS_TEST_ENDED = 3104;
28
- export declare const ATS_TEST_ABORTED = 3120;
29
- export declare const ATS_ARGUMENT = 3136;
30
- export declare const ATS_RUNTIME = 3152;
31
- export declare const TEST_FFP = 2816;
32
- export declare const TEST_FFMAP = 2832;
33
- export declare const CALI_PARAM = 2848;
34
- export declare const CTRL_PARAM = 2864;
35
- export declare const ACTU_PARAM = 2880;
36
- export declare const SPECIMEN_CLAMPED = 2944;
37
- export declare const SPECIMEN_LOADING = 2960;
38
- export declare const SPECIMEN_BROKEN = 2976;
39
- export declare const SPECIMEN_RELEASED = 2992;
40
- export declare const API_DEBUG = 3584;
41
- export declare const SYNC_ALIGNED = 3840;
42
- export declare const SYNC_GROUP = 3856;
43
- export declare const SYNC_READY = 3872;
44
- export declare const SYNC_GO = 3888;
45
- export declare const SYNC_OK = 3904;
46
- export declare const SYNC_ABORTED = 3968;
@@ -1,46 +0,0 @@
1
- export const LAUNCH_STEP = 0x0100; // 启动,及以下正常步骤
2
- export const LAUNCH_ABORTED = 0x8100; // 启动异常中止
3
- export const LAUNCH_OK = 0x8200; // 启动正常完成
4
- export const CLOSE_STEP = 0x4000; // 关闭,及以下步骤
5
- export const CLOSE_OK = 0x8000; // 关闭正常完成
6
- export const RUN_MSG = 0x0200; // 运行时信息
7
- export const RUN_EVENT = 0x0300; // 运行中发生指定事件
8
- export const RUN_EVENT_TOUCH = 0x0310; // 运行中的触碰事件
9
- export const RUN_WARNING = 0x0400; // 运行时警告
10
- export const RUN_DEBUG = 0x0500; // 运行时跟踪信息
11
- export const ATS_LOADING = 0x0600; // ATS正在加载+ATS句柄(下同)
12
- export const ATS_LOAD_ABORTED = 0x0610; // ATS加载不成功
13
- export const ATS_LOAD_OK = 0x0620; // ATS加载成功
14
- export const ATS_STARTING = 0x0630; // ATS启动中
15
- export const ATS_STARTED = 0x0650; // ATS已经启动
16
- export const ATS_BREAK = 0x0660; // ATS(长时间动作)中断
17
- export const ATS_CONTINUE = 0x0670; // ATS(中断后)继续
18
- export const ATS_CATCH_CONTROLLER = 0x0680; // ATS抓住控制器
19
- export const ATS_RELEASE_CONTROLLER = 0x0690; // ATS释放控制器
20
- export const ATS_TERMINATING = 0x06A0; // ATS终止中
21
- export const ATS_ACTION = 0x0700; // ATS执行动作+句柄+轴
22
- export const ATS_ABORTED = 0x0800; // ATS异常退出
23
- export const ATS_COMPLETED = 0x0900; // ATS结束
24
- export const ATS_TRIGGER = 0x0A00; // ATS跳转触发器+句柄+轴
25
- export const ATS_FINAL_ACTION = 0x0D00; // ATS轴最终动作+句柄+轴
26
- export const ATS_TEST_STARTED = 0x0C10; // 驻留模式的试验开始+ATS句柄,与时序消息同时发出
27
- export const ATS_TEST_ENDED = 0x0C20;
28
- export const ATS_TEST_ABORTED = 0x0C30;
29
- export const ATS_ARGUMENT = 0x0C40; // 全局参数变化
30
- export const ATS_RUNTIME = 0x0C50; // 运行参数变化
31
- export const TEST_FFP = 0x0B00; // 侦测位移前馈比例
32
- export const TEST_FFMAP = 0x0B10; // 侦测位移前馈表
33
- export const CALI_PARAM = 0x0B20; // 测量通道的标定参数变化
34
- export const CTRL_PARAM = 0x0B30; // 闭环反馈通道的控制参数变化
35
- export const ACTU_PARAM = 0x0B40; // 作动器的参数变化
36
- export const SPECIMEN_CLAMPED = 0x0B80; // 试件
37
- export const SPECIMEN_LOADING = 0x0B90;
38
- export const SPECIMEN_BROKEN = 0x0BA0;
39
- export const SPECIMEN_RELEASED = 0x0BB0;
40
- export const API_DEBUG = 0x0E00; // 应用调用接口跟踪
41
- export const SYNC_ALIGNED = 0x0F00; // 对齐
42
- export const SYNC_GROUP = 0x0F10; // 成组
43
- export const SYNC_READY = 0x0F20; // 就绪
44
- export const SYNC_GO = 0x0F30; // 启动
45
- export const SYNC_OK = 0x0F40;
46
- export const SYNC_ABORTED = 0x0F80;
@@ -1,22 +0,0 @@
1
- export interface AtsStruct {
2
- name: string;
3
- parameters: Record<string, Value>;
4
- captureParameters: Record<string, Value>;
5
- axes: Array<Axis>;
6
- }
7
- export interface Value {
8
- value: number;
9
- options: Array<number> | null;
10
- }
11
- export interface Axis {
12
- name: string;
13
- actions: Array<AtsAction>;
14
- currentAction: string;
15
- }
16
- export interface AtsAction {
17
- name: string;
18
- editableParamList: Array<string>;
19
- editableParamOptionList: Array<number>;
20
- clickToTargetList: Array<string>;
21
- captureButtonList: Array<string>;
22
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { BaseAtsEvent } from "./BaseAtsEvent";
2
- export interface AtsActionEnteredEventContent extends BaseAtsEvent {
3
- axisIndex: number;
4
- actionTag: string;
5
- recordMode: boolean;
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import { BaseAtsEvent } from "./BaseAtsEvent";
2
- export interface AtsCapturedEventContent extends BaseAtsEvent {
3
- key: string;
4
- value: number;
5
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import { BaseAtsEvent } from "./BaseAtsEvent";
2
- export interface AtsLoadEventContent extends BaseAtsEvent {
3
- atsName: string;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export interface BaseAtsEvent {
2
- sequence: number;
3
- dateTime: Date;
4
- atsHandle: number;
5
- eventId: number;
6
- actionTag: string;
7
- eventTag: string;
8
- }
@@ -1 +0,0 @@
1
- export {};