Skip to content

lib-trend 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793620026/FIN+5.3.1+lib-trend 中文整理基于 FIN 5.3.1

导读: 本页为 lib-trend 的 API / 标签 / 函数参考文档。

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • lib
  • meta
  • tags
  • funcs
  • def
  • finFormTrendConnDiscoverSettings(settings: null)
  • trendDiscover()
  • trendLearn(conn, arg: null)
  • trendPing(conn)
  • trendSyncHis(points, dates)

概述(中译) ​

趋势连接器


API 正文(英文) ​

tags ​

tplTrendConnTplTrend connector
tplTrendConnRefUsed on a proxy point to reference its parent tplTrendConn
tplTrendCurTplTrend address to use for reading the current value
tplTrendHisTplTrend address to use for reading historical data
tplTrendPointPoint which synchronizes data via the TplTrend connector

funcs ​

finFormTrendConnDiscoverSettings
trendDiscover
trendLearnLearn - discover points on a device
trendPingPing
trendSyncHis


def ​

func:finFormTrendConnDiscoverSettings ​

finFormTrendConnDiscoverSettings(settings: null) ​


meta ​

admin✓
deffunc:finFormTrendConnDiscoverSettings
isfunc
liblib:trend
namefinFormTrendConnDiscoverSettings

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:trendDiscover ​

trendDiscover() ​


meta ​

deffunc:trendDiscover
isfunc
liblib:trend
nametrendDiscover

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:trendLearn ​

trendLearn(conn, arg: null) ​

Learn - discover points on a device


meta ​

deffunc:trendLearn
isfunc
liblib:trend
nametrendLearn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:trendPing ​

trendPing(conn) ​

Ping


meta ​

deffunc:trendPing
isfunc
liblib:trend
nametrendPing

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:trendSyncHis ​

trendSyncHis(points, dates) ​


meta ​

deffunc:trendSyncHis
isfunc
liblib:trend
nametrendSyncHis

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

tplTrendConn ​

TplTrend connector.


meta ​

deftplTrendConn
isconn
liblib:trend

usage ​

tplTrendConn  conn

supertypes ​

markerMarker labels a dict with typing information
entityTop-level dicts with a unique identifier
connConnector for communication to a remote system

tags ​

actorTimeoutTimeout for messages send to the connector's actor thread
connErrError message associated when connStatus indicates an error condition
connLingerLinger timeout used to keep a connector open
connOpenRetryFreqDuration used for connector open retries
connPingFreqDuration used to configure the auto-ping feature on a given connector
connStateCurrent connection state of a connector as one of the predefined strings
connStatusCurrent status of a connector as one of the predefined strings See Connectors
connTuningRefReference to a tuning configuration defined by a connTuning rec
disDisplay name for an entity
disabledIndicates the entity is in a disabled state
idDefines the unique identifier of an entity in system using a ref value type
passwordManages password which is hashed/stored to the password store
uriUniversal resource identifier
usernameUsername for an authentication account


def ​

tplTrendConnRef ​

Used on a proxy point to reference its parent tplTrendConn


meta ​

deftplTrendConnRef
isref
liblib:trend
oftplTrendConn
tagOntplTrendPoint

supertypes ​

valData value type
scalarScalar is an atomic value kind
refReference to an entity


def ​

tplTrendCur ​

TplTrend address to use for reading the current value.


meta ​

deftplTrendCur
isstr
liblib:trend
tagOntplTrendPoint

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

tplTrendHis ​

TplTrend address to use for reading historical data.


meta ​

deftplTrendHis
isstr
liblib:trend
tagOntplTrendPoint

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

tplTrendPoint ​

Point which synchronizes data via the TplTrend connector.


meta ​

deftplTrendPoint
isconnPoint
liblib:trend

usage ​

tplTrendPoint  point

supertypes ​

markerMarker labels a dict with typing information
entityTop-level dicts with a unique identifier
pointData point such as a sensor or actuator
connPointPoint associated with a connector for data synchronization with a remote system

tags ​

connTuningRefReference to a tuning configuration defined by a connTuning rec
curSupports current value
curCalibrationCalibration value to apply to adjust the value read from the connector before updating curVal
curConvertConversion to apply when reading curVal from connector
disDisplay name for an entity
disMacroDisplay name using macro syntax
disabledIndicates the entity is in a disabled state
enumDefines an eumeration of string key names
equipRefReference to equip which contains this entity
ghgFactorHisIdentifies point record with interval emission factor data that the Greenhouse Gas Emission Engine uses to calculate emissions
hisSupports historization of data
hisConvertConversion to apply when reading history data from connector
idDefines the unique identifier of an entity in system using a ref value type
kindKind name used to identity a value data type
maxValInclusive maximum for a numeric value
minValInclusive minimum for a numeric value
navNameNavigation name commonly used with disMacro to create computed display strings
pointFunctionClassifies the point as a sensor, command, or setpoint
pointQuantityQuantity the point senses or controls
pointSubjectWhat the point senses or controls
siteRefReference to site which contains the entity
spaceRefReference to space which contains this entity
systemRefReference to system
tplTrendConnRefUsed on a proxy point to reference its parent tplTrendConn
tplTrendCurTplTrend address to use for reading the current value
tplTrendHisTplTrend address to use for reading historical data
tzTimezone identifier from standard timezone database
unitUnit identifier from standard unit database
writableSupports writing data
writeConvertConversion to apply when writing writeVal to the connector