Constructor
new DataReceiverController()
Listens to Events:
OSH.EventManager.EVENT.event:CONNECT_DATASOURCEOSH.EventManager.EVENT.event:DISCONNECT_DATASOURCEOSH.EventManager.EVENT.event:DATASOURCE_UPDATE_TIME
Methods
addDataSource(dataSource, options)
Adds a dataSource to the current list of datasources and pushes it into the buffer.
Parameters:
| Name | Type | Description |
|---|---|---|
dataSource |
Object | the datasource to add |
options |
@deprecated |
- Source:
- See:
addEntity(dataSource, options)
Adds a entity to the current list of datasources and pushes it into the buffer.
Parameters:
| Name | Type | Description |
|---|---|---|
dataSource |
Object | the datasource to add |
options |
@deprecated |
- Source:
- See:
connectAll()
Connects each connector
initBuffer()
Instantiates a new OSH.Buffer OSH.Buffer
updateDataSourceTime(id, startTime, endTime)
Updates the datasource time range.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
the datasource id |
|
startTime |
the start time |
|
endTime |
the end time |