RangeAssert

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

Information

This information is part of the Business Simulation Library (BSL).

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 (3)

maxValue

Value: inf

Type: Real

Description: Upper value for admissable range

minValue

Value: -inf

Type: Real

Description: Lower value for admissable range

causeError

Value: true

Type: Boolean

Description: = true, if level = AssertionLevel.error

Connectors (1)

u

Type: RealInput

Description: Real input

Used in Components (1)

BasicStock

BusinessSimulation.Interfaces.PartialStocks

Unrestricted reservoir to store information