Description

The SmartCountTotalizer is a NumericPoint with an extension, the SmartCountTotalizerExt, which permits the ChangeOfStateCount of the DiscreteTotalizerExt extensions to be summed and provide the synthesis of their states. The components taken into account by the SmartCountTotalizer are:

  • BooleanPoints with DiscreteTotalizerExt extension
  • Other SmartOperators with a SmartCountTotalizerExt extension

The extension sums the ChangeOfStateCount of the points and then returns the result to the NumericPoint in which it is located. The SmartCountTotalizerExt is a variation of the SmartStatusExt, which means that it performs the same job on the states as the SmartStatusExt.  (warning) The ChangeOfStateCount slot has no associated state, there is no state taken into account except 'ok'.

In the case of a SmartCountTotalizerExt, the out slot of the NumericPoint will therefore contain the sum of the ChangeOfStateCount and an {ok} state since the ChangeOfStateCount property has no state.


Implementation

Refer to the SmartOperator section for general description.

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

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

  • Select points from the Query request ( (warning) Only points with DiscreteTotalizerExt 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. However, two slots differ in type and content:

  • Out: This is a StatusNumeric that contains the sum of the ChangeOfStateCount of the extensions from the input points
  • Value: It is a double that contains the out value


Actions

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