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
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | maxValue | inf | Upper value for admissable range |
| Real | minValue | -inf | Lower value for admissable range |
| Structural Parameters | |||
| Boolean | causeError | true | = true, if level = AssertionLevel.error |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Connectors.RealInput | u | Real input |