@dnv-plant/typescriptpws 1.0.86 → 1.0.88
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/.vscode/launch.json +16 -0
- package/azure-test-folder-job.yml +2 -2
- package/index.ts +3 -3
- package/package.json +7 -6
- package/src/calculations/applicationTools.ts +29 -36
- package/src/calculations/discharge.ts +423 -321
- package/src/calculations/dispersion.ts +52 -84
- package/src/calculations/dispersionView.ts +311 -549
- package/src/calculations/fireball.ts +45 -69
- package/src/calculations/jetFire.ts +80 -129
- package/src/calculations/lateExplosion.ts +120 -210
- package/src/calculations/linkedRunners.ts +727 -1275
- package/src/calculations/poolFire.ts +45 -69
- package/src/calculations/properties.ts +32 -42
- package/src/calculations/radiation.ts +415 -714
- package/src/calculations/standalones.ts +39 -57
- package/src/calculations/toxics.ts +50 -78
- package/src/calculations/utilities.ts +357 -588
- package/src/constants.ts +9 -3
- package/src/entities.ts +3 -3
- package/src/entity-schemas.ts +3 -3
- package/src/enums.ts +4 -27
- package/src/materials.ts +236 -75
- package/src/utilities.ts +40 -9
- package/tsconfig.json +0 -100
- package/vitest.config.ts +9 -0
|
@@ -6,12 +6,10 @@
|
|
|
6
6
|
* Editing it may lead to inconsistent results and limit DNV's ability to provide support.
|
|
7
7
|
* Please contact DNV if you believe changes are required.
|
|
8
8
|
*
|
|
9
|
-
* Version: 1.0.
|
|
10
|
-
* Date/time:
|
|
9
|
+
* Version: 1.0.89
|
|
10
|
+
* Date/time: 29 Jul 2025 17:59:11
|
|
11
11
|
* Template: templates/typescriptpws/calculations.razor.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
***********************************************************************/
|
|
15
13
|
|
|
16
14
|
import * as Enums from "../enums";
|
|
17
15
|
import * as Entities from "../entities";
|
|
@@ -36,12 +34,17 @@ class CalculationBase {
|
|
|
36
34
|
messages: string[] = [];
|
|
37
35
|
calculationElapsedTime?: number = 0.0;
|
|
38
36
|
operationId?: string = "";
|
|
37
|
+
controller?: AbortController;
|
|
38
|
+
|
|
39
|
+
constructor(controller?: AbortController) {
|
|
40
|
+
this.controller = controller;
|
|
41
|
+
}
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
44
|
* Post JSON to URL and time the call
|
|
42
45
|
*/
|
|
43
46
|
async postRequest(url: string, data: string): Promise<AxiosResponse> {
|
|
44
|
-
return postRequest(url, data);
|
|
47
|
+
return postRequest(url, data, this.controller);
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
/**
|
|
@@ -175,15 +178,8 @@ class DistancesAndEllipsesToRadiationLevelsCalculationRequest extends Calculatio
|
|
|
175
178
|
/**
|
|
176
179
|
* DistancesAndEllipsesToRadiationLevels calculation request class.
|
|
177
180
|
*
|
|
178
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
179
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
180
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
181
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
182
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
183
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - Array of flammable output configs.
|
|
184
|
-
* @param {number} flammableOutputConfigCount - Number of radiation levels.
|
|
185
181
|
*/
|
|
186
|
-
constructor(
|
|
182
|
+
constructor(data: {
|
|
187
183
|
flameResult: Entities.FlameResult,
|
|
188
184
|
flameRecords: Entities.FlameRecord[],
|
|
189
185
|
flameRecordCount: number,
|
|
@@ -191,15 +187,15 @@ class DistancesAndEllipsesToRadiationLevelsCalculationRequest extends Calculatio
|
|
|
191
187
|
flammableParameters: Entities.FlammableParameters,
|
|
192
188
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
193
189
|
flammableOutputConfigCount: number
|
|
194
|
-
) {
|
|
190
|
+
}) {
|
|
195
191
|
super();
|
|
196
|
-
this.flameResult = flameResult;
|
|
197
|
-
this.flameRecords = flameRecords;
|
|
198
|
-
this.flameRecordCount = flameRecordCount;
|
|
199
|
-
this.weather = weather;
|
|
200
|
-
this.flammableParameters = flammableParameters;
|
|
201
|
-
this.flammableOutputConfigs = flammableOutputConfigs;
|
|
202
|
-
this.flammableOutputConfigCount = flammableOutputConfigCount;
|
|
192
|
+
this.flameResult = data.flameResult;
|
|
193
|
+
this.flameRecords = data.flameRecords;
|
|
194
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
195
|
+
this.weather = data.weather;
|
|
196
|
+
this.flammableParameters = data.flammableParameters;
|
|
197
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
198
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
|
|
@@ -241,15 +237,7 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationRequestSchema {
|
|
|
241
237
|
}
|
|
242
238
|
|
|
243
239
|
makeCalculationRequest(data: DistancesAndEllipsesToRadiationLevelsCalculationRequestSchemaData): DistancesAndEllipsesToRadiationLevelsCalculationRequest {
|
|
244
|
-
return new DistancesAndEllipsesToRadiationLevelsCalculationRequest(
|
|
245
|
-
data.flameResult,
|
|
246
|
-
data.flameRecords,
|
|
247
|
-
data.flameRecordCount,
|
|
248
|
-
data.weather,
|
|
249
|
-
data.flammableParameters,
|
|
250
|
-
data.flammableOutputConfigs,
|
|
251
|
-
data.flammableOutputConfigCount
|
|
252
|
-
);
|
|
240
|
+
return new DistancesAndEllipsesToRadiationLevelsCalculationRequest(data);
|
|
253
241
|
}
|
|
254
242
|
}
|
|
255
243
|
|
|
@@ -269,15 +257,8 @@ export class DistancesAndEllipsesToRadiationLevelsCalculation extends Calculatio
|
|
|
269
257
|
/**
|
|
270
258
|
* Calculates the distances and ellipses to specified radiation intensity levels from a flame model. This calculation can be called after fireball and jet fire calculation.
|
|
271
259
|
*
|
|
272
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
273
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
274
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
275
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
276
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
277
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - Array of flammable output configs.
|
|
278
|
-
* @param {number} flammableOutputConfigCount - Number of radiation levels.
|
|
279
260
|
*/
|
|
280
|
-
constructor(
|
|
261
|
+
constructor(data: {
|
|
281
262
|
flameResult: Entities.FlameResult,
|
|
282
263
|
flameRecords: Entities.FlameRecord[],
|
|
283
264
|
flameRecordCount: number,
|
|
@@ -285,28 +266,29 @@ export class DistancesAndEllipsesToRadiationLevelsCalculation extends Calculatio
|
|
|
285
266
|
flammableParameters: Entities.FlammableParameters,
|
|
286
267
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
287
268
|
flammableOutputConfigCount: number
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
269
|
+
controller?: AbortController;
|
|
270
|
+
}) {
|
|
271
|
+
super(data.controller);
|
|
272
|
+
this.flameResult = data.flameResult;
|
|
273
|
+
this.flameRecords = data.flameRecords;
|
|
274
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
275
|
+
this.weather = data.weather;
|
|
276
|
+
this.flammableParameters = data.flammableParameters;
|
|
277
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
278
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
297
279
|
}
|
|
298
280
|
|
|
299
281
|
async run() {
|
|
300
282
|
try {
|
|
301
|
-
const request = new DistancesAndEllipsesToRadiationLevelsCalculationRequest(
|
|
302
|
-
this.flameResult,
|
|
303
|
-
this.flameRecords,
|
|
304
|
-
this.flameRecordCount,
|
|
305
|
-
this.weather,
|
|
306
|
-
this.flammableParameters,
|
|
307
|
-
this.flammableOutputConfigs,
|
|
308
|
-
this.flammableOutputConfigCount
|
|
309
|
-
);
|
|
283
|
+
const request = new DistancesAndEllipsesToRadiationLevelsCalculationRequest({
|
|
284
|
+
flameResult: this.flameResult,
|
|
285
|
+
flameRecords: this.flameRecords,
|
|
286
|
+
flameRecordCount: this.flameRecordCount,
|
|
287
|
+
weather: this.weather,
|
|
288
|
+
flammableParameters: this.flammableParameters,
|
|
289
|
+
flammableOutputConfigs: this.flammableOutputConfigs,
|
|
290
|
+
flammableOutputConfigCount: this.flammableOutputConfigCount
|
|
291
|
+
});
|
|
310
292
|
|
|
311
293
|
const schema = new DistancesAndEllipsesToRadiationLevelsCalculationRequestSchema();
|
|
312
294
|
const validatedRequest = schema.validate(request);
|
|
@@ -394,12 +376,8 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponse extends Ca
|
|
|
394
376
|
/**
|
|
395
377
|
* DistancesAndEllipsesToRadiationLevels calculation response class.
|
|
396
378
|
*
|
|
397
|
-
* @param {number[]} distances - an array of distances to radiation levels, corresponding to the flammable output configs.
|
|
398
|
-
* @param {Entities.LocalPosition[]} contourPoints - Contour points of radiation ellipses to radiation levels.
|
|
399
|
-
* @param {number[]} nContourPoints - an array of the number of contour points, corresponding to the flammable output configs.
|
|
400
|
-
* @param {number[]} areas - an array of areas of the ellipses to radiation levels, corresponding to the flammable output configs.
|
|
401
379
|
*/
|
|
402
|
-
constructor(
|
|
380
|
+
constructor(data: {
|
|
403
381
|
distances: number[],
|
|
404
382
|
contourPoints: Entities.LocalPosition[],
|
|
405
383
|
nContourPoints: number[],
|
|
@@ -408,16 +386,16 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponse extends Ca
|
|
|
408
386
|
messages: string[],
|
|
409
387
|
calculationElapsedTime: number,
|
|
410
388
|
operationId: string
|
|
411
|
-
) {
|
|
389
|
+
}) {
|
|
412
390
|
super();
|
|
413
|
-
this.distances = distances;
|
|
414
|
-
this.contourPoints = contourPoints;
|
|
415
|
-
this.nContourPoints = nContourPoints;
|
|
416
|
-
this.areas = areas;
|
|
417
|
-
this.resultCode = resultCode;
|
|
418
|
-
this.messages = messages;
|
|
419
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
420
|
-
this.operationId = operationId;
|
|
391
|
+
this.distances = data.distances;
|
|
392
|
+
this.contourPoints = data.contourPoints;
|
|
393
|
+
this.nContourPoints = data.nContourPoints;
|
|
394
|
+
this.areas = data.areas;
|
|
395
|
+
this.resultCode = data.resultCode;
|
|
396
|
+
this.messages = data.messages;
|
|
397
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
398
|
+
this.operationId = data.operationId;
|
|
421
399
|
}
|
|
422
400
|
|
|
423
401
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -502,16 +480,7 @@ export class DistancesAndEllipsesToRadiationLevelsCalculationResponseSchema {
|
|
|
502
480
|
}
|
|
503
481
|
|
|
504
482
|
makeCalculationResponse(data: DistancesAndEllipsesToRadiationLevelsCalculationResponseSchemaData): DistancesAndEllipsesToRadiationLevelsCalculationResponse {
|
|
505
|
-
return new DistancesAndEllipsesToRadiationLevelsCalculationResponse(
|
|
506
|
-
data.distances,
|
|
507
|
-
data.contourPoints,
|
|
508
|
-
data.nContourPoints,
|
|
509
|
-
data.areas,
|
|
510
|
-
data.resultCode,
|
|
511
|
-
data.messages,
|
|
512
|
-
data.calculationElapsedTime,
|
|
513
|
-
data.operationId
|
|
514
|
-
);
|
|
483
|
+
return new DistancesAndEllipsesToRadiationLevelsCalculationResponse(data);
|
|
515
484
|
}
|
|
516
485
|
}
|
|
517
486
|
|
|
@@ -537,15 +506,8 @@ class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest extend
|
|
|
537
506
|
/**
|
|
538
507
|
* DistancesAndEllipsesToRadiationLevelsForPoolFires calculation request class.
|
|
539
508
|
*
|
|
540
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar pool fire flame results.
|
|
541
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
542
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
543
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
544
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
545
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - an array of flammable output configs.
|
|
546
|
-
* @param {number} flammableOutputConfigCount - Number of radiation levels.
|
|
547
509
|
*/
|
|
548
|
-
constructor(
|
|
510
|
+
constructor(data: {
|
|
549
511
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
550
512
|
flameRecords: Entities.FlameRecord[],
|
|
551
513
|
flameRecordCount: number,
|
|
@@ -553,15 +515,15 @@ class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest extend
|
|
|
553
515
|
flammableParameters: Entities.FlammableParameters,
|
|
554
516
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
555
517
|
flammableOutputConfigCount: number
|
|
556
|
-
) {
|
|
518
|
+
}) {
|
|
557
519
|
super();
|
|
558
|
-
this.poolFireFlameResult = poolFireFlameResult;
|
|
559
|
-
this.flameRecords = flameRecords;
|
|
560
|
-
this.flameRecordCount = flameRecordCount;
|
|
561
|
-
this.weather = weather;
|
|
562
|
-
this.flammableParameters = flammableParameters;
|
|
563
|
-
this.flammableOutputConfigs = flammableOutputConfigs;
|
|
564
|
-
this.flammableOutputConfigCount = flammableOutputConfigCount;
|
|
520
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
521
|
+
this.flameRecords = data.flameRecords;
|
|
522
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
523
|
+
this.weather = data.weather;
|
|
524
|
+
this.flammableParameters = data.flammableParameters;
|
|
525
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
526
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
565
527
|
}
|
|
566
528
|
}
|
|
567
529
|
|
|
@@ -603,15 +565,7 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest
|
|
|
603
565
|
}
|
|
604
566
|
|
|
605
567
|
makeCalculationRequest(data: DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequestSchemaData): DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest {
|
|
606
|
-
return new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest(
|
|
607
|
-
data.poolFireFlameResult,
|
|
608
|
-
data.flameRecords,
|
|
609
|
-
data.flameRecordCount,
|
|
610
|
-
data.weather,
|
|
611
|
-
data.flammableParameters,
|
|
612
|
-
data.flammableOutputConfigs,
|
|
613
|
-
data.flammableOutputConfigCount
|
|
614
|
-
);
|
|
568
|
+
return new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest(data);
|
|
615
569
|
}
|
|
616
570
|
}
|
|
617
571
|
|
|
@@ -631,15 +585,8 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation extend
|
|
|
631
585
|
/**
|
|
632
586
|
* Calculates the distances and ellipses to specified radiation intensity levels from a flame model. This calculation can be called after pool fire calculation.
|
|
633
587
|
*
|
|
634
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar pool fire flame results.
|
|
635
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
636
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
637
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
638
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
639
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - an array of flammable output configs.
|
|
640
|
-
* @param {number} flammableOutputConfigCount - Number of radiation levels.
|
|
641
588
|
*/
|
|
642
|
-
constructor(
|
|
589
|
+
constructor(data: {
|
|
643
590
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
644
591
|
flameRecords: Entities.FlameRecord[],
|
|
645
592
|
flameRecordCount: number,
|
|
@@ -647,28 +594,29 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculation extend
|
|
|
647
594
|
flammableParameters: Entities.FlammableParameters,
|
|
648
595
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
649
596
|
flammableOutputConfigCount: number
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
597
|
+
controller?: AbortController;
|
|
598
|
+
}) {
|
|
599
|
+
super(data.controller);
|
|
600
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
601
|
+
this.flameRecords = data.flameRecords;
|
|
602
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
603
|
+
this.weather = data.weather;
|
|
604
|
+
this.flammableParameters = data.flammableParameters;
|
|
605
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
606
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
659
607
|
}
|
|
660
608
|
|
|
661
609
|
async run() {
|
|
662
610
|
try {
|
|
663
|
-
const request = new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest(
|
|
664
|
-
this.poolFireFlameResult,
|
|
665
|
-
this.flameRecords,
|
|
666
|
-
this.flameRecordCount,
|
|
667
|
-
this.weather,
|
|
668
|
-
this.flammableParameters,
|
|
669
|
-
this.flammableOutputConfigs,
|
|
670
|
-
this.flammableOutputConfigCount
|
|
671
|
-
);
|
|
611
|
+
const request = new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequest({
|
|
612
|
+
poolFireFlameResult: this.poolFireFlameResult,
|
|
613
|
+
flameRecords: this.flameRecords,
|
|
614
|
+
flameRecordCount: this.flameRecordCount,
|
|
615
|
+
weather: this.weather,
|
|
616
|
+
flammableParameters: this.flammableParameters,
|
|
617
|
+
flammableOutputConfigs: this.flammableOutputConfigs,
|
|
618
|
+
flammableOutputConfigCount: this.flammableOutputConfigCount
|
|
619
|
+
});
|
|
672
620
|
|
|
673
621
|
const schema = new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRequestSchema();
|
|
674
622
|
const validatedRequest = schema.validate(request);
|
|
@@ -756,12 +704,8 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
|
|
|
756
704
|
/**
|
|
757
705
|
* DistancesAndEllipsesToRadiationLevelsForPoolFires calculation response class.
|
|
758
706
|
*
|
|
759
|
-
* @param {number[]} distances - an array of distances to radiation levels, corresponding to the flammable output configs.
|
|
760
|
-
* @param {Entities.LocalPosition[]} contourPoints - Contour points of radiation ellipses to radiation levels.
|
|
761
|
-
* @param {number[]} nContourPoints - an array of the number of contour points, corresponding to the flammable output configs.
|
|
762
|
-
* @param {number[]} areas - an array of areas of the ellipses to radiation levels, responding to the flammable output configs.
|
|
763
707
|
*/
|
|
764
|
-
constructor(
|
|
708
|
+
constructor(data: {
|
|
765
709
|
distances: number[],
|
|
766
710
|
contourPoints: Entities.LocalPosition[],
|
|
767
711
|
nContourPoints: number[],
|
|
@@ -770,16 +714,16 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
|
|
|
770
714
|
messages: string[],
|
|
771
715
|
calculationElapsedTime: number,
|
|
772
716
|
operationId: string
|
|
773
|
-
) {
|
|
717
|
+
}) {
|
|
774
718
|
super();
|
|
775
|
-
this.distances = distances;
|
|
776
|
-
this.contourPoints = contourPoints;
|
|
777
|
-
this.nContourPoints = nContourPoints;
|
|
778
|
-
this.areas = areas;
|
|
779
|
-
this.resultCode = resultCode;
|
|
780
|
-
this.messages = messages;
|
|
781
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
782
|
-
this.operationId = operationId;
|
|
719
|
+
this.distances = data.distances;
|
|
720
|
+
this.contourPoints = data.contourPoints;
|
|
721
|
+
this.nContourPoints = data.nContourPoints;
|
|
722
|
+
this.areas = data.areas;
|
|
723
|
+
this.resultCode = data.resultCode;
|
|
724
|
+
this.messages = data.messages;
|
|
725
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
726
|
+
this.operationId = data.operationId;
|
|
783
727
|
}
|
|
784
728
|
|
|
785
729
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -864,16 +808,7 @@ export class DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationRespons
|
|
|
864
808
|
}
|
|
865
809
|
|
|
866
810
|
makeCalculationResponse(data: DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponseSchemaData): DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponse {
|
|
867
|
-
return new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponse(
|
|
868
|
-
data.distances,
|
|
869
|
-
data.contourPoints,
|
|
870
|
-
data.nContourPoints,
|
|
871
|
-
data.areas,
|
|
872
|
-
data.resultCode,
|
|
873
|
-
data.messages,
|
|
874
|
-
data.calculationElapsedTime,
|
|
875
|
-
data.operationId
|
|
876
|
-
);
|
|
811
|
+
return new DistancesAndEllipsesToRadiationLevelsForPoolFiresCalculationResponse(data);
|
|
877
812
|
}
|
|
878
813
|
}
|
|
879
814
|
|
|
@@ -899,15 +834,8 @@ class DistancesToRadiationLevelsCalculationRequest extends CalculationRequestBas
|
|
|
899
834
|
/**
|
|
900
835
|
* DistancesToRadiationLevels calculation request class.
|
|
901
836
|
*
|
|
902
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
903
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
904
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
905
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
906
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
907
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - an array of flammable output configs.
|
|
908
|
-
* @param {number} flammableOutputConfigCount - Number of flammable output configs.
|
|
909
837
|
*/
|
|
910
|
-
constructor(
|
|
838
|
+
constructor(data: {
|
|
911
839
|
flameResult: Entities.FlameResult,
|
|
912
840
|
flameRecords: Entities.FlameRecord[],
|
|
913
841
|
flameRecordCount: number,
|
|
@@ -915,15 +843,15 @@ class DistancesToRadiationLevelsCalculationRequest extends CalculationRequestBas
|
|
|
915
843
|
flammableParameters: Entities.FlammableParameters,
|
|
916
844
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
917
845
|
flammableOutputConfigCount: number
|
|
918
|
-
) {
|
|
846
|
+
}) {
|
|
919
847
|
super();
|
|
920
|
-
this.flameResult = flameResult;
|
|
921
|
-
this.flameRecords = flameRecords;
|
|
922
|
-
this.flameRecordCount = flameRecordCount;
|
|
923
|
-
this.weather = weather;
|
|
924
|
-
this.flammableParameters = flammableParameters;
|
|
925
|
-
this.flammableOutputConfigs = flammableOutputConfigs;
|
|
926
|
-
this.flammableOutputConfigCount = flammableOutputConfigCount;
|
|
848
|
+
this.flameResult = data.flameResult;
|
|
849
|
+
this.flameRecords = data.flameRecords;
|
|
850
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
851
|
+
this.weather = data.weather;
|
|
852
|
+
this.flammableParameters = data.flammableParameters;
|
|
853
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
854
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
927
855
|
}
|
|
928
856
|
}
|
|
929
857
|
|
|
@@ -965,15 +893,7 @@ export class DistancesToRadiationLevelsCalculationRequestSchema {
|
|
|
965
893
|
}
|
|
966
894
|
|
|
967
895
|
makeCalculationRequest(data: DistancesToRadiationLevelsCalculationRequestSchemaData): DistancesToRadiationLevelsCalculationRequest {
|
|
968
|
-
return new DistancesToRadiationLevelsCalculationRequest(
|
|
969
|
-
data.flameResult,
|
|
970
|
-
data.flameRecords,
|
|
971
|
-
data.flameRecordCount,
|
|
972
|
-
data.weather,
|
|
973
|
-
data.flammableParameters,
|
|
974
|
-
data.flammableOutputConfigs,
|
|
975
|
-
data.flammableOutputConfigCount
|
|
976
|
-
);
|
|
896
|
+
return new DistancesToRadiationLevelsCalculationRequest(data);
|
|
977
897
|
}
|
|
978
898
|
}
|
|
979
899
|
|
|
@@ -990,15 +910,8 @@ export class DistancesToRadiationLevelsCalculation extends CalculationBase {
|
|
|
990
910
|
/**
|
|
991
911
|
* Calculates the distances to specified radiation intensity levels from a flame model. This calculation can be called after any type of fire calculation (fireball, jet fire, pool fire).
|
|
992
912
|
*
|
|
993
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
994
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
995
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
996
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
997
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
998
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - an array of flammable output configs.
|
|
999
|
-
* @param {number} flammableOutputConfigCount - Number of flammable output configs.
|
|
1000
913
|
*/
|
|
1001
|
-
constructor(
|
|
914
|
+
constructor(data: {
|
|
1002
915
|
flameResult: Entities.FlameResult,
|
|
1003
916
|
flameRecords: Entities.FlameRecord[],
|
|
1004
917
|
flameRecordCount: number,
|
|
@@ -1006,28 +919,29 @@ export class DistancesToRadiationLevelsCalculation extends CalculationBase {
|
|
|
1006
919
|
flammableParameters: Entities.FlammableParameters,
|
|
1007
920
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
1008
921
|
flammableOutputConfigCount: number
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
922
|
+
controller?: AbortController;
|
|
923
|
+
}) {
|
|
924
|
+
super(data.controller);
|
|
925
|
+
this.flameResult = data.flameResult;
|
|
926
|
+
this.flameRecords = data.flameRecords;
|
|
927
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
928
|
+
this.weather = data.weather;
|
|
929
|
+
this.flammableParameters = data.flammableParameters;
|
|
930
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
931
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
1018
932
|
}
|
|
1019
933
|
|
|
1020
934
|
async run() {
|
|
1021
935
|
try {
|
|
1022
|
-
const request = new DistancesToRadiationLevelsCalculationRequest(
|
|
1023
|
-
this.flameResult,
|
|
1024
|
-
this.flameRecords,
|
|
1025
|
-
this.flameRecordCount,
|
|
1026
|
-
this.weather,
|
|
1027
|
-
this.flammableParameters,
|
|
1028
|
-
this.flammableOutputConfigs,
|
|
1029
|
-
this.flammableOutputConfigCount
|
|
1030
|
-
);
|
|
936
|
+
const request = new DistancesToRadiationLevelsCalculationRequest({
|
|
937
|
+
flameResult: this.flameResult,
|
|
938
|
+
flameRecords: this.flameRecords,
|
|
939
|
+
flameRecordCount: this.flameRecordCount,
|
|
940
|
+
weather: this.weather,
|
|
941
|
+
flammableParameters: this.flammableParameters,
|
|
942
|
+
flammableOutputConfigs: this.flammableOutputConfigs,
|
|
943
|
+
flammableOutputConfigCount: this.flammableOutputConfigCount
|
|
944
|
+
});
|
|
1031
945
|
|
|
1032
946
|
const schema = new DistancesToRadiationLevelsCalculationRequestSchema();
|
|
1033
947
|
const validatedRequest = schema.validate(request);
|
|
@@ -1091,21 +1005,20 @@ export class DistancesToRadiationLevelsCalculationResponse extends CalculationRe
|
|
|
1091
1005
|
/**
|
|
1092
1006
|
* DistancesToRadiationLevels calculation response class.
|
|
1093
1007
|
*
|
|
1094
|
-
* @param {number[]} distances - an array of distances to radiation levels, corresponding to the flammable output configs.
|
|
1095
1008
|
*/
|
|
1096
|
-
constructor(
|
|
1009
|
+
constructor(data: {
|
|
1097
1010
|
distances: number[],
|
|
1098
1011
|
resultCode: Enums.ResultCode,
|
|
1099
1012
|
messages: string[],
|
|
1100
1013
|
calculationElapsedTime: number,
|
|
1101
1014
|
operationId: string
|
|
1102
|
-
) {
|
|
1015
|
+
}) {
|
|
1103
1016
|
super();
|
|
1104
|
-
this.distances = distances;
|
|
1105
|
-
this.resultCode = resultCode;
|
|
1106
|
-
this.messages = messages;
|
|
1107
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
1108
|
-
this.operationId = operationId;
|
|
1017
|
+
this.distances = data.distances;
|
|
1018
|
+
this.resultCode = data.resultCode;
|
|
1019
|
+
this.messages = data.messages;
|
|
1020
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
1021
|
+
this.operationId = data.operationId;
|
|
1109
1022
|
}
|
|
1110
1023
|
|
|
1111
1024
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -1166,13 +1079,7 @@ export class DistancesToRadiationLevelsCalculationResponseSchema {
|
|
|
1166
1079
|
}
|
|
1167
1080
|
|
|
1168
1081
|
makeCalculationResponse(data: DistancesToRadiationLevelsCalculationResponseSchemaData): DistancesToRadiationLevelsCalculationResponse {
|
|
1169
|
-
return new DistancesToRadiationLevelsCalculationResponse(
|
|
1170
|
-
data.distances,
|
|
1171
|
-
data.resultCode,
|
|
1172
|
-
data.messages,
|
|
1173
|
-
data.calculationElapsedTime,
|
|
1174
|
-
data.operationId
|
|
1175
|
-
);
|
|
1082
|
+
return new DistancesToRadiationLevelsCalculationResponse(data);
|
|
1176
1083
|
}
|
|
1177
1084
|
}
|
|
1178
1085
|
|
|
@@ -1196,28 +1103,22 @@ class DistanceToRadiationCalculationRequest extends CalculationRequestBase {
|
|
|
1196
1103
|
/**
|
|
1197
1104
|
* DistanceToRadiation calculation request class.
|
|
1198
1105
|
*
|
|
1199
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
1200
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1201
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1202
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1203
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1204
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
1205
1106
|
*/
|
|
1206
|
-
constructor(
|
|
1107
|
+
constructor(data: {
|
|
1207
1108
|
flameResult: Entities.FlameResult,
|
|
1208
1109
|
flameRecords: Entities.FlameRecord[],
|
|
1209
1110
|
flameRecordCount: number,
|
|
1210
1111
|
weather: Entities.Weather,
|
|
1211
1112
|
flammableParameters: Entities.FlammableParameters,
|
|
1212
1113
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1213
|
-
) {
|
|
1114
|
+
}) {
|
|
1214
1115
|
super();
|
|
1215
|
-
this.flameResult = flameResult;
|
|
1216
|
-
this.flameRecords = flameRecords;
|
|
1217
|
-
this.flameRecordCount = flameRecordCount;
|
|
1218
|
-
this.weather = weather;
|
|
1219
|
-
this.flammableParameters = flammableParameters;
|
|
1220
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
1116
|
+
this.flameResult = data.flameResult;
|
|
1117
|
+
this.flameRecords = data.flameRecords;
|
|
1118
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1119
|
+
this.weather = data.weather;
|
|
1120
|
+
this.flammableParameters = data.flammableParameters;
|
|
1121
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1221
1122
|
}
|
|
1222
1123
|
}
|
|
1223
1124
|
|
|
@@ -1257,14 +1158,7 @@ export class DistanceToRadiationCalculationRequestSchema {
|
|
|
1257
1158
|
}
|
|
1258
1159
|
|
|
1259
1160
|
makeCalculationRequest(data: DistanceToRadiationCalculationRequestSchemaData): DistanceToRadiationCalculationRequest {
|
|
1260
|
-
return new DistanceToRadiationCalculationRequest(
|
|
1261
|
-
data.flameResult,
|
|
1262
|
-
data.flameRecords,
|
|
1263
|
-
data.flameRecordCount,
|
|
1264
|
-
data.weather,
|
|
1265
|
-
data.flammableParameters,
|
|
1266
|
-
data.flammableOutputConfig
|
|
1267
|
-
);
|
|
1161
|
+
return new DistanceToRadiationCalculationRequest(data);
|
|
1268
1162
|
}
|
|
1269
1163
|
}
|
|
1270
1164
|
|
|
@@ -1280,40 +1174,35 @@ export class DistanceToRadiationCalculation extends CalculationBase {
|
|
|
1280
1174
|
/**
|
|
1281
1175
|
* Calculates the distance to a specified radiation intensity or lethality level from a flame model. This calculation an be called after any type of fire calculation (fireball, jet fire, pool fire).
|
|
1282
1176
|
*
|
|
1283
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
1284
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1285
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1286
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1287
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1288
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
1289
1177
|
*/
|
|
1290
|
-
constructor(
|
|
1178
|
+
constructor(data: {
|
|
1291
1179
|
flameResult: Entities.FlameResult,
|
|
1292
1180
|
flameRecords: Entities.FlameRecord[],
|
|
1293
1181
|
flameRecordCount: number,
|
|
1294
1182
|
weather: Entities.Weather,
|
|
1295
1183
|
flammableParameters: Entities.FlammableParameters,
|
|
1296
1184
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1185
|
+
controller?: AbortController;
|
|
1186
|
+
}) {
|
|
1187
|
+
super(data.controller);
|
|
1188
|
+
this.flameResult = data.flameResult;
|
|
1189
|
+
this.flameRecords = data.flameRecords;
|
|
1190
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1191
|
+
this.weather = data.weather;
|
|
1192
|
+
this.flammableParameters = data.flammableParameters;
|
|
1193
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1305
1194
|
}
|
|
1306
1195
|
|
|
1307
1196
|
async run() {
|
|
1308
1197
|
try {
|
|
1309
|
-
const request = new DistanceToRadiationCalculationRequest(
|
|
1310
|
-
this.flameResult,
|
|
1311
|
-
this.flameRecords,
|
|
1312
|
-
this.flameRecordCount,
|
|
1313
|
-
this.weather,
|
|
1314
|
-
this.flammableParameters,
|
|
1315
|
-
this.flammableOutputConfig
|
|
1316
|
-
);
|
|
1198
|
+
const request = new DistanceToRadiationCalculationRequest({
|
|
1199
|
+
flameResult: this.flameResult,
|
|
1200
|
+
flameRecords: this.flameRecords,
|
|
1201
|
+
flameRecordCount: this.flameRecordCount,
|
|
1202
|
+
weather: this.weather,
|
|
1203
|
+
flammableParameters: this.flammableParameters,
|
|
1204
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
1205
|
+
});
|
|
1317
1206
|
|
|
1318
1207
|
const schema = new DistanceToRadiationCalculationRequestSchema();
|
|
1319
1208
|
const validatedRequest = schema.validate(request);
|
|
@@ -1372,21 +1261,20 @@ export class DistanceToRadiationCalculationResponse extends CalculationResponseB
|
|
|
1372
1261
|
/**
|
|
1373
1262
|
* DistanceToRadiation calculation response class.
|
|
1374
1263
|
*
|
|
1375
|
-
* @param {number} distance - Distance to radiation level.
|
|
1376
1264
|
*/
|
|
1377
|
-
constructor(
|
|
1265
|
+
constructor(data: {
|
|
1378
1266
|
distance: number,
|
|
1379
1267
|
resultCode: Enums.ResultCode,
|
|
1380
1268
|
messages: string[],
|
|
1381
1269
|
calculationElapsedTime: number,
|
|
1382
1270
|
operationId: string
|
|
1383
|
-
) {
|
|
1271
|
+
}) {
|
|
1384
1272
|
super();
|
|
1385
|
-
this.distance = distance;
|
|
1386
|
-
this.resultCode = resultCode;
|
|
1387
|
-
this.messages = messages;
|
|
1388
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
1389
|
-
this.operationId = operationId;
|
|
1273
|
+
this.distance = data.distance;
|
|
1274
|
+
this.resultCode = data.resultCode;
|
|
1275
|
+
this.messages = data.messages;
|
|
1276
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
1277
|
+
this.operationId = data.operationId;
|
|
1390
1278
|
}
|
|
1391
1279
|
|
|
1392
1280
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -1447,13 +1335,7 @@ export class DistanceToRadiationCalculationResponseSchema {
|
|
|
1447
1335
|
}
|
|
1448
1336
|
|
|
1449
1337
|
makeCalculationResponse(data: DistanceToRadiationCalculationResponseSchemaData): DistanceToRadiationCalculationResponse {
|
|
1450
|
-
return new DistanceToRadiationCalculationResponse(
|
|
1451
|
-
data.distance,
|
|
1452
|
-
data.resultCode,
|
|
1453
|
-
data.messages,
|
|
1454
|
-
data.calculationElapsedTime,
|
|
1455
|
-
data.operationId
|
|
1456
|
-
);
|
|
1338
|
+
return new DistanceToRadiationCalculationResponse(data);
|
|
1457
1339
|
}
|
|
1458
1340
|
}
|
|
1459
1341
|
|
|
@@ -1477,28 +1359,22 @@ class RadiationAtAPointCalculationRequest extends CalculationRequestBase {
|
|
|
1477
1359
|
/**
|
|
1478
1360
|
* RadiationAtAPoint calculation request class.
|
|
1479
1361
|
*
|
|
1480
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
1481
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1482
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1483
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1484
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1485
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity, for setting the point coordinates.
|
|
1486
1362
|
*/
|
|
1487
|
-
constructor(
|
|
1363
|
+
constructor(data: {
|
|
1488
1364
|
flameResult: Entities.FlameResult,
|
|
1489
1365
|
flameRecords: Entities.FlameRecord[],
|
|
1490
1366
|
flameRecordCount: number,
|
|
1491
1367
|
weather: Entities.Weather,
|
|
1492
1368
|
flammableParameters: Entities.FlammableParameters,
|
|
1493
1369
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1494
|
-
) {
|
|
1370
|
+
}) {
|
|
1495
1371
|
super();
|
|
1496
|
-
this.flameResult = flameResult;
|
|
1497
|
-
this.flameRecords = flameRecords;
|
|
1498
|
-
this.flameRecordCount = flameRecordCount;
|
|
1499
|
-
this.weather = weather;
|
|
1500
|
-
this.flammableParameters = flammableParameters;
|
|
1501
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
1372
|
+
this.flameResult = data.flameResult;
|
|
1373
|
+
this.flameRecords = data.flameRecords;
|
|
1374
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1375
|
+
this.weather = data.weather;
|
|
1376
|
+
this.flammableParameters = data.flammableParameters;
|
|
1377
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1502
1378
|
}
|
|
1503
1379
|
}
|
|
1504
1380
|
|
|
@@ -1538,14 +1414,7 @@ export class RadiationAtAPointCalculationRequestSchema {
|
|
|
1538
1414
|
}
|
|
1539
1415
|
|
|
1540
1416
|
makeCalculationRequest(data: RadiationAtAPointCalculationRequestSchemaData): RadiationAtAPointCalculationRequest {
|
|
1541
|
-
return new RadiationAtAPointCalculationRequest(
|
|
1542
|
-
data.flameResult,
|
|
1543
|
-
data.flameRecords,
|
|
1544
|
-
data.flameRecordCount,
|
|
1545
|
-
data.weather,
|
|
1546
|
-
data.flammableParameters,
|
|
1547
|
-
data.flammableOutputConfig
|
|
1548
|
-
);
|
|
1417
|
+
return new RadiationAtAPointCalculationRequest(data);
|
|
1549
1418
|
}
|
|
1550
1419
|
}
|
|
1551
1420
|
|
|
@@ -1561,40 +1430,35 @@ export class RadiationAtAPointCalculation extends CalculationBase {
|
|
|
1561
1430
|
/**
|
|
1562
1431
|
* Calculates the radiation at coordinates x, y, z from a flammable model.
|
|
1563
1432
|
*
|
|
1564
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
1565
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1566
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1567
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1568
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1569
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity, for setting the point coordinates.
|
|
1570
1433
|
*/
|
|
1571
|
-
constructor(
|
|
1434
|
+
constructor(data: {
|
|
1572
1435
|
flameResult: Entities.FlameResult,
|
|
1573
1436
|
flameRecords: Entities.FlameRecord[],
|
|
1574
1437
|
flameRecordCount: number,
|
|
1575
1438
|
weather: Entities.Weather,
|
|
1576
1439
|
flammableParameters: Entities.FlammableParameters,
|
|
1577
1440
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1441
|
+
controller?: AbortController;
|
|
1442
|
+
}) {
|
|
1443
|
+
super(data.controller);
|
|
1444
|
+
this.flameResult = data.flameResult;
|
|
1445
|
+
this.flameRecords = data.flameRecords;
|
|
1446
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1447
|
+
this.weather = data.weather;
|
|
1448
|
+
this.flammableParameters = data.flammableParameters;
|
|
1449
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1586
1450
|
}
|
|
1587
1451
|
|
|
1588
1452
|
async run() {
|
|
1589
1453
|
try {
|
|
1590
|
-
const request = new RadiationAtAPointCalculationRequest(
|
|
1591
|
-
this.flameResult,
|
|
1592
|
-
this.flameRecords,
|
|
1593
|
-
this.flameRecordCount,
|
|
1594
|
-
this.weather,
|
|
1595
|
-
this.flammableParameters,
|
|
1596
|
-
this.flammableOutputConfig
|
|
1597
|
-
);
|
|
1454
|
+
const request = new RadiationAtAPointCalculationRequest({
|
|
1455
|
+
flameResult: this.flameResult,
|
|
1456
|
+
flameRecords: this.flameRecords,
|
|
1457
|
+
flameRecordCount: this.flameRecordCount,
|
|
1458
|
+
weather: this.weather,
|
|
1459
|
+
flammableParameters: this.flammableParameters,
|
|
1460
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
1461
|
+
});
|
|
1598
1462
|
|
|
1599
1463
|
const schema = new RadiationAtAPointCalculationRequestSchema();
|
|
1600
1464
|
const validatedRequest = schema.validate(request);
|
|
@@ -1653,21 +1517,20 @@ export class RadiationAtAPointCalculationResponse extends CalculationResponseBas
|
|
|
1653
1517
|
/**
|
|
1654
1518
|
* RadiationAtAPoint calculation response class.
|
|
1655
1519
|
*
|
|
1656
|
-
* @param {number} radiation - Radiation at a point.
|
|
1657
1520
|
*/
|
|
1658
|
-
constructor(
|
|
1521
|
+
constructor(data: {
|
|
1659
1522
|
radiation: number,
|
|
1660
1523
|
resultCode: Enums.ResultCode,
|
|
1661
1524
|
messages: string[],
|
|
1662
1525
|
calculationElapsedTime: number,
|
|
1663
1526
|
operationId: string
|
|
1664
|
-
) {
|
|
1527
|
+
}) {
|
|
1665
1528
|
super();
|
|
1666
|
-
this.radiation = radiation;
|
|
1667
|
-
this.resultCode = resultCode;
|
|
1668
|
-
this.messages = messages;
|
|
1669
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
1670
|
-
this.operationId = operationId;
|
|
1529
|
+
this.radiation = data.radiation;
|
|
1530
|
+
this.resultCode = data.resultCode;
|
|
1531
|
+
this.messages = data.messages;
|
|
1532
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
1533
|
+
this.operationId = data.operationId;
|
|
1671
1534
|
}
|
|
1672
1535
|
|
|
1673
1536
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -1728,13 +1591,7 @@ export class RadiationAtAPointCalculationResponseSchema {
|
|
|
1728
1591
|
}
|
|
1729
1592
|
|
|
1730
1593
|
makeCalculationResponse(data: RadiationAtAPointCalculationResponseSchemaData): RadiationAtAPointCalculationResponse {
|
|
1731
|
-
return new RadiationAtAPointCalculationResponse(
|
|
1732
|
-
data.radiation,
|
|
1733
|
-
data.resultCode,
|
|
1734
|
-
data.messages,
|
|
1735
|
-
data.calculationElapsedTime,
|
|
1736
|
-
data.operationId
|
|
1737
|
-
);
|
|
1594
|
+
return new RadiationAtAPointCalculationResponse(data);
|
|
1738
1595
|
}
|
|
1739
1596
|
}
|
|
1740
1597
|
|
|
@@ -1758,28 +1615,22 @@ class RadiationAtAPointForPoolFiresCalculationRequest extends CalculationRequest
|
|
|
1758
1615
|
/**
|
|
1759
1616
|
* RadiationAtAPointForPoolFires calculation request class.
|
|
1760
1617
|
*
|
|
1761
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar flame results.
|
|
1762
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1763
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1764
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1765
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1766
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity, for setting the point coordinates.
|
|
1767
1618
|
*/
|
|
1768
|
-
constructor(
|
|
1619
|
+
constructor(data: {
|
|
1769
1620
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
1770
1621
|
flameRecords: Entities.FlameRecord[],
|
|
1771
1622
|
flameRecordCount: number,
|
|
1772
1623
|
weather: Entities.Weather,
|
|
1773
1624
|
flammableParameters: Entities.FlammableParameters,
|
|
1774
1625
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1775
|
-
) {
|
|
1626
|
+
}) {
|
|
1776
1627
|
super();
|
|
1777
|
-
this.poolFireFlameResult = poolFireFlameResult;
|
|
1778
|
-
this.flameRecords = flameRecords;
|
|
1779
|
-
this.flameRecordCount = flameRecordCount;
|
|
1780
|
-
this.weather = weather;
|
|
1781
|
-
this.flammableParameters = flammableParameters;
|
|
1782
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
1628
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
1629
|
+
this.flameRecords = data.flameRecords;
|
|
1630
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1631
|
+
this.weather = data.weather;
|
|
1632
|
+
this.flammableParameters = data.flammableParameters;
|
|
1633
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1783
1634
|
}
|
|
1784
1635
|
}
|
|
1785
1636
|
|
|
@@ -1819,14 +1670,7 @@ export class RadiationAtAPointForPoolFiresCalculationRequestSchema {
|
|
|
1819
1670
|
}
|
|
1820
1671
|
|
|
1821
1672
|
makeCalculationRequest(data: RadiationAtAPointForPoolFiresCalculationRequestSchemaData): RadiationAtAPointForPoolFiresCalculationRequest {
|
|
1822
|
-
return new RadiationAtAPointForPoolFiresCalculationRequest(
|
|
1823
|
-
data.poolFireFlameResult,
|
|
1824
|
-
data.flameRecords,
|
|
1825
|
-
data.flameRecordCount,
|
|
1826
|
-
data.weather,
|
|
1827
|
-
data.flammableParameters,
|
|
1828
|
-
data.flammableOutputConfig
|
|
1829
|
-
);
|
|
1673
|
+
return new RadiationAtAPointForPoolFiresCalculationRequest(data);
|
|
1830
1674
|
}
|
|
1831
1675
|
}
|
|
1832
1676
|
|
|
@@ -1842,40 +1686,35 @@ export class RadiationAtAPointForPoolFiresCalculation extends CalculationBase {
|
|
|
1842
1686
|
/**
|
|
1843
1687
|
* Calculates the radiation at coordinates x, y, z from a pool fire model.
|
|
1844
1688
|
*
|
|
1845
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar flame results.
|
|
1846
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
1847
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
1848
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
1849
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
1850
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity, for setting the point coordinates.
|
|
1851
1689
|
*/
|
|
1852
|
-
constructor(
|
|
1690
|
+
constructor(data: {
|
|
1853
1691
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
1854
1692
|
flameRecords: Entities.FlameRecord[],
|
|
1855
1693
|
flameRecordCount: number,
|
|
1856
1694
|
weather: Entities.Weather,
|
|
1857
1695
|
flammableParameters: Entities.FlammableParameters,
|
|
1858
1696
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
this.
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1866
|
-
this.
|
|
1697
|
+
controller?: AbortController;
|
|
1698
|
+
}) {
|
|
1699
|
+
super(data.controller);
|
|
1700
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
1701
|
+
this.flameRecords = data.flameRecords;
|
|
1702
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1703
|
+
this.weather = data.weather;
|
|
1704
|
+
this.flammableParameters = data.flammableParameters;
|
|
1705
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
1867
1706
|
}
|
|
1868
1707
|
|
|
1869
1708
|
async run() {
|
|
1870
1709
|
try {
|
|
1871
|
-
const request = new RadiationAtAPointForPoolFiresCalculationRequest(
|
|
1872
|
-
this.poolFireFlameResult,
|
|
1873
|
-
this.flameRecords,
|
|
1874
|
-
this.flameRecordCount,
|
|
1875
|
-
this.weather,
|
|
1876
|
-
this.flammableParameters,
|
|
1877
|
-
this.flammableOutputConfig
|
|
1878
|
-
);
|
|
1710
|
+
const request = new RadiationAtAPointForPoolFiresCalculationRequest({
|
|
1711
|
+
poolFireFlameResult: this.poolFireFlameResult,
|
|
1712
|
+
flameRecords: this.flameRecords,
|
|
1713
|
+
flameRecordCount: this.flameRecordCount,
|
|
1714
|
+
weather: this.weather,
|
|
1715
|
+
flammableParameters: this.flammableParameters,
|
|
1716
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
1717
|
+
});
|
|
1879
1718
|
|
|
1880
1719
|
const schema = new RadiationAtAPointForPoolFiresCalculationRequestSchema();
|
|
1881
1720
|
const validatedRequest = schema.validate(request);
|
|
@@ -1934,21 +1773,20 @@ export class RadiationAtAPointForPoolFiresCalculationResponse extends Calculatio
|
|
|
1934
1773
|
/**
|
|
1935
1774
|
* RadiationAtAPointForPoolFires calculation response class.
|
|
1936
1775
|
*
|
|
1937
|
-
* @param {number} radiation - Radiation at a point.
|
|
1938
1776
|
*/
|
|
1939
|
-
constructor(
|
|
1777
|
+
constructor(data: {
|
|
1940
1778
|
radiation: number,
|
|
1941
1779
|
resultCode: Enums.ResultCode,
|
|
1942
1780
|
messages: string[],
|
|
1943
1781
|
calculationElapsedTime: number,
|
|
1944
1782
|
operationId: string
|
|
1945
|
-
) {
|
|
1783
|
+
}) {
|
|
1946
1784
|
super();
|
|
1947
|
-
this.radiation = radiation;
|
|
1948
|
-
this.resultCode = resultCode;
|
|
1949
|
-
this.messages = messages;
|
|
1950
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
1951
|
-
this.operationId = operationId;
|
|
1785
|
+
this.radiation = data.radiation;
|
|
1786
|
+
this.resultCode = data.resultCode;
|
|
1787
|
+
this.messages = data.messages;
|
|
1788
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
1789
|
+
this.operationId = data.operationId;
|
|
1952
1790
|
}
|
|
1953
1791
|
|
|
1954
1792
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -2009,13 +1847,7 @@ export class RadiationAtAPointForPoolFiresCalculationResponseSchema {
|
|
|
2009
1847
|
}
|
|
2010
1848
|
|
|
2011
1849
|
makeCalculationResponse(data: RadiationAtAPointForPoolFiresCalculationResponseSchemaData): RadiationAtAPointForPoolFiresCalculationResponse {
|
|
2012
|
-
return new RadiationAtAPointForPoolFiresCalculationResponse(
|
|
2013
|
-
data.radiation,
|
|
2014
|
-
data.resultCode,
|
|
2015
|
-
data.messages,
|
|
2016
|
-
data.calculationElapsedTime,
|
|
2017
|
-
data.operationId
|
|
2018
|
-
);
|
|
1850
|
+
return new RadiationAtAPointForPoolFiresCalculationResponse(data);
|
|
2019
1851
|
}
|
|
2020
1852
|
}
|
|
2021
1853
|
|
|
@@ -2041,15 +1873,8 @@ class RadiationAtPointsCalculationRequest extends CalculationRequestBase {
|
|
|
2041
1873
|
/**
|
|
2042
1874
|
* RadiationAtPoints calculation request class.
|
|
2043
1875
|
*
|
|
2044
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
2045
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2046
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2047
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2048
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2049
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - a flammable output config entity, for setting the point coordinates.
|
|
2050
|
-
* @param {number} flammableOutputConfigCount - Number of points.
|
|
2051
1876
|
*/
|
|
2052
|
-
constructor(
|
|
1877
|
+
constructor(data: {
|
|
2053
1878
|
flameResult: Entities.FlameResult,
|
|
2054
1879
|
flameRecords: Entities.FlameRecord[],
|
|
2055
1880
|
flameRecordCount: number,
|
|
@@ -2057,15 +1882,15 @@ class RadiationAtPointsCalculationRequest extends CalculationRequestBase {
|
|
|
2057
1882
|
flammableParameters: Entities.FlammableParameters,
|
|
2058
1883
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
2059
1884
|
flammableOutputConfigCount: number
|
|
2060
|
-
) {
|
|
1885
|
+
}) {
|
|
2061
1886
|
super();
|
|
2062
|
-
this.flameResult = flameResult;
|
|
2063
|
-
this.flameRecords = flameRecords;
|
|
2064
|
-
this.flameRecordCount = flameRecordCount;
|
|
2065
|
-
this.weather = weather;
|
|
2066
|
-
this.flammableParameters = flammableParameters;
|
|
2067
|
-
this.flammableOutputConfigs = flammableOutputConfigs;
|
|
2068
|
-
this.flammableOutputConfigCount = flammableOutputConfigCount;
|
|
1887
|
+
this.flameResult = data.flameResult;
|
|
1888
|
+
this.flameRecords = data.flameRecords;
|
|
1889
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1890
|
+
this.weather = data.weather;
|
|
1891
|
+
this.flammableParameters = data.flammableParameters;
|
|
1892
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
1893
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
2069
1894
|
}
|
|
2070
1895
|
}
|
|
2071
1896
|
|
|
@@ -2107,15 +1932,7 @@ export class RadiationAtPointsCalculationRequestSchema {
|
|
|
2107
1932
|
}
|
|
2108
1933
|
|
|
2109
1934
|
makeCalculationRequest(data: RadiationAtPointsCalculationRequestSchemaData): RadiationAtPointsCalculationRequest {
|
|
2110
|
-
return new RadiationAtPointsCalculationRequest(
|
|
2111
|
-
data.flameResult,
|
|
2112
|
-
data.flameRecords,
|
|
2113
|
-
data.flameRecordCount,
|
|
2114
|
-
data.weather,
|
|
2115
|
-
data.flammableParameters,
|
|
2116
|
-
data.flammableOutputConfigs,
|
|
2117
|
-
data.flammableOutputConfigCount
|
|
2118
|
-
);
|
|
1935
|
+
return new RadiationAtPointsCalculationRequest(data);
|
|
2119
1936
|
}
|
|
2120
1937
|
}
|
|
2121
1938
|
|
|
@@ -2132,15 +1949,8 @@ export class RadiationAtPointsCalculation extends CalculationBase {
|
|
|
2132
1949
|
/**
|
|
2133
1950
|
* Calculates the radiation at an array of coordinates x, y, z from a flammable model.
|
|
2134
1951
|
*
|
|
2135
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
2136
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2137
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2138
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2139
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2140
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - a flammable output config entity, for setting the point coordinates.
|
|
2141
|
-
* @param {number} flammableOutputConfigCount - Number of points.
|
|
2142
1952
|
*/
|
|
2143
|
-
constructor(
|
|
1953
|
+
constructor(data: {
|
|
2144
1954
|
flameResult: Entities.FlameResult,
|
|
2145
1955
|
flameRecords: Entities.FlameRecord[],
|
|
2146
1956
|
flameRecordCount: number,
|
|
@@ -2148,28 +1958,29 @@ export class RadiationAtPointsCalculation extends CalculationBase {
|
|
|
2148
1958
|
flammableParameters: Entities.FlammableParameters,
|
|
2149
1959
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
2150
1960
|
flammableOutputConfigCount: number
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
this.
|
|
2155
|
-
this.
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
1961
|
+
controller?: AbortController;
|
|
1962
|
+
}) {
|
|
1963
|
+
super(data.controller);
|
|
1964
|
+
this.flameResult = data.flameResult;
|
|
1965
|
+
this.flameRecords = data.flameRecords;
|
|
1966
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
1967
|
+
this.weather = data.weather;
|
|
1968
|
+
this.flammableParameters = data.flammableParameters;
|
|
1969
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
1970
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
2160
1971
|
}
|
|
2161
1972
|
|
|
2162
1973
|
async run() {
|
|
2163
1974
|
try {
|
|
2164
|
-
const request = new RadiationAtPointsCalculationRequest(
|
|
2165
|
-
this.flameResult,
|
|
2166
|
-
this.flameRecords,
|
|
2167
|
-
this.flameRecordCount,
|
|
2168
|
-
this.weather,
|
|
2169
|
-
this.flammableParameters,
|
|
2170
|
-
this.flammableOutputConfigs,
|
|
2171
|
-
this.flammableOutputConfigCount
|
|
2172
|
-
);
|
|
1975
|
+
const request = new RadiationAtPointsCalculationRequest({
|
|
1976
|
+
flameResult: this.flameResult,
|
|
1977
|
+
flameRecords: this.flameRecords,
|
|
1978
|
+
flameRecordCount: this.flameRecordCount,
|
|
1979
|
+
weather: this.weather,
|
|
1980
|
+
flammableParameters: this.flammableParameters,
|
|
1981
|
+
flammableOutputConfigs: this.flammableOutputConfigs,
|
|
1982
|
+
flammableOutputConfigCount: this.flammableOutputConfigCount
|
|
1983
|
+
});
|
|
2173
1984
|
|
|
2174
1985
|
const schema = new RadiationAtPointsCalculationRequestSchema();
|
|
2175
1986
|
const validatedRequest = schema.validate(request);
|
|
@@ -2233,21 +2044,20 @@ export class RadiationAtPointsCalculationResponse extends CalculationResponseBas
|
|
|
2233
2044
|
/**
|
|
2234
2045
|
* RadiationAtPoints calculation response class.
|
|
2235
2046
|
*
|
|
2236
|
-
* @param {number[]} radiation - an array of radiation at a point.
|
|
2237
2047
|
*/
|
|
2238
|
-
constructor(
|
|
2048
|
+
constructor(data: {
|
|
2239
2049
|
radiation: number[],
|
|
2240
2050
|
resultCode: Enums.ResultCode,
|
|
2241
2051
|
messages: string[],
|
|
2242
2052
|
calculationElapsedTime: number,
|
|
2243
2053
|
operationId: string
|
|
2244
|
-
) {
|
|
2054
|
+
}) {
|
|
2245
2055
|
super();
|
|
2246
|
-
this.radiation = radiation;
|
|
2247
|
-
this.resultCode = resultCode;
|
|
2248
|
-
this.messages = messages;
|
|
2249
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
2250
|
-
this.operationId = operationId;
|
|
2056
|
+
this.radiation = data.radiation;
|
|
2057
|
+
this.resultCode = data.resultCode;
|
|
2058
|
+
this.messages = data.messages;
|
|
2059
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
2060
|
+
this.operationId = data.operationId;
|
|
2251
2061
|
}
|
|
2252
2062
|
|
|
2253
2063
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -2308,13 +2118,7 @@ export class RadiationAtPointsCalculationResponseSchema {
|
|
|
2308
2118
|
}
|
|
2309
2119
|
|
|
2310
2120
|
makeCalculationResponse(data: RadiationAtPointsCalculationResponseSchemaData): RadiationAtPointsCalculationResponse {
|
|
2311
|
-
return new RadiationAtPointsCalculationResponse(
|
|
2312
|
-
data.radiation,
|
|
2313
|
-
data.resultCode,
|
|
2314
|
-
data.messages,
|
|
2315
|
-
data.calculationElapsedTime,
|
|
2316
|
-
data.operationId
|
|
2317
|
-
);
|
|
2121
|
+
return new RadiationAtPointsCalculationResponse(data);
|
|
2318
2122
|
}
|
|
2319
2123
|
}
|
|
2320
2124
|
|
|
@@ -2340,15 +2144,8 @@ class RadiationAtPointsForPoolFiresCalculationRequest extends CalculationRequest
|
|
|
2340
2144
|
/**
|
|
2341
2145
|
* RadiationAtPointsForPoolFires calculation request class.
|
|
2342
2146
|
*
|
|
2343
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar flame results.
|
|
2344
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2345
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2346
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2347
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2348
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - a flammable output config entity, for setting the point coordinates.
|
|
2349
|
-
* @param {number} flammableOutputConfigCount - Number of points.
|
|
2350
2147
|
*/
|
|
2351
|
-
constructor(
|
|
2148
|
+
constructor(data: {
|
|
2352
2149
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
2353
2150
|
flameRecords: Entities.FlameRecord[],
|
|
2354
2151
|
flameRecordCount: number,
|
|
@@ -2356,15 +2153,15 @@ class RadiationAtPointsForPoolFiresCalculationRequest extends CalculationRequest
|
|
|
2356
2153
|
flammableParameters: Entities.FlammableParameters,
|
|
2357
2154
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
2358
2155
|
flammableOutputConfigCount: number
|
|
2359
|
-
) {
|
|
2156
|
+
}) {
|
|
2360
2157
|
super();
|
|
2361
|
-
this.poolFireFlameResult = poolFireFlameResult;
|
|
2362
|
-
this.flameRecords = flameRecords;
|
|
2363
|
-
this.flameRecordCount = flameRecordCount;
|
|
2364
|
-
this.weather = weather;
|
|
2365
|
-
this.flammableParameters = flammableParameters;
|
|
2366
|
-
this.flammableOutputConfigs = flammableOutputConfigs;
|
|
2367
|
-
this.flammableOutputConfigCount = flammableOutputConfigCount;
|
|
2158
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
2159
|
+
this.flameRecords = data.flameRecords;
|
|
2160
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2161
|
+
this.weather = data.weather;
|
|
2162
|
+
this.flammableParameters = data.flammableParameters;
|
|
2163
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
2164
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
2368
2165
|
}
|
|
2369
2166
|
}
|
|
2370
2167
|
|
|
@@ -2406,15 +2203,7 @@ export class RadiationAtPointsForPoolFiresCalculationRequestSchema {
|
|
|
2406
2203
|
}
|
|
2407
2204
|
|
|
2408
2205
|
makeCalculationRequest(data: RadiationAtPointsForPoolFiresCalculationRequestSchemaData): RadiationAtPointsForPoolFiresCalculationRequest {
|
|
2409
|
-
return new RadiationAtPointsForPoolFiresCalculationRequest(
|
|
2410
|
-
data.poolFireFlameResult,
|
|
2411
|
-
data.flameRecords,
|
|
2412
|
-
data.flameRecordCount,
|
|
2413
|
-
data.weather,
|
|
2414
|
-
data.flammableParameters,
|
|
2415
|
-
data.flammableOutputConfigs,
|
|
2416
|
-
data.flammableOutputConfigCount
|
|
2417
|
-
);
|
|
2206
|
+
return new RadiationAtPointsForPoolFiresCalculationRequest(data);
|
|
2418
2207
|
}
|
|
2419
2208
|
}
|
|
2420
2209
|
|
|
@@ -2431,15 +2220,8 @@ export class RadiationAtPointsForPoolFiresCalculation extends CalculationBase {
|
|
|
2431
2220
|
/**
|
|
2432
2221
|
* Calculates the radiation at an array of coordinates x, y, z from a pool fire model.
|
|
2433
2222
|
*
|
|
2434
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Scalar flame results.
|
|
2435
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2436
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2437
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2438
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2439
|
-
* @param {Entities.FlammableOutputConfig[]} flammableOutputConfigs - a flammable output config entity, for setting the point coordinates.
|
|
2440
|
-
* @param {number} flammableOutputConfigCount - Number of points.
|
|
2441
2223
|
*/
|
|
2442
|
-
constructor(
|
|
2224
|
+
constructor(data: {
|
|
2443
2225
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
2444
2226
|
flameRecords: Entities.FlameRecord[],
|
|
2445
2227
|
flameRecordCount: number,
|
|
@@ -2447,28 +2229,29 @@ export class RadiationAtPointsForPoolFiresCalculation extends CalculationBase {
|
|
|
2447
2229
|
flammableParameters: Entities.FlammableParameters,
|
|
2448
2230
|
flammableOutputConfigs: Entities.FlammableOutputConfig[],
|
|
2449
2231
|
flammableOutputConfigCount: number
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
this.
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2458
|
-
this.
|
|
2232
|
+
controller?: AbortController;
|
|
2233
|
+
}) {
|
|
2234
|
+
super(data.controller);
|
|
2235
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
2236
|
+
this.flameRecords = data.flameRecords;
|
|
2237
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2238
|
+
this.weather = data.weather;
|
|
2239
|
+
this.flammableParameters = data.flammableParameters;
|
|
2240
|
+
this.flammableOutputConfigs = data.flammableOutputConfigs;
|
|
2241
|
+
this.flammableOutputConfigCount = data.flammableOutputConfigCount;
|
|
2459
2242
|
}
|
|
2460
2243
|
|
|
2461
2244
|
async run() {
|
|
2462
2245
|
try {
|
|
2463
|
-
const request = new RadiationAtPointsForPoolFiresCalculationRequest(
|
|
2464
|
-
this.poolFireFlameResult,
|
|
2465
|
-
this.flameRecords,
|
|
2466
|
-
this.flameRecordCount,
|
|
2467
|
-
this.weather,
|
|
2468
|
-
this.flammableParameters,
|
|
2469
|
-
this.flammableOutputConfigs,
|
|
2470
|
-
this.flammableOutputConfigCount
|
|
2471
|
-
);
|
|
2246
|
+
const request = new RadiationAtPointsForPoolFiresCalculationRequest({
|
|
2247
|
+
poolFireFlameResult: this.poolFireFlameResult,
|
|
2248
|
+
flameRecords: this.flameRecords,
|
|
2249
|
+
flameRecordCount: this.flameRecordCount,
|
|
2250
|
+
weather: this.weather,
|
|
2251
|
+
flammableParameters: this.flammableParameters,
|
|
2252
|
+
flammableOutputConfigs: this.flammableOutputConfigs,
|
|
2253
|
+
flammableOutputConfigCount: this.flammableOutputConfigCount
|
|
2254
|
+
});
|
|
2472
2255
|
|
|
2473
2256
|
const schema = new RadiationAtPointsForPoolFiresCalculationRequestSchema();
|
|
2474
2257
|
const validatedRequest = schema.validate(request);
|
|
@@ -2532,21 +2315,20 @@ export class RadiationAtPointsForPoolFiresCalculationResponse extends Calculatio
|
|
|
2532
2315
|
/**
|
|
2533
2316
|
* RadiationAtPointsForPoolFires calculation response class.
|
|
2534
2317
|
*
|
|
2535
|
-
* @param {number[]} radiation - an array of radiation at a point.
|
|
2536
2318
|
*/
|
|
2537
|
-
constructor(
|
|
2319
|
+
constructor(data: {
|
|
2538
2320
|
radiation: number[],
|
|
2539
2321
|
resultCode: Enums.ResultCode,
|
|
2540
2322
|
messages: string[],
|
|
2541
2323
|
calculationElapsedTime: number,
|
|
2542
2324
|
operationId: string
|
|
2543
|
-
) {
|
|
2325
|
+
}) {
|
|
2544
2326
|
super();
|
|
2545
|
-
this.radiation = radiation;
|
|
2546
|
-
this.resultCode = resultCode;
|
|
2547
|
-
this.messages = messages;
|
|
2548
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
2549
|
-
this.operationId = operationId;
|
|
2327
|
+
this.radiation = data.radiation;
|
|
2328
|
+
this.resultCode = data.resultCode;
|
|
2329
|
+
this.messages = data.messages;
|
|
2330
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
2331
|
+
this.operationId = data.operationId;
|
|
2550
2332
|
}
|
|
2551
2333
|
|
|
2552
2334
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -2607,13 +2389,7 @@ export class RadiationAtPointsForPoolFiresCalculationResponseSchema {
|
|
|
2607
2389
|
}
|
|
2608
2390
|
|
|
2609
2391
|
makeCalculationResponse(data: RadiationAtPointsForPoolFiresCalculationResponseSchemaData): RadiationAtPointsForPoolFiresCalculationResponse {
|
|
2610
|
-
return new RadiationAtPointsForPoolFiresCalculationResponse(
|
|
2611
|
-
data.radiation,
|
|
2612
|
-
data.resultCode,
|
|
2613
|
-
data.messages,
|
|
2614
|
-
data.calculationElapsedTime,
|
|
2615
|
-
data.operationId
|
|
2616
|
-
);
|
|
2392
|
+
return new RadiationAtPointsForPoolFiresCalculationResponse(data);
|
|
2617
2393
|
}
|
|
2618
2394
|
}
|
|
2619
2395
|
|
|
@@ -2637,28 +2413,22 @@ class RadiationContourCalculationRequest extends CalculationRequestBase {
|
|
|
2637
2413
|
/**
|
|
2638
2414
|
* RadiationContour calculation request class.
|
|
2639
2415
|
*
|
|
2640
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
2641
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2642
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2643
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2644
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2645
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
2646
2416
|
*/
|
|
2647
|
-
constructor(
|
|
2417
|
+
constructor(data: {
|
|
2648
2418
|
flameResult: Entities.FlameResult,
|
|
2649
2419
|
flameRecords: Entities.FlameRecord[],
|
|
2650
2420
|
flameRecordCount: number,
|
|
2651
2421
|
weather: Entities.Weather,
|
|
2652
2422
|
flammableParameters: Entities.FlammableParameters,
|
|
2653
2423
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
2654
|
-
) {
|
|
2424
|
+
}) {
|
|
2655
2425
|
super();
|
|
2656
|
-
this.flameResult = flameResult;
|
|
2657
|
-
this.flameRecords = flameRecords;
|
|
2658
|
-
this.flameRecordCount = flameRecordCount;
|
|
2659
|
-
this.weather = weather;
|
|
2660
|
-
this.flammableParameters = flammableParameters;
|
|
2661
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
2426
|
+
this.flameResult = data.flameResult;
|
|
2427
|
+
this.flameRecords = data.flameRecords;
|
|
2428
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2429
|
+
this.weather = data.weather;
|
|
2430
|
+
this.flammableParameters = data.flammableParameters;
|
|
2431
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
2662
2432
|
}
|
|
2663
2433
|
}
|
|
2664
2434
|
|
|
@@ -2698,14 +2468,7 @@ export class RadiationContourCalculationRequestSchema {
|
|
|
2698
2468
|
}
|
|
2699
2469
|
|
|
2700
2470
|
makeCalculationRequest(data: RadiationContourCalculationRequestSchemaData): RadiationContourCalculationRequest {
|
|
2701
|
-
return new RadiationContourCalculationRequest(
|
|
2702
|
-
data.flameResult,
|
|
2703
|
-
data.flameRecords,
|
|
2704
|
-
data.flameRecordCount,
|
|
2705
|
-
data.weather,
|
|
2706
|
-
data.flammableParameters,
|
|
2707
|
-
data.flammableOutputConfig
|
|
2708
|
-
);
|
|
2471
|
+
return new RadiationContourCalculationRequest(data);
|
|
2709
2472
|
}
|
|
2710
2473
|
}
|
|
2711
2474
|
|
|
@@ -2721,40 +2484,35 @@ export class RadiationContourCalculation extends CalculationBase {
|
|
|
2721
2484
|
/**
|
|
2722
2485
|
* Calculates the radiation contours from a flame model out to a specified intensity or lethality level. This calculation an be called after any type of fire calculation (fireball, jet fire, pool fire). Sideviews and footprints can be requested.
|
|
2723
2486
|
*
|
|
2724
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
2725
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2726
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2727
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2728
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2729
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
2730
2487
|
*/
|
|
2731
|
-
constructor(
|
|
2488
|
+
constructor(data: {
|
|
2732
2489
|
flameResult: Entities.FlameResult,
|
|
2733
2490
|
flameRecords: Entities.FlameRecord[],
|
|
2734
2491
|
flameRecordCount: number,
|
|
2735
2492
|
weather: Entities.Weather,
|
|
2736
2493
|
flammableParameters: Entities.FlammableParameters,
|
|
2737
2494
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
this.
|
|
2742
|
-
this.
|
|
2743
|
-
this.
|
|
2744
|
-
this.
|
|
2745
|
-
this.
|
|
2495
|
+
controller?: AbortController;
|
|
2496
|
+
}) {
|
|
2497
|
+
super(data.controller);
|
|
2498
|
+
this.flameResult = data.flameResult;
|
|
2499
|
+
this.flameRecords = data.flameRecords;
|
|
2500
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2501
|
+
this.weather = data.weather;
|
|
2502
|
+
this.flammableParameters = data.flammableParameters;
|
|
2503
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
2746
2504
|
}
|
|
2747
2505
|
|
|
2748
2506
|
async run() {
|
|
2749
2507
|
try {
|
|
2750
|
-
const request = new RadiationContourCalculationRequest(
|
|
2751
|
-
this.flameResult,
|
|
2752
|
-
this.flameRecords,
|
|
2753
|
-
this.flameRecordCount,
|
|
2754
|
-
this.weather,
|
|
2755
|
-
this.flammableParameters,
|
|
2756
|
-
this.flammableOutputConfig
|
|
2757
|
-
);
|
|
2508
|
+
const request = new RadiationContourCalculationRequest({
|
|
2509
|
+
flameResult: this.flameResult,
|
|
2510
|
+
flameRecords: this.flameRecords,
|
|
2511
|
+
flameRecordCount: this.flameRecordCount,
|
|
2512
|
+
weather: this.weather,
|
|
2513
|
+
flammableParameters: this.flammableParameters,
|
|
2514
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
2515
|
+
});
|
|
2758
2516
|
|
|
2759
2517
|
const schema = new RadiationContourCalculationRequestSchema();
|
|
2760
2518
|
const validatedRequest = schema.validate(request);
|
|
@@ -2818,21 +2576,20 @@ export class RadiationContourCalculationResponse extends CalculationResponseBase
|
|
|
2818
2576
|
/**
|
|
2819
2577
|
* RadiationContour calculation response class.
|
|
2820
2578
|
*
|
|
2821
|
-
* @param {Entities.LocalPosition[]} contourPoints - an array of contour points.
|
|
2822
2579
|
*/
|
|
2823
|
-
constructor(
|
|
2580
|
+
constructor(data: {
|
|
2824
2581
|
contourPoints: Entities.LocalPosition[],
|
|
2825
2582
|
resultCode: Enums.ResultCode,
|
|
2826
2583
|
messages: string[],
|
|
2827
2584
|
calculationElapsedTime: number,
|
|
2828
2585
|
operationId: string
|
|
2829
|
-
) {
|
|
2586
|
+
}) {
|
|
2830
2587
|
super();
|
|
2831
|
-
this.contourPoints = contourPoints;
|
|
2832
|
-
this.resultCode = resultCode;
|
|
2833
|
-
this.messages = messages;
|
|
2834
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
2835
|
-
this.operationId = operationId;
|
|
2588
|
+
this.contourPoints = data.contourPoints;
|
|
2589
|
+
this.resultCode = data.resultCode;
|
|
2590
|
+
this.messages = data.messages;
|
|
2591
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
2592
|
+
this.operationId = data.operationId;
|
|
2836
2593
|
}
|
|
2837
2594
|
|
|
2838
2595
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -2899,13 +2656,7 @@ export class RadiationContourCalculationResponseSchema {
|
|
|
2899
2656
|
}
|
|
2900
2657
|
|
|
2901
2658
|
makeCalculationResponse(data: RadiationContourCalculationResponseSchemaData): RadiationContourCalculationResponse {
|
|
2902
|
-
return new RadiationContourCalculationResponse(
|
|
2903
|
-
data.contourPoints,
|
|
2904
|
-
data.resultCode,
|
|
2905
|
-
data.messages,
|
|
2906
|
-
data.calculationElapsedTime,
|
|
2907
|
-
data.operationId
|
|
2908
|
-
);
|
|
2659
|
+
return new RadiationContourCalculationResponse(data);
|
|
2909
2660
|
}
|
|
2910
2661
|
}
|
|
2911
2662
|
|
|
@@ -2929,28 +2680,22 @@ class RadiationTransectCalculationRequest extends CalculationRequestBase {
|
|
|
2929
2680
|
/**
|
|
2930
2681
|
* RadiationTransect calculation request class.
|
|
2931
2682
|
*
|
|
2932
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
2933
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
2934
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
2935
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
2936
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
2937
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
2938
2683
|
*/
|
|
2939
|
-
constructor(
|
|
2684
|
+
constructor(data: {
|
|
2940
2685
|
flameResult: Entities.FlameResult,
|
|
2941
2686
|
flameRecords: Entities.FlameRecord[],
|
|
2942
2687
|
flameRecordCount: number,
|
|
2943
2688
|
weather: Entities.Weather,
|
|
2944
2689
|
flammableParameters: Entities.FlammableParameters,
|
|
2945
2690
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
2946
|
-
) {
|
|
2691
|
+
}) {
|
|
2947
2692
|
super();
|
|
2948
|
-
this.flameResult = flameResult;
|
|
2949
|
-
this.flameRecords = flameRecords;
|
|
2950
|
-
this.flameRecordCount = flameRecordCount;
|
|
2951
|
-
this.weather = weather;
|
|
2952
|
-
this.flammableParameters = flammableParameters;
|
|
2953
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
2693
|
+
this.flameResult = data.flameResult;
|
|
2694
|
+
this.flameRecords = data.flameRecords;
|
|
2695
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2696
|
+
this.weather = data.weather;
|
|
2697
|
+
this.flammableParameters = data.flammableParameters;
|
|
2698
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
2954
2699
|
}
|
|
2955
2700
|
}
|
|
2956
2701
|
|
|
@@ -2990,14 +2735,7 @@ export class RadiationTransectCalculationRequestSchema {
|
|
|
2990
2735
|
}
|
|
2991
2736
|
|
|
2992
2737
|
makeCalculationRequest(data: RadiationTransectCalculationRequestSchemaData): RadiationTransectCalculationRequest {
|
|
2993
|
-
return new RadiationTransectCalculationRequest(
|
|
2994
|
-
data.flameResult,
|
|
2995
|
-
data.flameRecords,
|
|
2996
|
-
data.flameRecordCount,
|
|
2997
|
-
data.weather,
|
|
2998
|
-
data.flammableParameters,
|
|
2999
|
-
data.flammableOutputConfig
|
|
3000
|
-
);
|
|
2738
|
+
return new RadiationTransectCalculationRequest(data);
|
|
3001
2739
|
}
|
|
3002
2740
|
}
|
|
3003
2741
|
|
|
@@ -3013,40 +2751,35 @@ export class RadiationTransectCalculation extends CalculationBase {
|
|
|
3013
2751
|
/**
|
|
3014
2752
|
* Calculates the radiation along a specified transect from a flame model down to a specified intensity or lethality level. This calculation an be called after any type of fire calculation (fireball, jet fire, pool fire).
|
|
3015
2753
|
*
|
|
3016
|
-
* @param {Entities.FlameResult} flameResult - Scalar flame results.
|
|
3017
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
3018
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
3019
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
3020
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
3021
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
3022
2754
|
*/
|
|
3023
|
-
constructor(
|
|
2755
|
+
constructor(data: {
|
|
3024
2756
|
flameResult: Entities.FlameResult,
|
|
3025
2757
|
flameRecords: Entities.FlameRecord[],
|
|
3026
2758
|
flameRecordCount: number,
|
|
3027
2759
|
weather: Entities.Weather,
|
|
3028
2760
|
flammableParameters: Entities.FlammableParameters,
|
|
3029
2761
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
this.
|
|
3034
|
-
this.
|
|
3035
|
-
this.
|
|
3036
|
-
this.
|
|
3037
|
-
this.
|
|
2762
|
+
controller?: AbortController;
|
|
2763
|
+
}) {
|
|
2764
|
+
super(data.controller);
|
|
2765
|
+
this.flameResult = data.flameResult;
|
|
2766
|
+
this.flameRecords = data.flameRecords;
|
|
2767
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2768
|
+
this.weather = data.weather;
|
|
2769
|
+
this.flammableParameters = data.flammableParameters;
|
|
2770
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
3038
2771
|
}
|
|
3039
2772
|
|
|
3040
2773
|
async run() {
|
|
3041
2774
|
try {
|
|
3042
|
-
const request = new RadiationTransectCalculationRequest(
|
|
3043
|
-
this.flameResult,
|
|
3044
|
-
this.flameRecords,
|
|
3045
|
-
this.flameRecordCount,
|
|
3046
|
-
this.weather,
|
|
3047
|
-
this.flammableParameters,
|
|
3048
|
-
this.flammableOutputConfig
|
|
3049
|
-
);
|
|
2775
|
+
const request = new RadiationTransectCalculationRequest({
|
|
2776
|
+
flameResult: this.flameResult,
|
|
2777
|
+
flameRecords: this.flameRecords,
|
|
2778
|
+
flameRecordCount: this.flameRecordCount,
|
|
2779
|
+
weather: this.weather,
|
|
2780
|
+
flammableParameters: this.flammableParameters,
|
|
2781
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
2782
|
+
});
|
|
3050
2783
|
|
|
3051
2784
|
const schema = new RadiationTransectCalculationRequestSchema();
|
|
3052
2785
|
const validatedRequest = schema.validate(request);
|
|
@@ -3110,21 +2843,20 @@ export class RadiationTransectCalculationResponse extends CalculationResponseBas
|
|
|
3110
2843
|
/**
|
|
3111
2844
|
* RadiationTransect calculation response class.
|
|
3112
2845
|
*
|
|
3113
|
-
* @param {Entities.RadiationRecord[]} radiationRecords - an array of radiation records along transect.
|
|
3114
2846
|
*/
|
|
3115
|
-
constructor(
|
|
2847
|
+
constructor(data: {
|
|
3116
2848
|
radiationRecords: Entities.RadiationRecord[],
|
|
3117
2849
|
resultCode: Enums.ResultCode,
|
|
3118
2850
|
messages: string[],
|
|
3119
2851
|
calculationElapsedTime: number,
|
|
3120
2852
|
operationId: string
|
|
3121
|
-
) {
|
|
2853
|
+
}) {
|
|
3122
2854
|
super();
|
|
3123
|
-
this.radiationRecords = radiationRecords;
|
|
3124
|
-
this.resultCode = resultCode;
|
|
3125
|
-
this.messages = messages;
|
|
3126
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
3127
|
-
this.operationId = operationId;
|
|
2855
|
+
this.radiationRecords = data.radiationRecords;
|
|
2856
|
+
this.resultCode = data.resultCode;
|
|
2857
|
+
this.messages = data.messages;
|
|
2858
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
2859
|
+
this.operationId = data.operationId;
|
|
3128
2860
|
}
|
|
3129
2861
|
|
|
3130
2862
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -3191,13 +2923,7 @@ export class RadiationTransectCalculationResponseSchema {
|
|
|
3191
2923
|
}
|
|
3192
2924
|
|
|
3193
2925
|
makeCalculationResponse(data: RadiationTransectCalculationResponseSchemaData): RadiationTransectCalculationResponse {
|
|
3194
|
-
return new RadiationTransectCalculationResponse(
|
|
3195
|
-
data.radiationRecords,
|
|
3196
|
-
data.resultCode,
|
|
3197
|
-
data.messages,
|
|
3198
|
-
data.calculationElapsedTime,
|
|
3199
|
-
data.operationId
|
|
3200
|
-
);
|
|
2926
|
+
return new RadiationTransectCalculationResponse(data);
|
|
3201
2927
|
}
|
|
3202
2928
|
}
|
|
3203
2929
|
|
|
@@ -3221,28 +2947,22 @@ class RadiationTransectForPoolFiresCalculationRequest extends CalculationRequest
|
|
|
3221
2947
|
/**
|
|
3222
2948
|
* RadiationTransectForPoolFires calculation request class.
|
|
3223
2949
|
*
|
|
3224
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Pool fire flame results.
|
|
3225
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
3226
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
3227
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
3228
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
3229
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
3230
2950
|
*/
|
|
3231
|
-
constructor(
|
|
2951
|
+
constructor(data: {
|
|
3232
2952
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
3233
2953
|
flameRecords: Entities.FlameRecord[],
|
|
3234
2954
|
flameRecordCount: number,
|
|
3235
2955
|
weather: Entities.Weather,
|
|
3236
2956
|
flammableParameters: Entities.FlammableParameters,
|
|
3237
2957
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
3238
|
-
) {
|
|
2958
|
+
}) {
|
|
3239
2959
|
super();
|
|
3240
|
-
this.poolFireFlameResult = poolFireFlameResult;
|
|
3241
|
-
this.flameRecords = flameRecords;
|
|
3242
|
-
this.flameRecordCount = flameRecordCount;
|
|
3243
|
-
this.weather = weather;
|
|
3244
|
-
this.flammableParameters = flammableParameters;
|
|
3245
|
-
this.flammableOutputConfig = flammableOutputConfig;
|
|
2960
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
2961
|
+
this.flameRecords = data.flameRecords;
|
|
2962
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
2963
|
+
this.weather = data.weather;
|
|
2964
|
+
this.flammableParameters = data.flammableParameters;
|
|
2965
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
3246
2966
|
}
|
|
3247
2967
|
}
|
|
3248
2968
|
|
|
@@ -3282,14 +3002,7 @@ export class RadiationTransectForPoolFiresCalculationRequestSchema {
|
|
|
3282
3002
|
}
|
|
3283
3003
|
|
|
3284
3004
|
makeCalculationRequest(data: RadiationTransectForPoolFiresCalculationRequestSchemaData): RadiationTransectForPoolFiresCalculationRequest {
|
|
3285
|
-
return new RadiationTransectForPoolFiresCalculationRequest(
|
|
3286
|
-
data.poolFireFlameResult,
|
|
3287
|
-
data.flameRecords,
|
|
3288
|
-
data.flameRecordCount,
|
|
3289
|
-
data.weather,
|
|
3290
|
-
data.flammableParameters,
|
|
3291
|
-
data.flammableOutputConfig
|
|
3292
|
-
);
|
|
3005
|
+
return new RadiationTransectForPoolFiresCalculationRequest(data);
|
|
3293
3006
|
}
|
|
3294
3007
|
}
|
|
3295
3008
|
|
|
@@ -3305,40 +3018,35 @@ export class RadiationTransectForPoolFiresCalculation extends CalculationBase {
|
|
|
3305
3018
|
/**
|
|
3306
3019
|
* Calculates the radiation along a specified transect from a flame model down to a specified intensity or lethality level. This calculation can be called after pool fire calculation.
|
|
3307
3020
|
*
|
|
3308
|
-
* @param {Entities.PoolFireFlameResult} poolFireFlameResult - Pool fire flame results.
|
|
3309
|
-
* @param {Entities.FlameRecord[]} flameRecords - an array of flame records.
|
|
3310
|
-
* @param {number} flameRecordCount - Number of flame records.
|
|
3311
|
-
* @param {Entities.Weather} weather - a weather entity.
|
|
3312
|
-
* @param {Entities.FlammableParameters} flammableParameters - a flammable parameters entity.
|
|
3313
|
-
* @param {Entities.FlammableOutputConfig} flammableOutputConfig - a flammable output config entity.
|
|
3314
3021
|
*/
|
|
3315
|
-
constructor(
|
|
3022
|
+
constructor(data: {
|
|
3316
3023
|
poolFireFlameResult: Entities.PoolFireFlameResult,
|
|
3317
3024
|
flameRecords: Entities.FlameRecord[],
|
|
3318
3025
|
flameRecordCount: number,
|
|
3319
3026
|
weather: Entities.Weather,
|
|
3320
3027
|
flammableParameters: Entities.FlammableParameters,
|
|
3321
3028
|
flammableOutputConfig: Entities.FlammableOutputConfig
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
this.
|
|
3326
|
-
this.
|
|
3327
|
-
this.
|
|
3328
|
-
this.
|
|
3329
|
-
this.
|
|
3029
|
+
controller?: AbortController;
|
|
3030
|
+
}) {
|
|
3031
|
+
super(data.controller);
|
|
3032
|
+
this.poolFireFlameResult = data.poolFireFlameResult;
|
|
3033
|
+
this.flameRecords = data.flameRecords;
|
|
3034
|
+
this.flameRecordCount = data.flameRecordCount;
|
|
3035
|
+
this.weather = data.weather;
|
|
3036
|
+
this.flammableParameters = data.flammableParameters;
|
|
3037
|
+
this.flammableOutputConfig = data.flammableOutputConfig;
|
|
3330
3038
|
}
|
|
3331
3039
|
|
|
3332
3040
|
async run() {
|
|
3333
3041
|
try {
|
|
3334
|
-
const request = new RadiationTransectForPoolFiresCalculationRequest(
|
|
3335
|
-
this.poolFireFlameResult,
|
|
3336
|
-
this.flameRecords,
|
|
3337
|
-
this.flameRecordCount,
|
|
3338
|
-
this.weather,
|
|
3339
|
-
this.flammableParameters,
|
|
3340
|
-
this.flammableOutputConfig
|
|
3341
|
-
);
|
|
3042
|
+
const request = new RadiationTransectForPoolFiresCalculationRequest({
|
|
3043
|
+
poolFireFlameResult: this.poolFireFlameResult,
|
|
3044
|
+
flameRecords: this.flameRecords,
|
|
3045
|
+
flameRecordCount: this.flameRecordCount,
|
|
3046
|
+
weather: this.weather,
|
|
3047
|
+
flammableParameters: this.flammableParameters,
|
|
3048
|
+
flammableOutputConfig: this.flammableOutputConfig
|
|
3049
|
+
});
|
|
3342
3050
|
|
|
3343
3051
|
const schema = new RadiationTransectForPoolFiresCalculationRequestSchema();
|
|
3344
3052
|
const validatedRequest = schema.validate(request);
|
|
@@ -3402,21 +3110,20 @@ export class RadiationTransectForPoolFiresCalculationResponse extends Calculatio
|
|
|
3402
3110
|
/**
|
|
3403
3111
|
* RadiationTransectForPoolFires calculation response class.
|
|
3404
3112
|
*
|
|
3405
|
-
* @param {Entities.RadiationRecord[]} radiationRecords - an array of radiation records along transect.
|
|
3406
3113
|
*/
|
|
3407
|
-
constructor(
|
|
3114
|
+
constructor(data: {
|
|
3408
3115
|
radiationRecords: Entities.RadiationRecord[],
|
|
3409
3116
|
resultCode: Enums.ResultCode,
|
|
3410
3117
|
messages: string[],
|
|
3411
3118
|
calculationElapsedTime: number,
|
|
3412
3119
|
operationId: string
|
|
3413
|
-
) {
|
|
3120
|
+
}) {
|
|
3414
3121
|
super();
|
|
3415
|
-
this.radiationRecords = radiationRecords;
|
|
3416
|
-
this.resultCode = resultCode;
|
|
3417
|
-
this.messages = messages;
|
|
3418
|
-
this.calculationElapsedTime = calculationElapsedTime;
|
|
3419
|
-
this.operationId = operationId;
|
|
3122
|
+
this.radiationRecords = data.radiationRecords;
|
|
3123
|
+
this.resultCode = data.resultCode;
|
|
3124
|
+
this.messages = data.messages;
|
|
3125
|
+
this.calculationElapsedTime = data.calculationElapsedTime;
|
|
3126
|
+
this.operationId = data.operationId;
|
|
3420
3127
|
}
|
|
3421
3128
|
|
|
3422
3129
|
initialiseFromDictionary(data: { [key: string]: unknown }) {
|
|
@@ -3483,12 +3190,6 @@ export class RadiationTransectForPoolFiresCalculationResponseSchema {
|
|
|
3483
3190
|
}
|
|
3484
3191
|
|
|
3485
3192
|
makeCalculationResponse(data: RadiationTransectForPoolFiresCalculationResponseSchemaData): RadiationTransectForPoolFiresCalculationResponse {
|
|
3486
|
-
return new RadiationTransectForPoolFiresCalculationResponse(
|
|
3487
|
-
data.radiationRecords,
|
|
3488
|
-
data.resultCode,
|
|
3489
|
-
data.messages,
|
|
3490
|
-
data.calculationElapsedTime,
|
|
3491
|
-
data.operationId
|
|
3492
|
-
);
|
|
3193
|
+
return new RadiationTransectForPoolFiresCalculationResponse(data);
|
|
3493
3194
|
}
|
|
3494
3195
|
}
|