modelCollector

A reservoir that aggregates multiple stock ports

Extends from Icons.SubsystemIncubator (General Icon for stocks), Interfaces.Basics.ThreeSO (Generic information output for stock and rate elements).

Information

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

The Collector aggregates multiple →StockPort connectors and essentially treats them as if they were connected to one joint reservoir (i.e., a collecting tank). The stock may be filled or drained via any of multiple stock ports (stockMultiPort) or the single stock port (stockPort).

Implementation

The joint reservoir is internally represented by a stock called collectingReservoir. It is declared with the prefix replaceable and may be redeclared as any of the following stock classes:

Notes

  • Each of the multiple stock ports will report the flow restrictions set by the internal collectingReservoir.

  • The flow restrictions for collectingReservoir will be set as specified by the chosen stock class (e.g., no draining below zero for a MaterialStock) and with regard to the netflow of all flows connected to the stock ports.

Parameters

TypeNameDefaultDescription
StringiconLabel (from SubsystemIncubator)""
OutputTypeinitialValue0Initial level of stock
OutputTypemaxValueinfMaximum admissable value (reservoir.maxValue)
OutputTypeminValue-infMinimum admissable value (reservoir.minValue)
Structural Parameters
Integernin2Number of stock ports to be joined in the collector
BooleanhasStockInfoOutputfalse= true, if a StockInfoOutput should be added to the stock (reservoir.hasStockInfoOutput)
Advanced
InitializationOptionsinitmodelSettings.initProvide InitializationOptions (Free, FixedValue, SteadyState) (reservoir.init)
BooleanuseAssertfalse= true, if leaving the admissable range is to cause an error or warning (reservoir.useAssert)
BooleancauseErrortrue= true, if leaving the admissable range is to cause an error instead of simply a warning (reservoir.causeError)

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.StockInfoOutputy_stockInfoOptional StockInfoOutput
Interfaces.Connectors.StockMultiPortstockMultiPort
Interfaces.Connectors.StockPortstockPort
Interfaces.Connectors.RealMultiOutputy_flowsOutput of netflows with regard to the multiple stock ports

Components

TypeNameDefaultDescription
RealOutputy (from ThreeSO)Level or rate information
RealOutputy1 (from ThreeSO)Level or rate information
RealOutputy2 (from ThreeSO)Level or rate information
Stocks.InformationLevelcollectingReservoir
ModelSettingsmodelSettings

Revisions

  • Introduced in v2.0.0.

  • Modifiers for y_flows given prefix each in v2.2.