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