blockRangeAssert

Do assert() checks to monitor an admissable range of values

Extends from Icons.Converter (Icon for converter elements).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The component will set up the following assert functions:

assert(u <= maxValue, "Value out of range (too high)", level = AssertionLevel.error);
assert(u >= minValue, "Value out of range (too low)", level = AssertionLevel.error);

See also

VariableRangeAssert

Parameters

TypeNameDefaultDescription
RealmaxValueinfUpper value for admissable range
RealminValue-infLower value for admissable range
Structural Parameters
BooleancauseErrortrue= true, if level = AssertionLevel.error

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.RealInputuReal input