File

models/state.model.ts

Extends

HazardPlots

Index

Properties

Properties

magnitudes
magnitudes: NshmpPlot
Type : NshmpPlot
sources
sources: NshmpPlot
Type : NshmpPlot
import {HazardPlots, 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';

export interface Plots extends HazardPlots {
  magnitudes: NshmpPlot;
  sources: NshmpPlot;
}

/**
 * Dynamic hazard state.
 */
export interface AppState {
  /** Available NSHMs */
  availableModels: Parameter[];
  /** NSHM service metadata */
  nshmServices: NshmMetadata[];
  /** Hazard plots */
  plots: Plots;
  /** Hazard response spectra data */
  responseSpectra: ResponseSpectra;
  /** Service call info */
  serviceCallInfo: ServiceCallInfo;
  /** Hazard service responses */
  serviceResponse: HazardCalcResponse;
  /** Hazard usage responses */
  usageResponses: Map<string, HazardUsageResponse>;
}

results matching ""

    No results matching ""