Qrating
Defines the builder to configure a qurating of datastream of IoT datamodel. With this builder you can configure a qrating
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
Build a Qrating json object |
|
| public |
withConversionMatrix(conversionMatrix: Object): Qrating Set the conversionMatrix attribute |
|
| public |
withCumulativePeriodDivisor(cumulativePeriodDivisor: string): Qrating Set the cumulativePeriodDivisor attribute |
|
| public |
Set the ideal attribute |
|
| public |
withMaxAllowed(label: string, value: number): Qrating Set the maxAllowed attribute |
|
| public |
withMaxDesired(label: string, value: number): Qrating Set the maxDesired attribute |
|
| public |
withMaxScore(maxScore: number): Qrating Set the maxScore attribute |
|
| public |
withMinDesired(label: string, value: number): Qrating Set the minDesired attribute |
|
| public |
withMinRequired(label: string, value: number): Qrating Set the minRequired attribute |
|
| public |
withVersion(version: string): Qrating Set the version attribute |
|
Public Constructors
public constructor() source
Public Methods
public build(): Object source
Build a Qrating json object
Throw:
Throw error if there is not version, minRequired, minDesired, ideal, maxDesired, maxAllowed and maxScore |
Example:
ogapi.QratingsBuilder().build()
public withConversionMatrix(conversionMatrix: Object): Qrating source
Set the conversionMatrix attribute
Params:
| Name | Type | Attribute | Description |
| conversionMatrix | Object |
|
public withCumulativePeriodDivisor(cumulativePeriodDivisor: string): Qrating source
Set the cumulativePeriodDivisor attribute
Params:
| Name | Type | Attribute | Description |
| cumulativePeriodDivisor | string |
|
public withMaxScore(maxScore: number): Qrating source
Set the maxScore attribute
Params:
| Name | Type | Attribute | Description |
| maxScore | number |
|
required field |