import Datapoint from 'opengate-js/src/collection/devices/collect/Datapoint.js'Datapoint
This is a base object that allows the user to create a Datapoint.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
composeElement(): * |
|
| public |
Sets the at attribute |
|
| public |
Sets the from attribute |
|
| public |
withSource(value: string): Datapoint Sets the source attribute |
|
| public |
withSourceInfo(value: string): Datapoint Sets the source attribute |
|
| public |
Sets the tags attribute |
|
| public |
Sets the value attribute |
|
Public Constructors
public constructor() source
Public Methods
public withAt(at: number): Datapoint source
Sets the at attribute
Params:
| Name | Type | Attribute | Description |
| at | number | optional field |
public withFrom(from: number): Datapoint source
Sets the from attribute
Params:
| Name | Type | Attribute | Description |
| from | number | optional field |
public withSource(value: string): Datapoint source
Sets the source attribute
Params:
| Name | Type | Attribute | Description |
| value | string | optional field |
public withSourceInfo(value: string): Datapoint source
Sets the source attribute
Params:
| Name | Type | Attribute | Description |
| value | string | optional field |