Class: TimeSeriesReplayDatasource

TimeSeriesReplayDatasource()

The DataSource is the abstract class used to create different datasources.

Constructor

new TimeSeriesReplayDatasource()

Source:

Methods

(async) disconnect()

Disconnect the dataSource then the protocol will be closed as well.
Source:

getEndTimeAsIsoDate() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getEndTimeAsTimestamp() → {String}

Gets the endTime
Source:
Returns:
- endTime as unix timestamp
Type
String

getMaxTimeAsIsoDate() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getMaxTimeAsTimestamp() → {String}

Gets the endTime
Source:
Returns:
- endTime as unix timestamp
Type
String

getMinTimeAsIsoDate() → {String}

Gets the startTime
Source:
Returns:
- startTime as ISO date
Type
String

getMinTimeAsTimestamp() → {String}

Gets the startTime
Source:
Returns:
- startTime as unix timestamp
Type
String

getMode() → {Mode}

Gets the mode
Source:
Returns:
- Datasource mode
Type
Mode

getReplaySpeed() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

getStartTimeAsIsoDate() → {String}

Gets the startTime
Source:
Returns:
- startTime as ISO date
Type
String

getStartTimeAsTimestamp() → {String}

Gets the startTime
Source:
Returns:
- startTime as unix timestamp
Type
String

(async, protected) initDataSource(properties)

Inits the datasource with the constructor properties.
Parameters:
Name Type Description
properties
Source:

(async) setDataSynchronizer(dataSynchronizer) → {Promise}

Parameters:
Name Type Description
dataSynchronizer
Source:
Returns:
Type
Promise

setEndTime()

Sets the end time
Source:

setEndTimestamp()

Sets the end time
Source:

setMaxTime()

Sets the max time
Source:

setMinTime()

Sets the min time
Source:

setReplaySpeed() → {String}

Gets the endTime
Source:
Returns:
- endTime as ISO date
Type
String

setStartTime()

Sets the start time
Source:

setStartTimestamp()

Sets the start time
Source:

(async) setTimeRange(startTime, endTime, replaySpeed, reconnect, mode, version)

Sets the data source time range
Parameters:
Name Type Default Description
startTime String the startTime (in date ISO)
endTime String the startTime (in date ISO)
replaySpeed Number the replay speed
reconnect boolean false reconnect if was connected
mode Mode default dataSource mode
version Number version of data
Source: