StockInfo

Collect basic stock-related information for basic stocks

Information

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

The StockInfo is used inside stock components and will be connected to the matching outside connectors of a component to collect basic →stock-related information which will be passed as a record to the StockInfoOutput connector.

Notes

  • The rates of inflow and outflow are determined by looking at the net flows at each StockPort—for this to be meaningful known inflows and outflows should be connected to the designated inflow and outflow ports of a stock. If a bi-flow is connected to a stock's port, then no other flow component should be connected to that port.

  • The net flow will be positive for a net inflow and negative for a net outflow.

  • The mean residence time will either be a specific value reported for a dynamic stock (e.g., the time of delay) or it will be determined by dividing the current amount in stock by the rate of outflow from the stock (see above note though). In case of no outflow a value of -1 will be reported.

See also

AbsoluteSensorDynamicStockInfo

Connectors (4)

inPort

Type: StockPort

Description: Connect to inflow of stock

outPort

Type: StockPort

Description: Connect to outflow of stock

y_stockInfo

Type: StockInfoOutput

Description: StockInformation output

levelInfo

Type: RealInput

Description: Connect to level output of stock

Used in Components (1)

BasicStock

BusinessSimulation.Interfaces.PartialStocks

Unrestricted reservoir to store information