scheduler-node-models 1.1.31 → 1.1.33
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.
|
@@ -58,7 +58,7 @@ class GroundSystemExploitation {
|
|
|
58
58
|
let answer = false;
|
|
59
59
|
if (platform.toLowerCase() === this.platformID.toLowerCase()
|
|
60
60
|
&& sensor.toLowerCase() === this.sensorType.toLowerCase()
|
|
61
|
-
&&
|
|
61
|
+
&& this.exploitation.toLowerCase().indexOf(exploit.toLowerCase()) >= 0
|
|
62
62
|
&& comm.toLowerCase() === this.communicationID.toLowerCase()) {
|
|
63
63
|
if (this.enclaves.length === 0)
|
|
64
64
|
return true;
|
|
@@ -129,9 +129,9 @@ class GroundSystem {
|
|
|
129
129
|
* @returns boolean value to indicate whether all the conditions are present
|
|
130
130
|
*/
|
|
131
131
|
useSensor(platform, sensor, exploit, comm, enclave) {
|
|
132
|
-
let answer = false;
|
|
133
132
|
if (this.exploitations.length === 0)
|
|
134
133
|
return true;
|
|
134
|
+
let answer = false;
|
|
135
135
|
this.exploitations.forEach(exp => {
|
|
136
136
|
if (exp.use(platform, sensor, exploit, comm, enclave)) {
|
|
137
137
|
answer = true;
|