File

models/state.model.ts

Description

Disagg app state

Index

Properties

Properties

availableModels
availableModels: Parameter[]
Type : Parameter[]

Available NSHMs

componentData
componentData: DisaggComponentData
Type : DisaggComponentData

Current component data

disaggData
disaggData: DisaggResponseDataValues
Type : DisaggResponseDataValues

Current disagg data

faults
faults: GeoJSON.FeatureCollection
Type : GeoJSON.FeatureCollection

Fault sections

nshmServices
nshmServices: NshmMetadata[]
Type : NshmMetadata[]

NSHM service metadata

plots
plots: Map<string | NshmpPlot>
Type : Map<string | NshmpPlot>

Hazard plots

responseSpectra
responseSpectra: ResponseSpectra[]
Type : ResponseSpectra[]

Hazard response spectra data

serviceCallInfo
serviceCallInfo: ServiceCallInfo
Type : ServiceCallInfo

Service call info

serviceResponse
serviceResponse: DisaggResponse
Type : DisaggResponse

Hazard service responses

usageResponses
usageResponses: Map<string | DisaggUsage>
Type : Map<string | DisaggUsage>

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 {
  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 */
  faults: GeoJSON.FeatureCollection;
  /** 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: DisaggResponse;
  /** Hazard usage responses */
  usageResponses: Map<string, DisaggUsage>;
}

results matching ""

    No results matching ""