models/state.model.ts
Dynamic hazard state.
Properties |
availableModels |
availableModels:
|
Type : Parameter[]
|
Available NSHMs |
nshmServices |
nshmServices:
|
Type : NshmMetadata[]
|
NSHM service metadata |
plots |
plots:
|
Type : Map<string | NshmpPlot>
|
Hazard plots |
responseSpectra |
responseSpectra:
|
Type : ResponseSpectra
|
Hazard response spectra data |
serviceCallInfo |
serviceCallInfo:
|
Type : ServiceCallInfo
|
Service call info |
serviceResponse |
serviceResponse:
|
Type : HazardCalcResponse
|
Hazard service responses |
usageResponses |
usageResponses:
|
Type : Map<string | HazardUsageResponse>
|
Hazard usage responses |
import {ResponseSpectra} from '@ghsc/nshmp-lib-ng/hazard';
import {ServiceCallInfo} from '@ghsc/nshmp-lib-ng/nshmp';
import {NshmpPlot} from '@ghsc/nshmp-lib-ng/plot';
import {
HazardCalcResponse,
HazardUsageResponse,
} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/hazard-service';
import {NshmMetadata} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/nshm-service';
import {Parameter} from '@ghsc/nshmp-utils-ts/libs/nshmp-ws-utils/metadata';
/**
* Dynamic hazard state.
*/
export interface AppState {
/** Available NSHMs */
availableModels: Parameter[];
/** NSHM service metadata */
nshmServices: NshmMetadata[];
/** Hazard plots */
plots: Map<string, NshmpPlot>;
/** Hazard response spectra data */
responseSpectra: ResponseSpectra;
/** Service call info */
serviceCallInfo: ServiceCallInfo;
/** Hazard service responses */
serviceResponse: HazardCalcResponse;
/** Hazard usage responses */
usageResponses: Map<string, HazardUsageResponse>;
}