TaskOutput
TaskOutput collects datapoints, notifications, and assignments into one object.
Constructor Summary
| Public Constructor | ||
| public |
TaskOutput collects datapoints, notifications, and assignments into one object. |
|
Member Summary
| Public Members | ||
| public |
assignments: *[] Store assignments in an array. |
|
| public |
datapoints: *[] Store Datapoints in an array. |
|
| public |
notifications: *[] Store Notifications in an array. |
|
Method Summary
| Public Methods | ||
| public |
addAssignment(assn: object): TaskOutput Add an assignment to the task output. |
|
| public |
addDatapoint(dpt: *): TaskOutput Add a datapoint |
|
| public |
addNotification(notif: object): TaskOutput Add a notification to the task output. |
|
| public |
Generate an object collecting datapoints, notifications, and assignments. |
|
| public |
Convert the task output to a string. |
|
Public Constructors
public constructor() source
TaskOutput collects datapoints, notifications, and assignments into one object.
Public Members
Public Methods
public addAssignment(assn: object): TaskOutput source
Add an assignment to the task output.
Params:
| Name | Type | Attribute | Description |
| assn | object | Assignment JSON object. |
public addDatapoint(dpt: *): TaskOutput source
Add a datapoint
Params:
| Name | Type | Attribute | Description |
| dpt | * | Datapoint instance or JSON object. |
public addNotification(notif: object): TaskOutput source
Add a notification to the task output.
Params:
| Name | Type | Attribute | Description |
| notif | object | Notification JSON object. |
