Sage Modeling and Simulation Library

Dispensary Class

A Dispensary holds a Mixture that supports infusion of materials (i.e. mixtures or substances) and getters that specify the quantity they want. If there is not enough, then the getter is suspended, and resumed when there is enough material there to satisfy the getter's request. The purpose is to allow suppliers to dump various quantities at varying times, of materials into it, and to support consumers that say, "Give me 100 kg of substance X." If there are 100 kg of X already, then it is dispensed to the consumer. If there are not, then the consumer is blocked, and then (potentially) unblocked later when there *are* 100 kg. If there are never 100 kg, though, the consumer will never unblock.

Namespace:  Highpoint.Sage.Materials
Assembly:  Sage4 (in Sage4.dll)

Syntax


public class Dispensary

Inheritance Hierarchy


Object
  Highpoint.Sage.Materials..::..Dispensary