UtilityPropagator constructor

UtilityPropagator({
  1. required UtilityNetworkAttribute networkAttribute,
  2. required UtilityPropagatorFunctionType propagatorFunctionType,
  3. required UtilityAttributeComparisonOperator comparisonOperator,
  4. required dynamic value,
  5. UtilityNetworkAttribute? substitutionAttribute,
})

Creates an object that allows a subset of UtilityNetworkAttribute values to propagate through a network.

This constructor allows the specification of a substitution network attribute.

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

Parameters:

  • networkAttribute — The UtilityNetworkAttribute to propagate further along the trace.
  • propagatorFunctionType — The function type that is applied to the UtilityNetworkAttribute to propagate the attribute further along the trace.
  • comparisonOperator — The filter operator that is applied when executing the trace. This operator is used to compare the propagated value to the specified UtilityPropagator.value.
  • value — The value that is compared against the propagated value when executing the trace.
  • substitutionAttribute — An UtilityNetworkAttribute that maps each bit in another bitset network attribute value to a new value.