blockVariableRangeAssert
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 <= u_max, "Value out of range (too high)", level = AssertionLevel.error);
assert(u >= u_min, "Value out of range (too low)", level = AssertionLevel.error);
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Structural Parameters | |||
| Boolean | causeError | true | = true, if level = AssertionLevel.error |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Connectors.RealInput | u | Real input | |
| Interfaces.Connectors.RealInput | u_max | Real input of maximum value | |
| Interfaces.Connectors.RealInput | u_min | Real input of minimum value |