- 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
Timezone defined by rec tz tag
Update his sync with given error
History address tag value if configured on the point
Is current address enabled on this point
Write new history items and update status
Display name
Current version of the record
Write address tag value if configured on the point
Is history address supported on this point
Record id
Does the record have the disabled marker configured
Put point into down/fault/remoteErr with given error
Parent connector library
Debug string
Update write status down/fault with given error
Conn tuning configuration to use for this point
Is write address enabled on this point
Point kind defined by rec kind tag
Is this point currently in one or more watches
Unit defined by rec unit tag or null
Update write value and status
Update current value and status
Is the record missing disabled marker configured
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