- Index
- »
- fan.hxConn
- »
- ConnPoint
ConnPoint
const class ConnPoint : Obj
ConnPoint models a point within a connector.
Parent connector
Current address tag value if configured on the point
Library specific point data
Display name
Parent connector library
History address tag value if configured on the point
Record id
Is current address enabled on this point
Does the record have the disabled marker configured
Is the record missing disabled marker configured
Is history address supported on this point
Is this point currently in one or more watches
Is write address enabled on this point
Point kind defined by rec kind tag
Current version of the record
Debug string
Conn tuning configuration to use for this point
Timezone defined by rec tz tag
Unit defined by rec unit tag or null
Put point into down/fault/remoteErr with given error
Update current value and status
Update his sync with given error
Write new history items and update status
Update write status down/fault with given error
Update write value and status
Write address tag value if configured on the point
virtual Conn conn()
Parent connector
Obj? curAddr()
Current address tag value if configured on the point
Obj? data()
Library specific point data. This value is managed by the connector actor via ConnDispatch.setPointData.
Str dis()
Display name
virtual ConnExt ext()
Parent connector library
Obj? hisAddr()
History address tag value if configured on the point
virtual Ref id()
Record id
Bool isCurEnabled()
Is current address enabled on this point. This returns true only when all the of following conditions are met:
- the connector supports current values
- this point has a cur address tag configured
- the address tag value is of the proper type
- the point is not disabled
Bool isDisabled()
Does the record have the disabled marker configured
Bool isEnabled()
Is the record missing disabled marker configured
Bool isHisEnabled()
Is history address supported on this point. This returns true only when all the of following conditions are met:
- the connector supports history synchronization
- this point has a his address tag configured
- the address tag value is of the proper type
- the point is not disabled
Bool isWatched()
Is this point currently in one or more watches
Bool isWriteEnabled()
Is write address enabled on this point. This returns true only when all the of following conditions are met:
- the connector supports writable points
- this point has a write address tag configured
- the address tag value is of the proper type
- the point is not disabled
Kind kind()
Point kind defined by rec kind tag
virtual Dict rec()
Current version of the record.
This dict only represents the current persistent tags.
It does not track transient changes such as curVal and curStatus.
virtual Str toStr()
Debug string
ConnTuning tuning()
Conn tuning configuration to use for this point
TimeZone tz()
Timezone defined by rec tz tag
Unit? unit()
Unit defined by rec unit tag or null
Void updateCurErr(Err err)
Put point into down/fault/remoteErr with given error.
Void updateCurOk(Obj? val)
Update current value and status
Obj? updateHisErr(Err err)
Update his sync with given error
Obj? updateHisOk(HisItem[] items, Span span)
Write new history items and update status. Span should be same value
passed to onSyncHis. The items will be normalized, clipped by span,
converted by hisConvert if configured, and then and written to historian.
Void updateWriteErr(ConnWriteInfo info, Err err)
Update write status down/fault with given error
Void updateWriteOk(ConnWriteInfo info)
Update write value and status
Obj? writeAddr()
Write address tag value if configured on the point