Constructor
new SosGetResultJson(name, properties)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | String | the datasource name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| properties | Object | the datasource properties Properties
 | 
Example
import SosGetResultJson from 'core/datasource/SosGetResultJson.js';
let androidPhoneGpsDataSource = new SosGetResultJson("android-GPS", {
    protocol: "ws",
    service: "SOS",
    endpointUrl: "sensiasoft.net:8181/sensorhub/sos",
    offeringID: "urn:android:device:060693280a28e015-sos",
    observedProperty: "http://sensorml.com/ont/swe/property/Location",
    startTime: "2015-02-16T07:58:00Z",
    endTime: "2015-02-16T08:09:00Z",
    replaySpeed: replaySpeed+"",
    bufferingTime: 1000,
    timeShift: -16000
  });Extends
Methods
(async) connect()
    Connect the dataSource then the protocol will be opened as well.
- Overrides:
- Source:
disconnect()
    Disconnect the dataSource then the protocol will be closed as well.
- Overrides:
- Source:
getId() → {String}
    Gets the datasource id.
- Overrides:
- Source:
Returns:
    the datasource id
- Type
- String
getName() → {String}
    Gets the datasource name.
- Overrides:
- Source:
Returns:
    the datasource name
- Type
- String
(protected) initDataSource(properties)
    Inits the datasource with the constructor properties.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| properties | 
- Overrides:
- Source:
onDisconnect()
    Trigger when the datasource is disconnected for some reason.
- Overrides:
- Source:
updateProperties(name, properties)
    Update properties
    Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | String | the datasource name | |||||||||||||||||||||||||||||||||
| properties | Object | the datasource properties Properties
 | 
- Overrides:
- Source: