Sage Modeling and Simulation Library

ModelObjectDictionary Class

A ModelObjectDictionary is a passive directory of objects owned by this model. It not intended to be the primary holder of references, but rather to be a navigation aid among objects that already "belong" to the model, and that are removed once the model no longer wants/needs them. As long as someone, somewhere (presumably a hierarchy owned somehow & somewhere in the model) has a reference to all useful IModelObjects, they will be available in this dictionary. However, in order to clean out this dictionary automatically as objects are no longer in use in the model, it uses a WeakReference to track the object. Thus, as soon as no one else has a reference to the object, it will be cleaned out of this dictionary as soon as the next Garbage Collection sweep.

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


public class ModelObjectDictionary : IDictionary

Inheritance Hierarchy