arlas-web-contributors > "contributors/ComputeContributor" > ComputeContributor

Class: ComputeContributor

Hierarchy

Contributor

↳ ComputeContributor

Index

Constructors

Properties

Methods


Constructors

constructor

new ComputeContributor(identifier: string, collaborativeSearcheService: CollaborativesearchService, configService: ConfigService): ComputeContributor

Overrides Contributor.__constructor

Defined in contributors/ComputeContributor.ts:38

Parameters:

Name Type Description
identifier string Identifier of contributor.
collaborativeSearcheService CollaborativesearchService Instance of CollaborativesearchService from Arlas-web-core.
configService ConfigService Instance of ConfigService from Arlas-web-core.

Returns: ComputeContributor


Properties

<Protected> cacheDuration

● cacheDuration: number

Inherited from Contributor.cacheDuration

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:13


collaborativeSearcheService

● collaborativeSearcheService: CollaborativesearchService

Inherited from Contributor.collaborativeSearcheService

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:8


configService

● configService: ConfigService

Inherited from Contributor.configService

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:7


function

● function: string = this.getConfigValue('function')

Defined in contributors/ComputeContributor.ts:33


identifier

● identifier: string

Inherited from Contributor.identifier

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:6


isDataUpdating

● isDataUpdating: boolean

Inherited from Contributor.isDataUpdating

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:12


metricValue

● metricValue: number

Defined in contributors/ComputeContributor.ts:38


metrics

● metrics: Array<object> = this.getConfigValue('metrics')

Defined in contributors/ComputeContributor.ts:31


title

● title: string = this.getConfigValue('title')

Defined in contributors/ComputeContributor.ts:35


updateData

● updateData: boolean

Inherited from Contributor.updateData

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:38


Methods

computeData

computeData(data: Array<ComputationResponse>): Array<ComputationResponse>

Overrides Contributor.computeData

Defined in contributors/ComputeContributor.ts:70

Parameters:

Name Type
data Array<ComputationResponse>

Returns: Array<ComputationResponse>


fetchData

fetchData(collaborationEvent: CollaborationEvent): Observable<Array<ComputationResponse>>

Overrides Contributor.fetchData

Defined in contributors/ComputeContributor.ts:54

Parameters:

Name Type
collaborationEvent CollaborationEvent

Returns: Observable<Array<ComputationResponse>>


getConfigValue

getConfigValue(key: string): any

Inherited from Contributor.getConfigValue

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:27

Parameters:

Name Type Description
key string a `key` defined in configuration.

Returns: any value of the key in configuration.


getFilterDisplayName

getFilterDisplayName(): string

Overrides Contributor.getFilterDisplayName

Defined in contributors/ComputeContributor.ts:88

Returns: string Pretty name of contributor based on query propoerty.


getName

getName(): string

Inherited from Contributor.getName

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:31

Returns: string name of contributor set in configuration.


getPackageName

getPackageName(): string

Overrides Contributor.getPackageName

Defined in contributors/ComputeContributor.ts:94

Returns: string Package name for the configuration service.


setData

setData(data: Array<ComputationResponse>): any

Overrides Contributor.setData

Defined in contributors/ComputeContributor.ts:74

Parameters:

Name Type
data Array<ComputationResponse>

Returns: any


setSelection

setSelection(collaboration: Collaboration): any

Overrides Contributor.setSelection

Defined in contributors/ComputeContributor.ts:81

Parameters:

Name Type
collaboration Collaboration

Returns: any


updateFromCollaboration

updateFromCollaboration(collaborationEvent: CollaborationEvent): void

Inherited from Contributor.updateFromCollaboration

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:47

Parameters:

Name Type
collaborationEvent CollaborationEvent

Returns: void


<Static> getJsonSchema

getJsonSchema(): Object

Defined in contributors/ComputeContributor.ts:50

Returns: Object