Constructor
new TimeSeriesReplayDatasource()
Methods
(async) disconnect()
Disconnect the dataSource then the protocol will be closed as well.
getEndTimeAsIsoDate() → {String}
Gets the endTime
Returns:
- endTime as ISO date
- Type
- String
getEndTimeAsTimestamp() → {String}
Gets the endTime
Returns:
- endTime as unix timestamp
- Type
- String
getMaxTimeAsIsoDate() → {String}
Gets the endTime
Returns:
- endTime as ISO date
- Type
- String
getMaxTimeAsTimestamp() → {String}
Gets the endTime
Returns:
- endTime as unix timestamp
- Type
- String
getMinTimeAsIsoDate() → {String}
Gets the startTime
Returns:
- startTime as ISO date
- Type
- String
getMinTimeAsTimestamp() → {String}
Gets the startTime
Returns:
- startTime as unix timestamp
- Type
- String
getMode() → {Mode}
Gets the mode
Returns:
- Datasource mode
- Type
- Mode
getReplaySpeed() → {String}
Gets the endTime
Returns:
- endTime as ISO date
- Type
- String
getStartTimeAsIsoDate() → {String}
Gets the startTime
Returns:
- startTime as ISO date
- Type
- String
getStartTimeAsTimestamp() → {String}
Gets the startTime
Returns:
- startTime as unix timestamp
- Type
- String
(async, protected) initDataSource(properties)
Inits the datasource with the constructor properties.
Parameters:
Name | Type | Description |
---|---|---|
properties |
(async) setDataSynchronizer(dataSynchronizer) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
dataSynchronizer |
Returns:
- Type
- Promise
setEndTime()
Sets the end time
setEndTimestamp()
Sets the end time
setMaxTime()
Sets the max time
setMinTime()
Sets the min time
setReplaySpeed() → {String}
Gets the endTime
Returns:
- endTime as ISO date
- Type
- String
setStartTime()
Sets the start time
setStartTimestamp()
Sets the start time
(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 |