Description

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

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

The extension sums the ElapsedActiveTimeNumeric of the points and then returns the result to the NumericPoint in which it is located. The SmartTimeTotalizerExt 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 ElapsedActiveTimeNumeric slot of the DiscreteTotalizerExt 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 SmartTimeTotalizerExt, the out slot of the NumericPoint will contain the sum of the ElapsedActiveTimeNumeric and the resulting state from the synthesis of all the states of the ElapsedActiveTimeNumeric slots of the extensions.


Implementation

Refer to the SmartOperator section for general description.

  • To use the SmartTimeTotalizer component: copy and paste a SmartTimeTotalizer from the btibTooIkit palette to anywhere in the station.

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

  • Select points from the Query request ( (warning) Only points with DiscreteTotalizerExt extensions will be taken into account).
  • Change the Enable 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 their type and their content and a slot is added:

  • Out: This is a StatusNumeric that contains the sum of the valid ElapsedActiveTimeNumeric extensions of the incoming points. It is expressed in milliseconds. A value is considered invalid in one case:
    • The state of the point is invalid according to the InvalidStatus property
    • Value: It is a double that contains the out value
    • ElapsedActiveTime: This is the sum of the ElapsedActiveTimeNumeric extensions but in RelTime form.


Actions

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