File

src/utility/configurables/dataConfigurableI.interface.ts

Extends

Stylable

Index

Properties
Methods

Methods

getCurrentSpatialBounds
getCurrentSpatialBounds()
Returns : BoundingBox
getCurrentTemporalRange
getCurrentTemporalRange()
Returns : TemporalRange
getDistributionDetails
getDistributionDetails()

Retrieves the DistributionDetails that this object was created with.

getDownloadableFormats
getDownloadableFormats()

Returns an Array of DistributionFormats available on this configurable, that are classified as downloadable.

getGraphableFormats
getGraphableFormats()

Returns an Array of DistributionFormats available on this configurable, that are classified as graphable.

getMappableableFormats
getMappableableFormats()

Returns an Array of DistributionFormats available on this configurable, that are classified as mappable.

getNewParameterValues
getNewParameterValues()

Retrieves the #newParamValues variable.

Returns : Array<ParameterValue>
getNewSpatialBounds
getNewSpatialBounds()
Returns : BoundingBox
getNewTemporalRange
getNewTemporalRange()
Returns : TemporalRange
getParameterDefinitions
getParameterDefinitions()

Retrieves the ParameterDefinitions from the DistributionDetails that this object was created with.

getShowSpatialCoverage
getShowSpatialCoverage()
Returns : boolean
getSpatialCoverage
getSpatialCoverage()
isOnlyDownloadable
isOnlyDownloadable()
Returns : boolean
isSpatialLinked
isSpatialLinked()

returns the value of the the #spatialLinked variable.

Returns : boolean
isTemporalLinked
isTemporalLinked()
Returns : boolean
reload
reload(newConfigurable?: DataConfigurable)
Parameters :
Name Type Optional
newConfigurable DataConfigurable Yes
setLoading
setLoading(loading: boolean)

Sets the internal #loading variable before calling #updateActionsEnabledStatus.

Parameters :
Name Type Optional
loading boolean No
setNewParams
setNewParams(newParamValues: Array)

Sets the #newParamValues variable. Also:

Parameters :
Name Type Optional Description
newParamValues Array<ParameterValue> No

New values to set.

setShowSpatialCoverage
setShowSpatialCoverage(show: boolean)
Parameters :
Name Type Optional
show boolean No
setSpatialLinked
setSpatialLinked(linked: boolean)

Sets the value of the the #spatialLinked variable and calls reload.

Parameters :
Name Type Optional Description
linked boolean No

Whether spatially linked or not.

setTemporalLinked
setTemporalLinked(linked: boolean)
Parameters :
Name Type Optional
linked boolean No
setTriggerReloadFunc
setTriggerReloadFunc(func: (configurable: DataConfigurable) => void)
Parameters :
Name Type Optional
func function No
setValid
setValid(valid: boolean)

Sets the internal #valid variable before calling #updateActionsEnabledStatus.

Parameters :
Name Type Optional Description
valid boolean No

Whether this object is valid or not.

Properties

actions
actions: null | Array<DataConfigurableAction>
Type : null | Array<DataConfigurableAction>
context
context: string
Type : string
currentParamValues
currentParamValues: Array<ParameterValue>
Type : Array<ParameterValue>
id
id: string
Type : string
isDownloadable
isDownloadable: boolean
Type : boolean
isGraphable
isGraphable: boolean
Type : boolean
isMappable
isMappable: boolean
Type : boolean
isTabularable
isTabularable: boolean
Type : boolean
loading
loading: boolean
Type : boolean
name
name: string
Type : string
showSpatialObs
showSpatialObs: Observable<boolean>
Type : Observable<boolean>
styleObs
styleObs: Observable<null | Style>
Type : Observable<null | Style>
import { BoundingBox } from 'api/webApi/data/boundingBox.interface';
import { DistributionDetails } from 'api/webApi/data/distributionDetails.interface';
import { DistributionFormat } from 'api/webApi/data/distributionFormat.interface';
import { ParameterDefinitions } from 'api/webApi/data/parameterDefinitions.interface';
import { ParameterValue } from 'api/webApi/data/parameterValue.interface';
import { SpatialRange } from 'api/webApi/data/spatialRange.interface';
import { TemporalRange } from 'api/webApi/data/temporalRange.interface';
import { Observable } from 'rxjs';
import { Stylable } from 'utility/styler/stylable.interface';
import { Style } from 'utility/styler/style';
import { DataConfigurable } from './dataConfigurable.abstract';
import { DataConfigurableAction } from './dataConfigurableAction';

export interface DataConfigurableI extends Stylable {
  id: string;
  name: string;
  loading: boolean;
  styleObs: Observable<null | Style>;
  currentParamValues: Array<ParameterValue>;
  readonly actions: null | Array<DataConfigurableAction>;

  readonly showSpatialObs: Observable<boolean>;

  isMappable: boolean;
  isGraphable: boolean;
  isDownloadable: boolean;
  isTabularable: boolean;

  context: string;

  /**
   * Retrieves the {@link DistributionDetails} that this object was created with.
   */
  getDistributionDetails(): DistributionDetails;

  /**
   * Sets the internal {@link #valid} variable before calling {@link #updateActionsEnabledStatus}.
   * @param valid Whether this object is valid or not.
   */
  setValid(valid: boolean): this;

  /**
   * Sets the internal {@link #loading} variable before calling {@link #updateActionsEnabledStatus}.
   * @param valid Whether this object is loading or not.
   */
  setLoading(loading: boolean): this;

  /**
   * Returns an Array of {@link DistributionFormat}s available on this configurable, that are
   * classified as mappable.
   */
  getMappableableFormats(): Array<DistributionFormat>;
  /**
   * Returns an Array of {@link DistributionFormat}s available on this configurable, that are
   * classified as downloadable.
   */
  getDownloadableFormats(): Array<DistributionFormat>;

  /**
   * Returns an Array of {@link DistributionFormat}s available on this configurable, that are
   * classified as graphable.
   */
  getGraphableFormats(): Array<DistributionFormat>;

  /**
   * Sets the {@link #newParamValues} variable. Also:
   * - re-evaluates the {@link #changed} variable
   * - re-evaluates the {@link #sameAsDefaults} variable
   * - calls the {@link #updateActionsEnabledStatus} function to re-evaluate the action statuses
   * @param newParamValues New values to set.
   */
  setNewParams(newParamValues: Array<ParameterValue>): this;

  /** returns the value of the the {@link #spatialLinked} variable. */
  isSpatialLinked(): boolean;
  /**
   * Sets the value of the the {@link #spatialLinked} variable and calls {@link reload}.
   * @param linked Whether spatially linked or not.
   */
  setSpatialLinked(linked: boolean): this;
  getCurrentSpatialBounds(): BoundingBox;
  getNewSpatialBounds(): BoundingBox;

  isTemporalLinked(): boolean;
  setTemporalLinked(linked: boolean): this;
  getCurrentTemporalRange(): TemporalRange;
  getNewTemporalRange(): TemporalRange;

  setTriggerReloadFunc(func: (configurable: DataConfigurable) => void): this;

  reload(newConfigurable?: DataConfigurable): this;

  setShowSpatialCoverage(show: boolean): this;

  getShowSpatialCoverage(): boolean;

  getSpatialCoverage(): null | SpatialRange;

  /**
   * Retrieves the {@link ParameterDefinitions} from the {@link DistributionDetails} that this
   * object was created with.
   */
  getParameterDefinitions(): ParameterDefinitions;
  /**
   * Retrieves the {@link #newParamValues} variable.
   */
  getNewParameterValues(): Array<ParameterValue>;

  isOnlyDownloadable(): boolean;
}

results matching ""

    No results matching ""