scheduler-node-models 1.0.78 → 1.0.79
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.
- package/package.json +22 -4
- package/general/emailer.d.ts +0 -1
- package/general/emailer.js +0 -31
- package/general/general.d.ts +0 -12
- package/general/general.js +0 -2
- package/general/index.d.ts +0 -4
- package/general/index.js +0 -20
- package/general/report.d.ts +0 -12
- package/general/report.js +0 -70
- package/general/reportStyle.d.ts +0 -0
- package/general/reportStyle.js +0 -1
- package/general/viewstate.d.ts +0 -5
- package/general/viewstate.js +0 -9
- package/index.d.ts +0 -0
- package/metrics/images.d.ts +0 -22
- package/metrics/images.js +0 -33
- package/metrics/index.d.ts +0 -5
- package/metrics/index.js +0 -21
- package/metrics/mission.d.ts +0 -47
- package/metrics/mission.js +0 -81
- package/metrics/missionSensorOutage.d.ts +0 -11
- package/metrics/missionSensorOutage.js +0 -14
- package/metrics/missionsensor.d.ts +0 -67
- package/metrics/missionsensor.js +0 -128
- package/metrics/outage.d.ts +0 -43
- package/metrics/outage.js +0 -55
- package/metrics/reports/drawSummary.d.ts +0 -24
- package/metrics/reports/drawSummary.js +0 -311
- package/metrics/reports/index.d.ts +0 -5
- package/metrics/reports/index.js +0 -21
- package/metrics/reports/missionDay.d.ts +0 -8
- package/metrics/reports/missionDay.js +0 -23
- package/metrics/reports/missionSummary.d.ts +0 -25
- package/metrics/reports/missionSummary.js +0 -421
- package/metrics/reports/missionType.d.ts +0 -20
- package/metrics/reports/missionType.js +0 -314
- package/metrics/reports/outageDay.d.ts +0 -8
- package/metrics/reports/outageDay.js +0 -23
- package/metrics/systemdata/classifications.d.ts +0 -18
- package/metrics/systemdata/classifications.js +0 -23
- package/metrics/systemdata/communications.d.ts +0 -21
- package/metrics/systemdata/communications.js +0 -40
- package/metrics/systemdata/dcgs.d.ts +0 -19
- package/metrics/systemdata/dcgs.js +0 -29
- package/metrics/systemdata/exploitations.d.ts +0 -18
- package/metrics/systemdata/exploitations.js +0 -23
- package/metrics/systemdata/groundSystems.d.ts +0 -86
- package/metrics/systemdata/groundSystems.js +0 -143
- package/metrics/systemdata/index.d.ts +0 -7
- package/metrics/systemdata/index.js +0 -23
- package/metrics/systemdata/platform.d.ts +0 -124
- package/metrics/systemdata/platform.js +0 -176
- package/metrics/systemdata/systeminfo.d.ts +0 -28
- package/metrics/systemdata/systeminfo.js +0 -64
- package/scheduler/employees/assignment.d.ts +0 -139
- package/scheduler/employees/assignment.js +0 -304
- package/scheduler/employees/balance.d.ts +0 -35
- package/scheduler/employees/balance.js +0 -39
- package/scheduler/employees/companyinfo.d.ts +0 -16
- package/scheduler/employees/companyinfo.js +0 -6
- package/scheduler/employees/contact.d.ts +0 -36
- package/scheduler/employees/contact.js +0 -40
- package/scheduler/employees/employee.d.ts +0 -420
- package/scheduler/employees/employee.js +0 -1862
- package/scheduler/employees/employeename.d.ts +0 -48
- package/scheduler/employees/employeename.js +0 -97
- package/scheduler/employees/index.d.ts +0 -14
- package/scheduler/employees/index.js +0 -30
- package/scheduler/employees/labor.d.ts +0 -31
- package/scheduler/employees/labor.js +0 -39
- package/scheduler/employees/leave.d.ts +0 -58
- package/scheduler/employees/leave.js +0 -73
- package/scheduler/employees/leaverequest.d.ts +0 -105
- package/scheduler/employees/leaverequest.js +0 -226
- package/scheduler/employees/specialty.d.ts +0 -35
- package/scheduler/employees/specialty.js +0 -40
- package/scheduler/employees/variation.d.ts +0 -80
- package/scheduler/employees/variation.js +0 -132
- package/scheduler/employees/web.d.ts +0 -6
- package/scheduler/employees/web.js +0 -2
- package/scheduler/employees/work.d.ts +0 -96
- package/scheduler/employees/work.js +0 -133
- package/scheduler/employees/workday.d.ts +0 -91
- package/scheduler/employees/workday.js +0 -170
- package/scheduler/labor/index.d.ts +0 -2
- package/scheduler/labor/index.js +0 -18
- package/scheduler/labor/laborcode.d.ts +0 -33
- package/scheduler/labor/laborcode.js +0 -55
- package/scheduler/labor/workcode.d.ts +0 -28
- package/scheduler/labor/workcode.js +0 -35
- package/scheduler/reports/chargeStatus.d.ts +0 -66
- package/scheduler/reports/chargeStatus.js +0 -702
- package/scheduler/reports/cofsReports.d.ts +0 -11
- package/scheduler/reports/cofsReports.js +0 -36
- package/scheduler/reports/enterpriseSchedule.d.ts +0 -18
- package/scheduler/reports/enterpriseSchedule.js +0 -159
- package/scheduler/reports/index.d.ts +0 -4
- package/scheduler/reports/index.js +0 -20
- package/scheduler/reports/scheduleReport.d.ts +0 -17
- package/scheduler/reports/scheduleReport.js +0 -311
- package/scheduler/sites/index.d.ts +0 -1
- package/scheduler/sites/index.js +0 -17
- package/scheduler/sites/reports/cofsReport.d.ts +0 -41
- package/scheduler/sites/reports/cofsReport.js +0 -104
- package/scheduler/sites/reports/forecast.d.ts +0 -57
- package/scheduler/sites/reports/forecast.js +0 -205
- package/scheduler/sites/reports/index.d.ts +0 -4
- package/scheduler/sites/reports/index.js +0 -20
- package/scheduler/sites/reports/period.d.ts +0 -11
- package/scheduler/sites/reports/period.js +0 -27
- package/scheduler/sites/reports/section.d.ts +0 -63
- package/scheduler/sites/reports/section.js +0 -174
- package/scheduler/sites/site.d.ts +0 -39
- package/scheduler/sites/site.js +0 -61
- package/scheduler/sites/workcenters/index.d.ts +0 -3
- package/scheduler/sites/workcenters/index.js +0 -19
- package/scheduler/sites/workcenters/position.d.ts +0 -27
- package/scheduler/sites/workcenters/position.js +0 -36
- package/scheduler/sites/workcenters/shift.d.ts +0 -32
- package/scheduler/sites/workcenters/shift.js +0 -47
- package/scheduler/sites/workcenters/workcenter.d.ts +0 -43
- package/scheduler/sites/workcenters/workcenter.js +0 -123
- package/scheduler/teams/company/company.d.ts +0 -99
- package/scheduler/teams/company/company.js +0 -256
- package/scheduler/teams/company/holiday.d.ts +0 -55
- package/scheduler/teams/company/holiday.js +0 -108
- package/scheduler/teams/company/index.d.ts +0 -3
- package/scheduler/teams/company/index.js +0 -19
- package/scheduler/teams/company/modperiod.d.ts +0 -21
- package/scheduler/teams/company/modperiod.js +0 -24
- package/scheduler/teams/contact.d.ts +0 -18
- package/scheduler/teams/contact.js +0 -23
- package/scheduler/teams/index.d.ts +0 -3
- package/scheduler/teams/index.js +0 -19
- package/scheduler/teams/specialty.d.ts +0 -18
- package/scheduler/teams/specialty.js +0 -23
- package/scheduler/teams/team.d.ts +0 -95
- package/scheduler/teams/team.js +0 -351
- package/users/index.d.ts +0 -2
- package/users/index.js +0 -18
- package/users/user.d.ts +0 -130
- package/users/user.js +0 -254
- package/users/web.d.ts +0 -22
- package/users/web.js +0 -2
@@ -1,314 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MissionType = void 0;
|
4
|
-
const mission_1 = require("../mission");
|
5
|
-
class MissionType {
|
6
|
-
exploitation;
|
7
|
-
platform;
|
8
|
-
missions;
|
9
|
-
constructor(exp, platform) {
|
10
|
-
this.exploitation = exp;
|
11
|
-
this.platform = platform;
|
12
|
-
this.missions = [];
|
13
|
-
}
|
14
|
-
addMission(msn) {
|
15
|
-
this.missions.push(new mission_1.Mission(msn));
|
16
|
-
this.missions.sort((a, b) => a.compareTo(b));
|
17
|
-
}
|
18
|
-
getScheduled(exploit, sensors) {
|
19
|
-
let answer = 0;
|
20
|
-
if ((exploit.toLowerCase() === 'primary'
|
21
|
-
&& this.exploitation.toLowerCase() === 'primary')
|
22
|
-
|| (exploit.toLowerCase() !== 'primary'
|
23
|
-
&& this.exploitation.toLowerCase() !== 'primary')) {
|
24
|
-
if (sensors.length === 0) {
|
25
|
-
answer = this.missions.length;
|
26
|
-
}
|
27
|
-
else {
|
28
|
-
this.missions.forEach(msn => {
|
29
|
-
let found = false;
|
30
|
-
msn.sensors.forEach(msnSen => {
|
31
|
-
sensors.forEach(sensor => {
|
32
|
-
if (msnSen.sensorID.toLowerCase() === sensor.toLowerCase()) {
|
33
|
-
if (!found) {
|
34
|
-
answer++;
|
35
|
-
found = true;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
});
|
39
|
-
});
|
40
|
-
});
|
41
|
-
}
|
42
|
-
}
|
43
|
-
return answer;
|
44
|
-
}
|
45
|
-
getExecuted(exploit, sensors) {
|
46
|
-
let answer = 0;
|
47
|
-
if ((exploit.toLowerCase() === 'primary'
|
48
|
-
&& this.exploitation.toLowerCase() === 'primary')
|
49
|
-
|| (exploit.toLowerCase() !== 'primary'
|
50
|
-
&& this.exploitation.toLowerCase() !== 'primary')) {
|
51
|
-
if (sensors.length === 0) {
|
52
|
-
this.missions.forEach(msn => {
|
53
|
-
if (!msn.aborted && !msn.cancelled && !msn.indefDelay) {
|
54
|
-
answer++;
|
55
|
-
}
|
56
|
-
});
|
57
|
-
}
|
58
|
-
else {
|
59
|
-
this.missions.forEach(msn => {
|
60
|
-
let found = false;
|
61
|
-
if (!msn.aborted && !msn.cancelled && !msn.indefDelay) {
|
62
|
-
msn.sensors.forEach(msnSen => {
|
63
|
-
sensors.forEach(sensor => {
|
64
|
-
if (msnSen.sensorID.toLowerCase() === sensor.toLowerCase()) {
|
65
|
-
if (!found) {
|
66
|
-
answer++;
|
67
|
-
found = true;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
});
|
71
|
-
});
|
72
|
-
}
|
73
|
-
});
|
74
|
-
}
|
75
|
-
}
|
76
|
-
return answer;
|
77
|
-
}
|
78
|
-
getCancelled(exploit, sensors) {
|
79
|
-
let answer = 0;
|
80
|
-
if ((exploit.toLowerCase() === 'primary'
|
81
|
-
&& this.exploitation.toLowerCase() === 'primary')
|
82
|
-
|| (exploit.toLowerCase() !== 'primary'
|
83
|
-
&& this.exploitation.toLowerCase() !== 'primary')) {
|
84
|
-
if (sensors.length === 0) {
|
85
|
-
this.missions.forEach(msn => {
|
86
|
-
if (msn.cancelled || msn.indefDelay) {
|
87
|
-
answer++;
|
88
|
-
}
|
89
|
-
});
|
90
|
-
}
|
91
|
-
else {
|
92
|
-
this.missions.forEach(msn => {
|
93
|
-
let found = false;
|
94
|
-
if (msn.cancelled || msn.indefDelay) {
|
95
|
-
msn.sensors.forEach(msnSen => {
|
96
|
-
sensors.forEach(sensor => {
|
97
|
-
if (msnSen.sensorID.toLowerCase() === sensor.toLowerCase()) {
|
98
|
-
if (!found) {
|
99
|
-
answer++;
|
100
|
-
found = true;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
});
|
104
|
-
});
|
105
|
-
}
|
106
|
-
});
|
107
|
-
}
|
108
|
-
}
|
109
|
-
return answer;
|
110
|
-
}
|
111
|
-
getAborted(exploit, sensors) {
|
112
|
-
let answer = 0;
|
113
|
-
if ((exploit.toLowerCase() === 'primary'
|
114
|
-
&& this.exploitation.toLowerCase() === 'primary')
|
115
|
-
|| (exploit.toLowerCase() !== 'primary'
|
116
|
-
&& this.exploitation.toLowerCase() !== 'primary')) {
|
117
|
-
if (sensors.length === 0) {
|
118
|
-
this.missions.forEach(msn => {
|
119
|
-
if (msn.aborted) {
|
120
|
-
answer++;
|
121
|
-
}
|
122
|
-
});
|
123
|
-
}
|
124
|
-
else {
|
125
|
-
this.missions.forEach(msn => {
|
126
|
-
let found = false;
|
127
|
-
if (msn.aborted) {
|
128
|
-
msn.sensors.forEach(msnSen => {
|
129
|
-
sensors.forEach(sensor => {
|
130
|
-
if (msnSen.sensorID.toLowerCase() === sensor.toLowerCase()) {
|
131
|
-
if (!found) {
|
132
|
-
answer++;
|
133
|
-
found = true;
|
134
|
-
}
|
135
|
-
}
|
136
|
-
});
|
137
|
-
});
|
138
|
-
}
|
139
|
-
});
|
140
|
-
}
|
141
|
-
}
|
142
|
-
return answer;
|
143
|
-
}
|
144
|
-
getPremissionTime(sensors, enclave, gs) {
|
145
|
-
let answer = 0;
|
146
|
-
this.missions.forEach(msn => {
|
147
|
-
let senMax = 0;
|
148
|
-
if (gs && gs.checkForUse) {
|
149
|
-
if (msn.equipmentInUse(gs.id)) {
|
150
|
-
msn.sensors.forEach(mSen => {
|
151
|
-
if (gs.useSensor(msn.platformID, mSen.sensorID, msn.exploitation, msn.communications, enclave)) {
|
152
|
-
if (senMax < mSen.preflightMinutes) {
|
153
|
-
senMax = mSen.preflightMinutes;
|
154
|
-
}
|
155
|
-
}
|
156
|
-
});
|
157
|
-
}
|
158
|
-
}
|
159
|
-
else {
|
160
|
-
msn.sensors.forEach(mSen => {
|
161
|
-
sensors.forEach(sen => {
|
162
|
-
if (sen.toLowerCase() === mSen.sensorID.toLowerCase()
|
163
|
-
&& senMax < mSen.preflightMinutes) {
|
164
|
-
senMax = mSen.preflightMinutes;
|
165
|
-
}
|
166
|
-
});
|
167
|
-
});
|
168
|
-
}
|
169
|
-
answer += senMax;
|
170
|
-
});
|
171
|
-
return answer;
|
172
|
-
}
|
173
|
-
getPostmissionTime(sensors, enclave, gs) {
|
174
|
-
let answer = 0;
|
175
|
-
this.missions.forEach(msn => {
|
176
|
-
let senMax = 0;
|
177
|
-
if (gs && gs.checkForUse) {
|
178
|
-
if (msn.equipmentInUse(gs.id)) {
|
179
|
-
msn.sensors.forEach(mSen => {
|
180
|
-
if (gs.useSensor(msn.platformID, mSen.sensorID, msn.exploitation, msn.communications, enclave)) {
|
181
|
-
if (senMax < mSen.postflightMinutes) {
|
182
|
-
senMax = mSen.postflightMinutes;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
});
|
186
|
-
}
|
187
|
-
}
|
188
|
-
else {
|
189
|
-
msn.sensors.forEach(mSen => {
|
190
|
-
sensors.forEach(sen => {
|
191
|
-
if (sen.toLowerCase() === mSen.sensorID.toLowerCase()
|
192
|
-
&& senMax < mSen.postflightMinutes) {
|
193
|
-
senMax = mSen.postflightMinutes;
|
194
|
-
}
|
195
|
-
});
|
196
|
-
});
|
197
|
-
}
|
198
|
-
answer += senMax;
|
199
|
-
});
|
200
|
-
return answer;
|
201
|
-
}
|
202
|
-
getScheduledTime(sensors, enclave, gs) {
|
203
|
-
let answer = 0;
|
204
|
-
this.missions.forEach(msn => {
|
205
|
-
let senMax = 0;
|
206
|
-
if (gs && gs.checkForUse) {
|
207
|
-
if (msn.equipmentInUse(gs.id)) {
|
208
|
-
msn.sensors.forEach(mSen => {
|
209
|
-
if (gs.useSensor(msn.platformID, mSen.sensorID, msn.exploitation, msn.communications, enclave)) {
|
210
|
-
if (senMax < mSen.scheduledMinutes) {
|
211
|
-
senMax = mSen.scheduledMinutes;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
});
|
215
|
-
}
|
216
|
-
}
|
217
|
-
else {
|
218
|
-
msn.sensors.forEach(mSen => {
|
219
|
-
sensors.forEach(sen => {
|
220
|
-
if (sen.toLowerCase() === mSen.sensorID.toLowerCase()
|
221
|
-
&& senMax < mSen.scheduledMinutes) {
|
222
|
-
senMax = mSen.scheduledMinutes;
|
223
|
-
}
|
224
|
-
});
|
225
|
-
});
|
226
|
-
}
|
227
|
-
answer += senMax;
|
228
|
-
});
|
229
|
-
return answer;
|
230
|
-
}
|
231
|
-
getExecutedTime(sensors, enclave, gs) {
|
232
|
-
let answer = 0;
|
233
|
-
this.missions.forEach(msn => {
|
234
|
-
let senMax = 0;
|
235
|
-
if (gs && gs.checkForUse) {
|
236
|
-
if (msn.equipmentInUse(gs.id)) {
|
237
|
-
msn.sensors.forEach(mSen => {
|
238
|
-
if (gs.useSensor(msn.platformID, mSen.sensorID, msn.exploitation, msn.communications, enclave)) {
|
239
|
-
if (senMax < mSen.executedMinutes) {
|
240
|
-
senMax = mSen.executedMinutes;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
});
|
244
|
-
}
|
245
|
-
}
|
246
|
-
else {
|
247
|
-
msn.sensors.forEach(mSen => {
|
248
|
-
sensors.forEach(sen => {
|
249
|
-
if (sen.toLowerCase() === mSen.sensorID.toLowerCase()
|
250
|
-
&& senMax < mSen.executedMinutes) {
|
251
|
-
senMax = mSen.executedMinutes;
|
252
|
-
}
|
253
|
-
});
|
254
|
-
});
|
255
|
-
}
|
256
|
-
answer += senMax;
|
257
|
-
});
|
258
|
-
return answer;
|
259
|
-
}
|
260
|
-
getAdditionalTime(sensors, enclave, gs) {
|
261
|
-
let answer = 0;
|
262
|
-
this.missions.forEach(msn => {
|
263
|
-
let senMax = 0;
|
264
|
-
if (gs && gs.checkForUse) {
|
265
|
-
if (msn.equipmentInUse(gs.id)) {
|
266
|
-
msn.sensors.forEach(mSen => {
|
267
|
-
if (gs.useSensor(msn.platformID, mSen.sensorID, msn.exploitation, msn.communications, enclave)) {
|
268
|
-
if (senMax < mSen.additionalMinutes) {
|
269
|
-
senMax = mSen.additionalMinutes;
|
270
|
-
}
|
271
|
-
}
|
272
|
-
});
|
273
|
-
}
|
274
|
-
}
|
275
|
-
else {
|
276
|
-
msn.sensors.forEach(mSen => {
|
277
|
-
sensors.forEach(sen => {
|
278
|
-
if (sen.toLowerCase() === mSen.sensorID.toLowerCase()
|
279
|
-
&& senMax < mSen.additionalMinutes) {
|
280
|
-
senMax = mSen.additionalMinutes;
|
281
|
-
}
|
282
|
-
});
|
283
|
-
});
|
284
|
-
}
|
285
|
-
answer += senMax;
|
286
|
-
});
|
287
|
-
return answer;
|
288
|
-
}
|
289
|
-
getOverlap() {
|
290
|
-
let answer = 0;
|
291
|
-
this.missions.forEach(msn => {
|
292
|
-
answer += msn.missionOverlap;
|
293
|
-
});
|
294
|
-
return answer;
|
295
|
-
}
|
296
|
-
getSensorList() {
|
297
|
-
const answer = [];
|
298
|
-
this.missions.forEach(msn => {
|
299
|
-
msn.sensors.forEach(mSen => {
|
300
|
-
let found = false;
|
301
|
-
answer.forEach(sen => {
|
302
|
-
if (mSen.sensorID.toLowerCase() === sen.toLowerCase()) {
|
303
|
-
found = true;
|
304
|
-
}
|
305
|
-
});
|
306
|
-
if (!found) {
|
307
|
-
answer.push(mSen.sensorID);
|
308
|
-
}
|
309
|
-
});
|
310
|
-
});
|
311
|
-
return answer;
|
312
|
-
}
|
313
|
-
}
|
314
|
-
exports.MissionType = MissionType;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OutageDay = void 0;
|
4
|
-
class OutageDay {
|
5
|
-
outageDate;
|
6
|
-
outages;
|
7
|
-
constructor(date) {
|
8
|
-
this.outageDate = new Date(date);
|
9
|
-
this.outages = [];
|
10
|
-
}
|
11
|
-
compareTo(other) {
|
12
|
-
if (other) {
|
13
|
-
return (this.outageDate.getTime() < other.outageDate.getTime()) ? -1 : 1;
|
14
|
-
}
|
15
|
-
return -1;
|
16
|
-
}
|
17
|
-
use(date) {
|
18
|
-
return (this.outageDate.getFullYear() === date.getFullYear()
|
19
|
-
&& this.outageDate.getMonth() === date.getMonth()
|
20
|
-
&& this.outageDate.getDate() === date.getDate());
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.OutageDay = OutageDay;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This interface defines the data members of a classification object.
|
3
|
-
*/
|
4
|
-
export interface IClassification {
|
5
|
-
id: string;
|
6
|
-
title: string;
|
7
|
-
sortID: number;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* This class defines the data members and actions for a classification object.
|
11
|
-
*/
|
12
|
-
export declare class Classification implements IClassification {
|
13
|
-
id: string;
|
14
|
-
title: string;
|
15
|
-
sortID: number;
|
16
|
-
constructor(cl?: IClassification);
|
17
|
-
compareTo(other?: Classification): number;
|
18
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Classification = void 0;
|
4
|
-
/**
|
5
|
-
* This class defines the data members and actions for a classification object.
|
6
|
-
*/
|
7
|
-
class Classification {
|
8
|
-
id;
|
9
|
-
title;
|
10
|
-
sortID;
|
11
|
-
constructor(cl) {
|
12
|
-
this.id = (cl) ? cl.id : '';
|
13
|
-
this.title = (cl) ? cl.title : '';
|
14
|
-
this.sortID = (cl) ? cl.sortID : 0;
|
15
|
-
}
|
16
|
-
compareTo(other) {
|
17
|
-
if (other) {
|
18
|
-
return (this.sortID < other.sortID) ? -1 : 1;
|
19
|
-
}
|
20
|
-
return -1;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.Classification = Classification;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This interface defines the data members for communications data.
|
3
|
-
*/
|
4
|
-
export interface ICommunication {
|
5
|
-
id: string;
|
6
|
-
explanation: string;
|
7
|
-
exploitations: string[];
|
8
|
-
sortID: number;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* This class defines the data members plus actions for a communication object.
|
12
|
-
*/
|
13
|
-
export declare class Communication implements ICommunication {
|
14
|
-
id: string;
|
15
|
-
explanation: string;
|
16
|
-
exploitations: string[];
|
17
|
-
sortID: number;
|
18
|
-
constructor(comm?: ICommunication);
|
19
|
-
compareTo(other?: Communication): number;
|
20
|
-
hasExploitation(exp: string): boolean;
|
21
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Communication = void 0;
|
4
|
-
/**
|
5
|
-
* This class defines the data members plus actions for a communication object.
|
6
|
-
*/
|
7
|
-
class Communication {
|
8
|
-
id;
|
9
|
-
explanation;
|
10
|
-
exploitations;
|
11
|
-
sortID;
|
12
|
-
constructor(comm) {
|
13
|
-
this.id = (comm) ? comm.id : '';
|
14
|
-
this.explanation = (comm) ? comm.explanation : '';
|
15
|
-
this.exploitations = [];
|
16
|
-
if (comm) {
|
17
|
-
comm.exploitations.forEach(exp => {
|
18
|
-
this.exploitations.push(exp);
|
19
|
-
});
|
20
|
-
this.exploitations.sort();
|
21
|
-
}
|
22
|
-
this.sortID = (comm) ? comm.sortID : 0;
|
23
|
-
}
|
24
|
-
compareTo(other) {
|
25
|
-
if (other) {
|
26
|
-
return (this.sortID < other.sortID) ? -1 : 1;
|
27
|
-
}
|
28
|
-
return -1;
|
29
|
-
}
|
30
|
-
hasExploitation(exp) {
|
31
|
-
let answer = false;
|
32
|
-
this.exploitations.forEach(exploit => {
|
33
|
-
if (exploit.toLowerCase() === exp.toLowerCase()) {
|
34
|
-
answer = true;
|
35
|
-
}
|
36
|
-
});
|
37
|
-
return answer;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
exports.Communication = Communication;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This interface is used to list a Distributed Common Ground Station site and the
|
3
|
-
* types of exploitation done at that site.
|
4
|
-
*/
|
5
|
-
export interface IDCGS {
|
6
|
-
id: string;
|
7
|
-
exploitations?: string[];
|
8
|
-
sortID: number;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* This class implements the DCGS interface plus actions
|
12
|
-
*/
|
13
|
-
export declare class DCGS implements IDCGS {
|
14
|
-
id: string;
|
15
|
-
exploitations?: string[] | undefined;
|
16
|
-
sortID: number;
|
17
|
-
constructor(d?: IDCGS);
|
18
|
-
compareTo(other?: DCGS): number;
|
19
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DCGS = void 0;
|
4
|
-
/**
|
5
|
-
* This class implements the DCGS interface plus actions
|
6
|
-
*/
|
7
|
-
class DCGS {
|
8
|
-
id;
|
9
|
-
exploitations;
|
10
|
-
sortID;
|
11
|
-
constructor(d) {
|
12
|
-
this.id = (d) ? d.id : '';
|
13
|
-
this.sortID = (d) ? d.sortID : 0;
|
14
|
-
if (d && d.exploitations) {
|
15
|
-
this.exploitations = [];
|
16
|
-
d.exploitations.forEach(ex => {
|
17
|
-
this.exploitations?.push(ex);
|
18
|
-
});
|
19
|
-
this.exploitations.sort();
|
20
|
-
}
|
21
|
-
}
|
22
|
-
compareTo(other) {
|
23
|
-
if (other) {
|
24
|
-
return (this.sortID < other.sortID) ? -1 : 1;
|
25
|
-
}
|
26
|
-
return -1;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
exports.DCGS = DCGS;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This interface will be used to define a exploitation type by id and explanation.
|
3
|
-
*/
|
4
|
-
export interface IExploitation {
|
5
|
-
id: string;
|
6
|
-
exploitation: string;
|
7
|
-
sortID: number;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* This class implements the IExploitation interface plus actions
|
11
|
-
*/
|
12
|
-
export declare class Exploitation implements IExploitation {
|
13
|
-
id: string;
|
14
|
-
exploitation: string;
|
15
|
-
sortID: number;
|
16
|
-
constructor(ex?: IExploitation);
|
17
|
-
compareTo(other?: Exploitation): number;
|
18
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Exploitation = void 0;
|
4
|
-
/**
|
5
|
-
* This class implements the IExploitation interface plus actions
|
6
|
-
*/
|
7
|
-
class Exploitation {
|
8
|
-
id;
|
9
|
-
exploitation;
|
10
|
-
sortID;
|
11
|
-
constructor(ex) {
|
12
|
-
this.id = (ex) ? ex.id : '';
|
13
|
-
this.exploitation = (ex) ? ex.exploitation : '';
|
14
|
-
this.sortID = (ex) ? ex.sortID : 0;
|
15
|
-
}
|
16
|
-
compareTo(other) {
|
17
|
-
if (other) {
|
18
|
-
return (this.sortID < other.sortID) ? -1 : 1;
|
19
|
-
}
|
20
|
-
return -1;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.Exploitation = Exploitation;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This interface defines the data members associated with a ground system exploitation
|
3
|
-
* object.
|
4
|
-
*/
|
5
|
-
export interface IGroundSystemExploitation {
|
6
|
-
platformID: string;
|
7
|
-
sensorType: string;
|
8
|
-
exploitation: string;
|
9
|
-
communicationID: string;
|
10
|
-
enclaves?: string[];
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* This class implements the data members of the GroundSystemExploitation interface,
|
14
|
-
* plus functions to used the object.
|
15
|
-
*/
|
16
|
-
export declare class GroundSystemExploitation implements IGroundSystemExploitation {
|
17
|
-
platformID: string;
|
18
|
-
sensorType: string;
|
19
|
-
exploitation: string;
|
20
|
-
communicationID: string;
|
21
|
-
enclaves: string[];
|
22
|
-
constructor(gse?: IGroundSystemExploitation);
|
23
|
-
/**
|
24
|
-
* This function is used in sorting a list of Ground System Exploitation objects.
|
25
|
-
* @param other The ground system exploitation object for comparison
|
26
|
-
* @returns The numeric value to indicate this object's relative position compared to
|
27
|
-
* the other object.
|
28
|
-
*/
|
29
|
-
compareTo(other?: GroundSystemExploitation): number;
|
30
|
-
/**
|
31
|
-
* This function will indicate if this exploitation should be used based on the
|
32
|
-
* information provided.
|
33
|
-
* @param platform The string value for the platform
|
34
|
-
* @param sensor The string value for the sensor
|
35
|
-
* @param exploit The string value for the exploitation
|
36
|
-
* @param comm The string value for the communications
|
37
|
-
* @param enclave The string value for the enclave
|
38
|
-
* @returns boolean value to indicate whether all the conditions are present
|
39
|
-
*/
|
40
|
-
use(platform: string, sensor: string, exploit: string, comm: string, enclave: string): boolean;
|
41
|
-
}
|
42
|
-
/**
|
43
|
-
* This interface defines the data members of a ground system object
|
44
|
-
*/
|
45
|
-
export interface IGroundSystem {
|
46
|
-
id: string;
|
47
|
-
enclaves: string[];
|
48
|
-
showOnGEOINT: boolean;
|
49
|
-
showOnGSEG: boolean;
|
50
|
-
showOnMIST: boolean;
|
51
|
-
showOnXINT: boolean;
|
52
|
-
checkForUse?: boolean;
|
53
|
-
exploitations: IGroundSystemExploitation[];
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* This class implements the data members for a ground system, plus all the action to
|
57
|
-
* use the object
|
58
|
-
*/
|
59
|
-
export declare class GroundSystem implements IGroundSystem {
|
60
|
-
id: string;
|
61
|
-
enclaves: string[];
|
62
|
-
showOnGEOINT: boolean;
|
63
|
-
showOnGSEG: boolean;
|
64
|
-
showOnMIST: boolean;
|
65
|
-
showOnXINT: boolean;
|
66
|
-
checkForUse: boolean;
|
67
|
-
exploitations: GroundSystemExploitation[];
|
68
|
-
constructor(gs?: IGroundSystem);
|
69
|
-
/**
|
70
|
-
* This function will be used when sorting a list of ground system objects.
|
71
|
-
* @param other The ground system object used for comparison
|
72
|
-
* @returns a numeric value for whether this object is before or after the other.
|
73
|
-
*/
|
74
|
-
compareTo(other?: GroundSystem): number;
|
75
|
-
/**
|
76
|
-
* This function will indicate if this exploitation should be used based on the
|
77
|
-
* information provided.
|
78
|
-
* @param platform The string value for the platform
|
79
|
-
* @param sensor The string value for the sensor
|
80
|
-
* @param exploit The string value for the exploitation
|
81
|
-
* @param comm The string value for the communications
|
82
|
-
* @param enclave The string value for the enclave
|
83
|
-
* @returns boolean value to indicate whether all the conditions are present
|
84
|
-
*/
|
85
|
-
useSensor(platform: string, sensor: string, exploit: string, comm: string, enclave: string): boolean;
|
86
|
-
}
|