Last updated

API / geotoolkit / ivaapbackend / reservoir / RemoteReservoirDataSource / RemoteReservoirDataSource

Class: RemoteReservoirDataSource

reservoir.RemoteReservoirDataSource.RemoteReservoirDataSource

Provide utility class to load reservoir data from IVAAP backend

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
hostnamestringThe host name for requests

Contents

Constructors

new RemoteReservoirDataSource(options)

new RemoteReservoirDataSource(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

RemoteDataSource<RemoteReservoirDataSource.MetaInfo>.constructor

Methods

dispose

dispose(): void

Dispose

Returns

void

Overrides

RemoteDataSource.dispose


getClassName

getClassName(): string

Returns

string

Overrides

RemoteDataSource.getClassName


getHostName

Protected getHostName(): string

Gets host name

Returns

string

Inherited from

RemoteDataSource.getHostName


getHttpService

Protected getHttpService(): AbstractHttpService

Gets a http service associated with this data source

Returns

AbstractHttpService

Inherited from

RemoteDataSource.getHttpService


getId

getId(): string

Gets data identifier

Returns

string

Inherited from

RemoteDataSource.getId


getLinks(): Link[]

Gets links

Returns

Link[]

Inherited from

RemoteDataSource.getLinks


getMetaData

getMetaData(): MetaInfo

Returns meta information from IVAAP backend

Returns

MetaInfo

meta meta data

Inherited from

RemoteDataSource.getMetaData


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties

Inherited from

RemoteDataSource.getProperties


isZFPEnabled

isZFPEnabled(): boolean

Returns true if browser supports WebAssembly and ZFP is enabled

Returns

boolean


loadCells

loadCells(level?, idNode?, filterSpec?, onProgress?, cancel?): Promise<LegacyCell[] | ArrayCells>

Load reservoir cells

Parameters

Name Type Description
Optional levelnumberthe level of resolution
Optional idNodenumberthe node index
Optional filterSpecstringthe filter that should be applied
Optional onProgress(event: ProgressEvent<EventTarget>) => voida function to be executed to handle progress
Optional cancelCancela Cancel object that can be used to cancel the loading.

Returns

Promise<LegacyCell[] | ArrayCells>

and promise with cells data, the Promise return type change based on the value set to this dataSource constructor "efficientdatalayout" option. If set to false or not specified, the return type will be the deprecated LegacyCellType[] type. If set to true, the return type will be the new TypedArrayCells type.


loadMeta

loadMeta(url, onProgress?, cancel?): Promise<MetaInfo>

Load the reservoir MetaDatas from the given URL

Parameters

Name Type Description
urlstringurl of metaData information
Optional onProgress(event: ProgressEvent<EventTarget>) => voida function to be executed to handle progress
Optional cancelCancela Cancel object that can be used to cancel the loading

Returns

Promise<MetaInfo>

The promise for the MetaData

Overrides

RemoteDataSource.loadMeta


loadValues

loadValues(ordinal?, filterSpec?, onProgress?, cancel?): Promise<LegacyValues | ArrayValues>

Load reservoir values

Parameters

Name Type Description
Optional ordinalstringthe ordinal number of a requested property in a list of properties
Optional filterSpecstringthe filter that should be applied
Optional onProgress(event: ProgressEvent<EventTarget>) => voida function to be executed to handle progress
Optional cancelCancela Cancel object that can be used to cancel the loading.

Returns

Promise<LegacyValues | ArrayValues>

and promise with cells data, the Promise return type change based on the value set to this dataSource constructor "efficientdatalayout" option. If set to false or not specified, the return type will be the deprecated LegacyValuesType[] type. If set to true, the return type will be the new TypedArrayValues type.


setHostName

Protected setHostName(host): RemoteReservoirDataSource

Sets host name

Parameters

Name Type Description
hoststringthe host name

Returns

RemoteReservoirDataSource

Inherited from

RemoteDataSource.setHostName


setHttpService

Protected setHttpService(service): RemoteReservoirDataSource

Sets a http service associated with this data source

Parameters

Name Type Description
serviceAbstractHttpServicethe http service

Returns

RemoteReservoirDataSource

Inherited from

RemoteDataSource.setHttpService


setId

Protected setId(id): RemoteReservoirDataSource

Sets data identifier

Parameters

Name Type Description
idstringthe identifier

Returns

RemoteReservoirDataSource

Inherited from

RemoteDataSource.setId


Protected setLinks(links): RemoteReservoirDataSource

Sets links

Parameters

Name Type Description
linksLink[]the links

Returns

RemoteReservoirDataSource

Inherited from

RemoteDataSource.setLinks


setMetaData

Protected setMetaData(meta): RemoteReservoirDataSource

Sets meta information

Parameters

Name Type Description
metaMetaInfothe meta information

Returns

RemoteReservoirDataSource

Inherited from

RemoteDataSource.setMetaData


setOptions

setOptions(options): RemoteReservoirDataSource

Set this RemoteReservoirDataSource options

Parameters

Name Type
optionsOptionsBase

Returns

RemoteReservoirDataSource


setProperties

setProperties(properties?): RemoteReservoirDataSource

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

RemoteReservoirDataSource

this

Inherited from

RemoteDataSource.setProperties


getClassName

Static getClassName(): string

Returns

string

Overrides

RemoteDataSource.getClassName