scheduler-node-models 1.0.75 → 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.
Files changed (145) hide show
  1. package/package.json +21 -6
  2. package/.npmignore +0 -1
  3. package/general/emailer.d.ts +0 -1
  4. package/general/emailer.js +0 -31
  5. package/general/general.d.ts +0 -12
  6. package/general/general.js +0 -2
  7. package/general/index.d.ts +0 -4
  8. package/general/index.js +0 -20
  9. package/general/report.d.ts +0 -12
  10. package/general/report.js +0 -70
  11. package/general/reportStyle.d.ts +0 -0
  12. package/general/reportStyle.js +0 -1
  13. package/general/viewstate.d.ts +0 -5
  14. package/general/viewstate.js +0 -9
  15. package/index.d.ts +0 -0
  16. package/metrics/images.d.ts +0 -22
  17. package/metrics/images.js +0 -33
  18. package/metrics/index.d.ts +0 -5
  19. package/metrics/index.js +0 -21
  20. package/metrics/mission.d.ts +0 -47
  21. package/metrics/mission.js +0 -81
  22. package/metrics/missionSensorOutage.d.ts +0 -11
  23. package/metrics/missionSensorOutage.js +0 -14
  24. package/metrics/missionsensor.d.ts +0 -67
  25. package/metrics/missionsensor.js +0 -128
  26. package/metrics/outage.d.ts +0 -43
  27. package/metrics/outage.js +0 -55
  28. package/metrics/reports/drawSummary.d.ts +0 -24
  29. package/metrics/reports/drawSummary.js +0 -311
  30. package/metrics/reports/index.d.ts +0 -5
  31. package/metrics/reports/index.js +0 -21
  32. package/metrics/reports/missionDay.d.ts +0 -8
  33. package/metrics/reports/missionDay.js +0 -23
  34. package/metrics/reports/missionSummary.d.ts +0 -25
  35. package/metrics/reports/missionSummary.js +0 -421
  36. package/metrics/reports/missionType.d.ts +0 -20
  37. package/metrics/reports/missionType.js +0 -314
  38. package/metrics/reports/outageDay.d.ts +0 -8
  39. package/metrics/reports/outageDay.js +0 -23
  40. package/metrics/systemdata/classifications.d.ts +0 -18
  41. package/metrics/systemdata/classifications.js +0 -23
  42. package/metrics/systemdata/communications.d.ts +0 -21
  43. package/metrics/systemdata/communications.js +0 -40
  44. package/metrics/systemdata/dcgs.d.ts +0 -19
  45. package/metrics/systemdata/dcgs.js +0 -29
  46. package/metrics/systemdata/exploitations.d.ts +0 -18
  47. package/metrics/systemdata/exploitations.js +0 -23
  48. package/metrics/systemdata/groundSystems.d.ts +0 -86
  49. package/metrics/systemdata/groundSystems.js +0 -143
  50. package/metrics/systemdata/index.d.ts +0 -7
  51. package/metrics/systemdata/index.js +0 -23
  52. package/metrics/systemdata/platform.d.ts +0 -124
  53. package/metrics/systemdata/platform.js +0 -176
  54. package/metrics/systemdata/systeminfo.d.ts +0 -28
  55. package/metrics/systemdata/systeminfo.js +0 -64
  56. package/scheduler/employees/assignment.d.ts +0 -139
  57. package/scheduler/employees/assignment.js +0 -304
  58. package/scheduler/employees/balance.d.ts +0 -35
  59. package/scheduler/employees/balance.js +0 -39
  60. package/scheduler/employees/companyinfo.d.ts +0 -16
  61. package/scheduler/employees/companyinfo.js +0 -6
  62. package/scheduler/employees/contact.d.ts +0 -36
  63. package/scheduler/employees/contact.js +0 -40
  64. package/scheduler/employees/employee.d.ts +0 -420
  65. package/scheduler/employees/employee.js +0 -1862
  66. package/scheduler/employees/employeename.d.ts +0 -48
  67. package/scheduler/employees/employeename.js +0 -97
  68. package/scheduler/employees/index.d.ts +0 -14
  69. package/scheduler/employees/index.js +0 -30
  70. package/scheduler/employees/labor.d.ts +0 -31
  71. package/scheduler/employees/labor.js +0 -39
  72. package/scheduler/employees/leave.d.ts +0 -58
  73. package/scheduler/employees/leave.js +0 -73
  74. package/scheduler/employees/leaverequest.d.ts +0 -105
  75. package/scheduler/employees/leaverequest.js +0 -226
  76. package/scheduler/employees/specialty.d.ts +0 -35
  77. package/scheduler/employees/specialty.js +0 -40
  78. package/scheduler/employees/variation.d.ts +0 -80
  79. package/scheduler/employees/variation.js +0 -132
  80. package/scheduler/employees/web.d.ts +0 -6
  81. package/scheduler/employees/web.js +0 -2
  82. package/scheduler/employees/work.d.ts +0 -96
  83. package/scheduler/employees/work.js +0 -133
  84. package/scheduler/employees/workday.d.ts +0 -91
  85. package/scheduler/employees/workday.js +0 -170
  86. package/scheduler/labor/index.d.ts +0 -2
  87. package/scheduler/labor/index.js +0 -18
  88. package/scheduler/labor/laborcode.d.ts +0 -33
  89. package/scheduler/labor/laborcode.js +0 -55
  90. package/scheduler/labor/workcode.d.ts +0 -28
  91. package/scheduler/labor/workcode.js +0 -35
  92. package/scheduler/reports/chargeStatus.d.ts +0 -66
  93. package/scheduler/reports/chargeStatus.js +0 -702
  94. package/scheduler/reports/cofsReports.d.ts +0 -11
  95. package/scheduler/reports/cofsReports.js +0 -36
  96. package/scheduler/reports/enterpriseSchedule.d.ts +0 -18
  97. package/scheduler/reports/enterpriseSchedule.js +0 -159
  98. package/scheduler/reports/index.d.ts +0 -4
  99. package/scheduler/reports/index.js +0 -20
  100. package/scheduler/reports/scheduleReport.d.ts +0 -17
  101. package/scheduler/reports/scheduleReport.js +0 -311
  102. package/scheduler/sites/index.d.ts +0 -1
  103. package/scheduler/sites/index.js +0 -17
  104. package/scheduler/sites/reports/cofsReport.d.ts +0 -41
  105. package/scheduler/sites/reports/cofsReport.js +0 -104
  106. package/scheduler/sites/reports/forecast.d.ts +0 -57
  107. package/scheduler/sites/reports/forecast.js +0 -205
  108. package/scheduler/sites/reports/index.d.ts +0 -4
  109. package/scheduler/sites/reports/index.js +0 -20
  110. package/scheduler/sites/reports/period.d.ts +0 -11
  111. package/scheduler/sites/reports/period.js +0 -27
  112. package/scheduler/sites/reports/section.d.ts +0 -63
  113. package/scheduler/sites/reports/section.js +0 -174
  114. package/scheduler/sites/site.d.ts +0 -39
  115. package/scheduler/sites/site.js +0 -61
  116. package/scheduler/sites/workcenters/index.d.ts +0 -3
  117. package/scheduler/sites/workcenters/index.js +0 -19
  118. package/scheduler/sites/workcenters/position.d.ts +0 -27
  119. package/scheduler/sites/workcenters/position.js +0 -36
  120. package/scheduler/sites/workcenters/shift.d.ts +0 -32
  121. package/scheduler/sites/workcenters/shift.js +0 -47
  122. package/scheduler/sites/workcenters/workcenter.d.ts +0 -43
  123. package/scheduler/sites/workcenters/workcenter.js +0 -123
  124. package/scheduler/teams/company/company.d.ts +0 -99
  125. package/scheduler/teams/company/company.js +0 -256
  126. package/scheduler/teams/company/holiday.d.ts +0 -55
  127. package/scheduler/teams/company/holiday.js +0 -108
  128. package/scheduler/teams/company/index.d.ts +0 -3
  129. package/scheduler/teams/company/index.js +0 -19
  130. package/scheduler/teams/company/modperiod.d.ts +0 -21
  131. package/scheduler/teams/company/modperiod.js +0 -24
  132. package/scheduler/teams/contact.d.ts +0 -18
  133. package/scheduler/teams/contact.js +0 -23
  134. package/scheduler/teams/index.d.ts +0 -3
  135. package/scheduler/teams/index.js +0 -19
  136. package/scheduler/teams/specialty.d.ts +0 -18
  137. package/scheduler/teams/specialty.js +0 -23
  138. package/scheduler/teams/team.d.ts +0 -95
  139. package/scheduler/teams/team.js +0 -351
  140. package/users/index.d.ts +0 -2
  141. package/users/index.js +0 -18
  142. package/users/user.d.ts +0 -130
  143. package/users/user.js +0 -254
  144. package/users/web.d.ts +0 -22
  145. package/users/web.js +0 -2
@@ -1,143 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroundSystem = exports.GroundSystemExploitation = void 0;
4
- /**
5
- * This class implements the data members of the GroundSystemExploitation interface,
6
- * plus functions to used the object.
7
- */
8
- class GroundSystemExploitation {
9
- platformID;
10
- sensorType;
11
- exploitation;
12
- communicationID;
13
- enclaves;
14
- constructor(gse) {
15
- this.platformID = (gse) ? gse.platformID : '';
16
- this.sensorType = (gse) ? gse.sensorType : '';
17
- this.exploitation = (gse) ? gse.exploitation : '';
18
- this.communicationID = (gse) ? gse.communicationID : '';
19
- this.enclaves = [];
20
- if (gse && gse.enclaves) {
21
- gse.enclaves.forEach(en => {
22
- this.enclaves.push(en);
23
- });
24
- }
25
- }
26
- /**
27
- * This function is used in sorting a list of Ground System Exploitation objects.
28
- * @param other The ground system exploitation object for comparison
29
- * @returns The numeric value to indicate this object's relative position compared to
30
- * the other object.
31
- */
32
- compareTo(other) {
33
- if (other) {
34
- if (this.platformID === other.platformID) {
35
- if (this.sensorType === other.sensorType) {
36
- if (this.exploitation === other.exploitation) {
37
- return (this.communicationID < other.communicationID) ? -1 : 1;
38
- }
39
- return (this.exploitation < other.exploitation) ? -1 : 1;
40
- }
41
- return (this.sensorType < other.sensorType) ? -1 : 1;
42
- }
43
- return (this.platformID < other.platformID) ? -1 : 1;
44
- }
45
- return -1;
46
- }
47
- /**
48
- * This function will indicate if this exploitation should be used based on the
49
- * information provided.
50
- * @param platform The string value for the platform
51
- * @param sensor The string value for the sensor
52
- * @param exploit The string value for the exploitation
53
- * @param comm The string value for the communications
54
- * @param enclave The string value for the enclave
55
- * @returns boolean value to indicate whether all the conditions are present
56
- */
57
- use(platform, sensor, exploit, comm, enclave) {
58
- let answer = false;
59
- if (platform.toLowerCase() === this.platformID.toLowerCase()
60
- && sensor.toLowerCase() === this.sensorType.toLowerCase()
61
- && exploit.toLowerCase() === this.exploitation.toLowerCase()
62
- && comm.toLowerCase() === this.communicationID.toLowerCase()) {
63
- if (this.enclaves.length === 0)
64
- return true;
65
- if (enclave === '')
66
- return true;
67
- this.enclaves.forEach(enc => {
68
- if (enc.toLowerCase() === enclave.toLowerCase()) {
69
- answer = true;
70
- }
71
- });
72
- }
73
- return answer;
74
- }
75
- }
76
- exports.GroundSystemExploitation = GroundSystemExploitation;
77
- /**
78
- * This class implements the data members for a ground system, plus all the action to
79
- * use the object
80
- */
81
- class GroundSystem {
82
- id;
83
- enclaves;
84
- showOnGEOINT;
85
- showOnGSEG;
86
- showOnMIST;
87
- showOnXINT;
88
- checkForUse;
89
- exploitations;
90
- constructor(gs) {
91
- this.id = (gs) ? gs.id : '';
92
- this.enclaves = [];
93
- if (gs && gs.enclaves.length > 0) {
94
- gs.enclaves.forEach(en => {
95
- this.enclaves.push(en);
96
- });
97
- }
98
- this.showOnGEOINT = (gs) ? gs.showOnGEOINT : false;
99
- this.showOnGSEG = (gs) ? gs.showOnGSEG : false;
100
- this.showOnMIST = (gs) ? gs.showOnMIST : false;
101
- this.showOnXINT = (gs) ? gs.showOnXINT : false;
102
- this.checkForUse = (gs && gs.checkForUse) ? gs.checkForUse : false;
103
- this.exploitations = [];
104
- if (gs && gs.exploitations.length > 0) {
105
- gs.exploitations.forEach(ex => {
106
- this.exploitations.push(new GroundSystemExploitation(ex));
107
- });
108
- }
109
- }
110
- /**
111
- * This function will be used when sorting a list of ground system objects.
112
- * @param other The ground system object used for comparison
113
- * @returns a numeric value for whether this object is before or after the other.
114
- */
115
- compareTo(other) {
116
- if (other) {
117
- return (this.id < other.id) ? -1 : 1;
118
- }
119
- return -1;
120
- }
121
- /**
122
- * This function will indicate if this exploitation should be used based on the
123
- * information provided.
124
- * @param platform The string value for the platform
125
- * @param sensor The string value for the sensor
126
- * @param exploit The string value for the exploitation
127
- * @param comm The string value for the communications
128
- * @param enclave The string value for the enclave
129
- * @returns boolean value to indicate whether all the conditions are present
130
- */
131
- useSensor(platform, sensor, exploit, comm, enclave) {
132
- let answer = false;
133
- if (this.exploitations.length === 0)
134
- return true;
135
- this.exploitations.forEach(exp => {
136
- if (exp.use(platform, sensor, exploit, comm, enclave)) {
137
- answer = true;
138
- }
139
- });
140
- return answer;
141
- }
142
- }
143
- exports.GroundSystem = GroundSystem;
@@ -1,7 +0,0 @@
1
- export * from './classifications';
2
- export * from './communications';
3
- export * from './dcgs';
4
- export * from './exploitations';
5
- export * from './groundSystems';
6
- export * from './platform';
7
- export * from './systeminfo';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./classifications"), exports);
18
- __exportStar(require("./communications"), exports);
19
- __exportStar(require("./dcgs"), exports);
20
- __exportStar(require("./exploitations"), exports);
21
- __exportStar(require("./groundSystems"), exports);
22
- __exportStar(require("./platform"), exports);
23
- __exportStar(require("./systeminfo"), exports);
@@ -1,124 +0,0 @@
1
- import { IImageType, ImageType } from "../images";
2
- /**
3
- * This interface will defined the data members of a sensor's standard times
4
- */
5
- export interface ISensorTimes {
6
- preflightMinutes: number;
7
- scheduledMinutes: number;
8
- postflightMinutes: number;
9
- executedMinutes?: number;
10
- }
11
- /**
12
- * This class defines the created object for sensor's standard times
13
- */
14
- export declare class SensorTimes implements ISensorTimes {
15
- preflightMinutes: number;
16
- scheduledMinutes: number;
17
- postflightMinutes: number;
18
- executedMinutes?: number;
19
- constructor(st?: ISensorTimes);
20
- }
21
- /**
22
- * This interface defines the data members for a sensor's exploitation record.
23
- */
24
- export interface ISensorExploitation {
25
- exploitation: string;
26
- showOnGEOINT: boolean;
27
- showOnGSEG: boolean;
28
- showOnMIST: boolean;
29
- showOnXINT: boolean;
30
- standardTimes: ISensorTimes;
31
- }
32
- /**
33
- * This class defines the data members plus actions for a sensor's exploitation.
34
- */
35
- export declare class SensorExploitation {
36
- exploitation: string;
37
- showOnGEOINT: boolean;
38
- showOnGSEG: boolean;
39
- showOnMIST: boolean;
40
- showOnXINT: boolean;
41
- standardTimes: ISensorTimes;
42
- constructor(se?: ISensorExploitation);
43
- compareTo(other?: SensorExploitation): number;
44
- }
45
- export declare enum GeneralTypes {
46
- GEOINT = 1,
47
- XINT = 2,
48
- MIST = 3,
49
- SYERS = 4,
50
- ADMIN = 9,
51
- OTHER = 99,
52
- ALL = 9999
53
- }
54
- /**
55
- * This interface defines the data members for a platform's sensor
56
- */
57
- export interface IPlatformSensor {
58
- id: string;
59
- association: string;
60
- generalType: GeneralTypes;
61
- showTailNumber: boolean;
62
- sortID: number;
63
- exploitations?: ISensorExploitation[];
64
- imageTypes?: IImageType[];
65
- }
66
- /**
67
- * This class defines the data members and actions associated with a platform's sensor
68
- */
69
- export declare class PlatformSensor {
70
- id: string;
71
- association: string;
72
- generalType: GeneralTypes;
73
- showTailNumber: boolean;
74
- sortID: number;
75
- exploitations?: SensorExploitation[];
76
- imageTypes?: ImageType[];
77
- constructor(ps?: IPlatformSensor);
78
- /**
79
- * This function will be used to sort this object as compared to another.
80
- * @param other A Platform Sensor object to compare with
81
- * @returns A numeric value to show whether this object is before or after the other.
82
- */
83
- compareTo(other?: PlatformSensor): number;
84
- /**
85
- * This method is used to determine if this object meets the requirement for use, based
86
- * on the exploitation and general type.
87
- * @param exploit The string value for the exploitation.
88
- * @param rpt The general type value for the sensor type for use.
89
- * @returns A boolean value to indicate whether or not it should be used.
90
- */
91
- use(exploit: string, rpt: GeneralTypes): boolean;
92
- }
93
- /**
94
- * This interface defines the data members of a platform object.
95
- */
96
- export interface IPlatform {
97
- id: string;
98
- sensors: IPlatformSensor[];
99
- sortID: number;
100
- }
101
- /**
102
- * This class defines the data members plus actions for a platform object
103
- */
104
- export declare class Platform implements IPlatform {
105
- id: string;
106
- sensors: PlatformSensor[];
107
- sortID: number;
108
- constructor(pl: IPlatform);
109
- /**
110
- * This function will be used in sorting this platform from other platforms
111
- * @param other The platform object to be used in comparison.
112
- * @returns A numeric value to indicate whether this object should be placed before the
113
- * other.
114
- */
115
- compareTo(other?: Platform): number;
116
- /**
117
- * This method is used to determine if this object meets the requirement for use, based
118
- * on the exploitation and general type.
119
- * @param exploit The string value for the exploitation.
120
- * @param rpt The general type value for the sensor type for use.
121
- * @returns A boolean value to indicate whether or not it should be used.
122
- */
123
- use(exploit: string, rpt: GeneralTypes): boolean;
124
- }
@@ -1,176 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Platform = exports.PlatformSensor = exports.GeneralTypes = exports.SensorExploitation = exports.SensorTimes = void 0;
4
- const images_1 = require("../images");
5
- /**
6
- * This class defines the created object for sensor's standard times
7
- */
8
- class SensorTimes {
9
- preflightMinutes;
10
- scheduledMinutes;
11
- postflightMinutes;
12
- executedMinutes;
13
- constructor(st) {
14
- this.postflightMinutes = (st) ? st.postflightMinutes : 0;
15
- this.preflightMinutes = (st) ? st.preflightMinutes : 0;
16
- this.scheduledMinutes = (st) ? st.scheduledMinutes : 0;
17
- this.executedMinutes = (st && st.executedMinutes) ? st?.executedMinutes : undefined;
18
- }
19
- }
20
- exports.SensorTimes = SensorTimes;
21
- /**
22
- * This class defines the data members plus actions for a sensor's exploitation.
23
- */
24
- class SensorExploitation {
25
- exploitation;
26
- showOnGEOINT;
27
- showOnGSEG;
28
- showOnMIST;
29
- showOnXINT;
30
- standardTimes;
31
- constructor(se) {
32
- this.exploitation = (se) ? se.exploitation : '';
33
- this.showOnGEOINT = (se) ? se.showOnGEOINT : false;
34
- this.showOnGSEG = (se) ? se.showOnGSEG : false;
35
- this.showOnMIST = (se) ? se.showOnMIST : false;
36
- this.showOnXINT = (se) ? se.showOnXINT : false;
37
- this.standardTimes = (se) ? new SensorTimes(se.standardTimes) : new SensorTimes();
38
- }
39
- compareTo(other) {
40
- if (other) {
41
- return (this.exploitation < other.exploitation) ? -1 : 1;
42
- }
43
- return -1;
44
- }
45
- }
46
- exports.SensorExploitation = SensorExploitation;
47
- var GeneralTypes;
48
- (function (GeneralTypes) {
49
- GeneralTypes[GeneralTypes["GEOINT"] = 1] = "GEOINT";
50
- GeneralTypes[GeneralTypes["XINT"] = 2] = "XINT";
51
- GeneralTypes[GeneralTypes["MIST"] = 3] = "MIST";
52
- GeneralTypes[GeneralTypes["SYERS"] = 4] = "SYERS";
53
- GeneralTypes[GeneralTypes["ADMIN"] = 9] = "ADMIN";
54
- GeneralTypes[GeneralTypes["OTHER"] = 99] = "OTHER";
55
- GeneralTypes[GeneralTypes["ALL"] = 9999] = "ALL";
56
- })(GeneralTypes || (exports.GeneralTypes = GeneralTypes = {}));
57
- /**
58
- * This class defines the data members and actions associated with a platform's sensor
59
- */
60
- class PlatformSensor {
61
- id;
62
- association;
63
- generalType;
64
- showTailNumber;
65
- sortID;
66
- exploitations;
67
- imageTypes;
68
- constructor(ps) {
69
- this.id = (ps) ? ps.id : '';
70
- this.association = (ps) ? ps.association : '';
71
- this.generalType = (ps) ? ps.generalType : GeneralTypes.OTHER;
72
- this.showTailNumber = (ps) ? ps.showTailNumber : false;
73
- this.sortID = (ps) ? ps.sortID : 0;
74
- if (ps && ps.exploitations) {
75
- this.exploitations = [];
76
- ps.exploitations.forEach(ex => {
77
- this.exploitations?.push(new SensorExploitation(ex));
78
- });
79
- this.exploitations.sort((a, b) => a.compareTo(b));
80
- }
81
- if (ps && ps.imageTypes) {
82
- this.imageTypes = [];
83
- ps.imageTypes.forEach(it => {
84
- this.imageTypes?.push(new images_1.ImageType(it));
85
- });
86
- }
87
- }
88
- /**
89
- * This function will be used to sort this object as compared to another.
90
- * @param other A Platform Sensor object to compare with
91
- * @returns A numeric value to show whether this object is before or after the other.
92
- */
93
- compareTo(other) {
94
- if (other) {
95
- return (this.sortID < other.sortID) ? -1 : 1;
96
- }
97
- return -1;
98
- }
99
- /**
100
- * This method is used to determine if this object meets the requirement for use, based
101
- * on the exploitation and general type.
102
- * @param exploit The string value for the exploitation.
103
- * @param rpt The general type value for the sensor type for use.
104
- * @returns A boolean value to indicate whether or not it should be used.
105
- */
106
- use(exploit, rpt) {
107
- let answer = false;
108
- if (rpt <= 0 || rpt > GeneralTypes.SYERS) {
109
- rpt = GeneralTypes.ALL;
110
- }
111
- if (this.exploitations) {
112
- this.exploitations.forEach(exp => {
113
- if ((exp.exploitation.toLowerCase().indexOf(exploit.toLowerCase()) >= 0)
114
- && (rpt === GeneralTypes.ALL || (rpt === GeneralTypes.XINT && exp.showOnXINT)
115
- || (rpt === GeneralTypes.GEOINT && exp.showOnGEOINT)
116
- || (rpt === GeneralTypes.SYERS && exp.showOnGSEG)
117
- || (rpt === GeneralTypes.MIST && exp.showOnMIST))) {
118
- answer = true;
119
- }
120
- });
121
- }
122
- return answer;
123
- }
124
- }
125
- exports.PlatformSensor = PlatformSensor;
126
- /**
127
- * This class defines the data members plus actions for a platform object
128
- */
129
- class Platform {
130
- id;
131
- sensors;
132
- sortID;
133
- constructor(pl) {
134
- this.id = (pl) ? pl.id : '';
135
- this.sensors = [];
136
- if (pl && pl.sensors.length > 0) {
137
- pl.sensors.forEach(sen => {
138
- this.sensors.push(new PlatformSensor(sen));
139
- });
140
- this.sensors.sort((a, b) => a.compareTo(b));
141
- }
142
- this.sortID = (pl) ? pl.sortID : 0;
143
- }
144
- /**
145
- * This function will be used in sorting this platform from other platforms
146
- * @param other The platform object to be used in comparison.
147
- * @returns A numeric value to indicate whether this object should be placed before the
148
- * other.
149
- */
150
- compareTo(other) {
151
- if (other) {
152
- return (this.sortID < other.sortID) ? -1 : 1;
153
- }
154
- return -1;
155
- }
156
- /**
157
- * This method is used to determine if this object meets the requirement for use, based
158
- * on the exploitation and general type.
159
- * @param exploit The string value for the exploitation.
160
- * @param rpt The general type value for the sensor type for use.
161
- * @returns A boolean value to indicate whether or not it should be used.
162
- */
163
- use(exploit, rpt) {
164
- if (rpt < GeneralTypes.GEOINT || rpt > GeneralTypes.SYERS) {
165
- rpt = GeneralTypes.ALL;
166
- }
167
- let answer = false;
168
- this.sensors.forEach(sen => {
169
- if (sen.use(exploit, rpt)) {
170
- answer = true;
171
- }
172
- });
173
- return answer;
174
- }
175
- }
176
- exports.Platform = Platform;
@@ -1,28 +0,0 @@
1
- import { Classification, IClassification } from "./classifications";
2
- import { Communication, ICommunication } from "./communications";
3
- import { DCGS, IDCGS } from "./dcgs";
4
- import { Exploitation, IExploitation } from "./exploitations";
5
- import { GroundSystem, IGroundSystem } from "./groundSystems";
6
- import { IPlatform, Platform } from "./platform";
7
- /**
8
- * This interface will define the data members for the overall system data obtained from
9
- * a json document on the server. A class inplementation will also be included to allow
10
- * all the data to be compiled, sorted and sent to the client.
11
- */
12
- export interface ISystemInfo {
13
- classifications?: IClassification[];
14
- communications?: ICommunication[];
15
- dCGSs?: IDCGS[];
16
- exploitations?: IExploitation[];
17
- groundSystems?: IGroundSystem[];
18
- platforms?: IPlatform[];
19
- }
20
- export declare class SystemInfo implements ISystemInfo {
21
- classifications?: Classification[] | undefined;
22
- communications?: Communication[] | undefined;
23
- dCGSs?: DCGS[] | undefined;
24
- exploitations?: Exploitation[] | undefined;
25
- groundSystems?: GroundSystem[] | undefined;
26
- platforms?: Platform[] | undefined;
27
- constructor(si?: ISystemInfo);
28
- }
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SystemInfo = void 0;
4
- const classifications_1 = require("./classifications");
5
- const communications_1 = require("./communications");
6
- const dcgs_1 = require("./dcgs");
7
- const exploitations_1 = require("./exploitations");
8
- const groundSystems_1 = require("./groundSystems");
9
- const platform_1 = require("./platform");
10
- class SystemInfo {
11
- classifications;
12
- communications;
13
- dCGSs;
14
- exploitations;
15
- groundSystems;
16
- platforms;
17
- constructor(si) {
18
- if (si) {
19
- if (si.classifications) {
20
- this.classifications = [];
21
- si.classifications.forEach(cl => {
22
- this.classifications?.push(new classifications_1.Classification(cl));
23
- });
24
- this.classifications.sort((a, b) => a.compareTo(b));
25
- }
26
- if (si.communications) {
27
- this.communications = [];
28
- si.communications.forEach(com => {
29
- this.communications?.push(new communications_1.Communication(com));
30
- });
31
- this.communications.sort((a, b) => a.compareTo(b));
32
- }
33
- if (si.dCGSs) {
34
- this.dCGSs = [];
35
- si.dCGSs.forEach(d => {
36
- this.dCGSs?.push(new dcgs_1.DCGS(d));
37
- });
38
- this.dCGSs.sort((a, b) => a.compareTo(b));
39
- }
40
- if (si.exploitations) {
41
- this.exploitations = [];
42
- si.exploitations.forEach(exp => {
43
- this.exploitations?.push(new exploitations_1.Exploitation(exp));
44
- });
45
- this.exploitations.sort((a, b) => a.compareTo(b));
46
- }
47
- if (si.groundSystems) {
48
- this.groundSystems = [];
49
- si.groundSystems.forEach(gs => {
50
- this.groundSystems?.push(new groundSystems_1.GroundSystem(gs));
51
- });
52
- this.groundSystems.sort((a, b) => a.compareTo(b));
53
- }
54
- if (si.platforms) {
55
- this.platforms = [];
56
- si.platforms.forEach(plat => {
57
- this.platforms?.push(new platform_1.Platform(plat));
58
- });
59
- this.platforms.sort((a, b) => a.compareTo(b));
60
- }
61
- }
62
- }
63
- }
64
- exports.SystemInfo = SystemInfo;