VariableRangeAssert

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

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

RangeAssert

Parameters (1)

causeError

Value: true

Type: Boolean

Description: = true, if level = AssertionLevel.error

Connectors (3)

u

Type: RealInput

Description: Real input

u_max

Type: RealInput

Description: Real input of maximum value

u_min

Type: RealInput

Description: Real input of minimum value

Used in Components (1)

CapacityRestrictedStock

BusinessSimulation.Stocks

Material stock, that cannot be drained or filled beyond its capacity limits