models/state.model.ts
Disagg app state
Properties |
| availableModels |
availableModels:
|
Type : Parameter[]
|
|
Available NSHMs |
| componentData |
componentData:
|
Type : DisaggComponentData
|
|
Current component data |
| disaggData |
disaggData:
|
Type : DisaggResponseDataValues
|
|
Current disagg data |
| faultSections |
faultSections:
|
Type : GeoJSON.FeatureCollection
|
|
Fault sections |
| interfaceSections |
interfaceSections:
|
Type : GeoJSON.FeatureCollection
|
|
Interface sections |
| nshmServices |
nshmServices:
|
Type : NshmMetadata[]
|
|
NSHM service metadata |
| responseSpectra |
responseSpectra:
|
Type : ResponseSpectra[]
|
|
Hazard response spectra data |
| serviceCallInfo |
serviceCallInfo:
|
Type : ServiceCallInfo
|
|
Service call info |
| serviceResponse |
serviceResponse:
|
Type : DisaggResponse
|
|
Hazard service responses |
| usageResponses |
usageResponses:
|
Type : Map<string | DisaggUsage>
|
|
Hazard usage responses |
| view |
view:
|
Type : SceneView
|
import SceneView from '@arcgis/core/views/SceneView';
import {ResponseSpectra} from '@ghsc/nshmp-lib-ng/hazard';
import {ServiceCallInfo} from '@ghsc/nshmp-lib-ng/nshmp';
import {
DisaggComponentData,
DisaggResponse,
DisaggResponseDataValues,
DisaggUsage,
} from '@ghsc/nshmp-utils-ts/libs/nshmp-haz/www/disagg-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';
/**
* Disagg app state
*/
export interface AppState {
/** Available NSHMs */
availableModels: Parameter[];
/** Current component data */
componentData: DisaggComponentData;
/** Current disagg data */
disaggData: DisaggResponseDataValues;
/** Fault sections */
faultSections: GeoJSON.FeatureCollection;
/** Interface sections */
interfaceSections: GeoJSON.FeatureCollection;
/** NSHM service metadata */
nshmServices: NshmMetadata[];
/** Hazard response spectra data */
responseSpectra: ResponseSpectra[];
/** Service call info */
serviceCallInfo: ServiceCallInfo;
/** Hazard service responses */
serviceResponse: DisaggResponse;
/** Hazard usage responses */
usageResponses: Map<string, DisaggUsage>;
view: SceneView;
}