import PowerSupply from 'opengate-js/src/collection/devices/collect/PowerSupply.js'PowerSupply
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 |
withBatteryChargeLevelPercentage(percentage: string): PowerSupply Set the BatteryChargeLevel percentage attribute |
|
| public |
withBatteryChargeLevelStatus(status: string): PowerSupply Set the battery status attribute |
|
| public |
withBatteryChargeLevelTrend(trend: string): PowerSupply Set the trend attribute |
|
| public |
withOutageDate(outageDate: string): PowerSupply Set the OutageDate attribute |
|
| public |
withOutageDuration(duration: number): PowerSupply Set the duration attribute |
|
| public |
withSource(source: string): PowerSupply Set the source attribute |
|
| public |
withStatus(status: string): PowerSupply Set the status attribute |
|
Public Constructors
public constructor() source
Public Methods
public withBatteryChargeLevelPercentage(percentage: string): PowerSupply source
Set the BatteryChargeLevel percentage attribute
Params:
| Name | Type | Attribute | Description |
| percentage | string | optionals field |
public withBatteryChargeLevelStatus(status: string): PowerSupply source
Set the battery status attribute
Params:
| Name | Type | Attribute | Description |
| status | string | optionals field |
public withBatteryChargeLevelTrend(trend: string): PowerSupply source
Set the trend attribute
Params:
| Name | Type | Attribute | Description |
| trend | string | optionals field |
public withOutageDate(outageDate: string): PowerSupply source
Set the OutageDate attribute
Params:
| Name | Type | Attribute | Description |
| outageDate | string | optionals field |
public withOutageDuration(duration: number): PowerSupply source
Set the duration attribute
Params:
| Name | Type | Attribute | Description |
| duration | number | optionals field |
public withSource(source: string): PowerSupply source
Set the source attribute
Params:
| Name | Type | Attribute | Description |
| source | string | optionals field |
public withStatus(status: string): PowerSupply source
Set the status attribute
Params:
| Name | Type | Attribute | Description |
| status | string | optionals field |