Scale Intelligence■ Docs
Docs / The model / ModelStock

ModelStock.

One stock of a systems model: the units of one kind in one place, read from a chain stock where the chain holds one

Figure 1ModelStockspecified
MODELSTOCKvalue at none scopenametextunittextthe chain stock whose count starts it, by namechain_stocktextoptionalhow its starting level is read when no chain stock holds itinitialDriverNodeoptionalwho reads it; a stock with no reader is a leakreadertexthow long a unit may wait on itwaitingdurationoptionalDRIVERNODEthrough initial
ModelStock is a value at none scope. The drawing shows its fields and the objects that they point at.
kind
value
scope
none
key
none
store
none
family
market

Fields#

fieldtyperequirednote
nametextyes
unittextyes
chain_stocktextnothe chain stock whose count starts it, by name
initialDriverNodenohow its starting level is read when no chain stock holds it
readertextyeswho reads it; a stock with no reader is a leak
waitingdurationnohow long a unit may wait on it

Routes that use it#

No route takes or returns ModelStock directly. The record holds it, and the objects that point at it reach it.