Description

The SmartNumericTotalizer is a NumericPoint with an extension, the SmartNumericTotalizerExt, which sums the totals of the NumericTotalizerExt extensions and provide the synthesis of their states. The components taken into account by the SmartNumericTotalizer are:

  • NumericPoints with NumericTotalizerExt extension
  • Other SmartOperators with a SmartNumericTotalizerExt extension

The extension sums the "Total" property of the points and then returns the result to the NumericPoint in which it is located. The SmartNumericTotalizerExt is a variation of the SmartStatusExt, which means that it performs the same job on the states as the SmartStatusExt. (warning) The state taken into account is that of the Total slot of the NumericTotalizerExt extension and not that of the parent point, (it is therefore necessary to set the propagateFlags slot of the extension accordingly if you want to create a synthesis of the states).

In the case of a SmartNumericTotalizerExt, the out slot of the NumericPoint will therefore contain the sum of the totals and the state resulting from the synthesis of all the states from the "Total" properties of the extensions.


Implementation

Refer to the SmartOperator section for general description.

  • To use the SmartNumericTotalizer component: Copy paste a SmartNumericTotalizer from the btibTooIkit palette to anywhere in the station.

To use the extension in an existing point, copy and paste the SmartNumericTotalizerExt extension in the SmartNumericTotalizer into a NumericPoint.

  • Select points from the Query request ( (warning) Only points with NumericTotalizerExt extensions will be taken into account).
  • Set the Enabled property to true.


Properties

The properties of the extension are the same as those of the SmartStatusExt.

The properties of the parent point are the same as those of the SmartStatusExt parent. In contrast, two slots differ in type and content:

  • Out: This is a StatusNumeric containing the sum of the totals of the extensions from the incoming points without taking into account the invalid points:
    • The state of the point is invalid according to the InvalidStatus property
    • Value: It is a double that contains the out value


Actions

The actions of SmartNumericTotalizerExt are the same as those of SmartTimeStatusExt.