Function Info |
|---|
function SamplePoint 采样点,可以表示瞬时测量、读取或输入的观察值,也可以表示某个时间间隔内的平均值或统计值。 |
Constructor Name |
|---|
function SamplePoint(Array values, String startTime, String endTime, String metadata) 构造SamplePoint。 |
Qualifier and Type | Method Name and Description |
|---|---|
String | 获取数据采样点的结束时间。 |
String | 获取数据采样点的元数据值。 |
String | 获取数据采样点的开始时间。 |
Array | 获取数据采样点的字段值。 |
- | setEndTime(String endTime) 设置数据采样点的结束时间。 |
- | setMetadata(String metadata) 设置数据采样点的元数据值。 |
- | setStartTime(String startTime) 设置数据采样点的开始时间。 |
- | setValues(Array values) 设置数据采样点的字段值。 |
Constructor |
|---|
function SamplePoint(Array values, String startTime, String endTime, String metadata) 构造SamplePoint。 |
Parameters
Name | Description |
|---|---|
values | 数据采样点的字段值。 |
startTime | 数据采样点的开始时间。 |
endTime | 数据采样点的结束时间。 |
metadata | 数据采样点的元数据值。 |
Method |
|---|
SamplePoint.prototype.getValues = function () {} 获取数据采样点的字段值。 |
Returns
Type | Description |
|---|---|
Array | 数据采样点的字段值。 |
Method |
|---|
SamplePoint.prototype.getStartTime = function () {} 获取数据采样点的开始时间。 |
Returns
Type | Description |
|---|---|
String | 数据采样点的开始时间。 |
Method |
|---|
SamplePoint.prototype.getEndTime = function () {} 获取数据采样点的结束时间。 |
Returns
Type | Description |
|---|---|
String | 数据采样点的结束时间。 |
Method |
|---|
SamplePoint.prototype.getMetadata = function () {} 获取数据采样点的元数据值。 |
Returns
Type | Description |
|---|---|
String | 数据采样点的元数据值。 |
Method |
|---|
SamplePoint.prototype.setValues = function (Array values) {} 设置数据采样点的字段值。 |
Parameters
Name | Description |
|---|---|
values | 数据采样点的字段值。 |
Method |
|---|
SamplePoint.prototype.setStartTime = function (String startTime) {} 设置数据采样点的开始时间。 |
Parameters
Name | Description |
|---|---|
startTime | 数据采样点的开始时间。 |