UtilityTraceFunctionBarrier constructor

UtilityTraceFunctionBarrier({
  1. required UtilityTraceFunction traceFunction,
  2. required UtilityAttributeComparisonOperator comparisonOperator,
  3. required dynamic value,
})

Creates a barrier that stops tracing when an UtilityTraceFunction compared to a value evaluates to true.

The type of the numeric value is dependent on the UtilityNetworkAttributeDataType of the UtilityNetworkAttribute.

Parameters:

  • traceFunction — The calculation to perform.
  • comparisonOperator — The operator used for the comparison.
  • value — The value to compare against.