Class: DataReceiverController

OSH.DataReceiver.DataReceiverController

This class is responsible of handling datasources. It observes necessary events to manage datasources.

Constructor

new DataReceiverController()

Source:
Listens to Events:
  • OSH.EventManager.EVENT.event:CONNECT_DATASOURCE
  • OSH.EventManager.EVENT.event:DISCONNECT_DATASOURCE
  • OSH.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

Source:

initBuffer()

Instantiates a new OSH.Buffer OSH.Buffer

Source:

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

Source: