目录

SamplePoint

Function Info

function SamplePoint

采样点,可以表示瞬时测量、读取或输入的观察值,也可以表示某个时间间隔内的平均值或统计值。

Public Constructor Summary

Constructor Name

function SamplePoint(Array values, String startTime, String endTime, String metadata)

构造SamplePoint。

Public Method Summary

Qualifier and Type

Method Name and Description

String

getEndTime()

获取数据采样点的结束时间。

String

getMetadata()

获取数据采样点的元数据值。

String

getStartTime()

获取数据采样点的开始时间。

Array

getValues()

获取数据采样点的字段值。

-

setEndTime(String endTime)

设置数据采样点的结束时间。

-

setMetadata(String metadata)

设置数据采样点的元数据值。

-

setStartTime(String startTime)

设置数据采样点的开始时间。

-

setValues(Array values)

设置数据采样点的字段值。

Public Constructors

[h2]SamplePoint(Array values, String startTime, String endTime, String metadata)

Constructor

function SamplePoint(Array values, String startTime, String endTime, String metadata)

构造SamplePoint。

Parameters

Name

Description

values

数据采样点的字段值。

startTime

数据采样点的开始时间。

endTime

数据采样点的结束时间。

metadata

数据采样点的元数据值。

Public Methods

[h2]getValues()

Method

SamplePoint.prototype.getValues = function () {}

获取数据采样点的字段值。

Returns

Type

Description

Array

数据采样点的字段值。

[h2]getStartTime()

Method

SamplePoint.prototype.getStartTime = function () {}

获取数据采样点的开始时间。

Returns

Type

Description

String

数据采样点的开始时间。

[h2]getEndTime()

Method

SamplePoint.prototype.getEndTime = function () {}

获取数据采样点的结束时间。

Returns

Type

Description

String

数据采样点的结束时间。

[h2]getMetadata()

Method

SamplePoint.prototype.getMetadata = function () {}

获取数据采样点的元数据值。

Returns

Type

Description

String

数据采样点的元数据值。

[h2]setValues(Array values)

Method

SamplePoint.prototype.setValues = function (Array values) {}

设置数据采样点的字段值。

Parameters

Name

Description

values

数据采样点的字段值。

[h2]setStartTime(String startTime)

Method

SamplePoint.prototype.setStartTime = function (String startTime) {}

设置数据采样点的开始时间。

Parameters

Name

Description

startTime

数据采样点的开始时间。

[h2]setEndTime(String endTime)

Method

SamplePoint.prototype.setEndTime = function (String endTime) {}

设置数据采样点的结束时间。

Parameters

Name

Description

endTime

数据采样点的结束时间。

[h2]setMetadata(String metadata)

Method

SamplePoint.prototype.setMetadata = function (String metadata) {}

设置数据采样点的元数据值。

Parameters

Name

Description

metadata

数据采样点的元数据值。