UtilityTraceFunction class final

Functions allow the computation of values during a network trace.

Functions are evaluated at each applicable network element. The meaning of applicable varies depending on the Tracer. For an upstream trace, the functions are evaluated for each upstream element. For a downstream trace, the functions are evaluated for each element in the subnetwork. etc.

Implemented types

Constructors

UtilityTraceFunction(UtilityTraceFunctionType functionType, {required UtilityNetworkAttribute networkAttribute, UtilityTraceCondition? condition})
Creates a function object to compute a value from a network attribute.
factory

Properties

condition UtilityTraceCondition?
An UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition.
getter/setter pair
functionType UtilityTraceFunctionType
The calculation to perform.
no setter
hashCode int
The hash code for this object.
no setterinherited
networkAttribute UtilityNetworkAttribute
The UtilityNetworkAttribute to use with the calculation.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited