Sage Modeling and Simulation Library

ModelObjectDictionary Members

The ModelObjectDictionary type exposes the following members.

Constructors


  Name Description
Public method ModelObjectDictionary()()()()
ModelObjectDictionary is a dictionary that keeps references to all ModelObjects and can retrieve those references based on the ModelObjects' Guids. It fires an event when asked to retrieve an object that it does not have already stored.
Public method ModelObjectDictionary(Boolean)
ModelObjectDictionary is a dictionary that keeps references to all ModelObjects and can retrieve those references based on the ModelObjects' Guids. It fires an event when asked to retrieve an object that it does not have already stored.

Methods


  Name Description
Public method Add(Guid, IModelObject)
Adds an element with the provided key and value to the ModelObjectDictionary object.
Public method Add(Object, Object)
Adds an element with the provided key and value to the ModelObjectDictionary object.
Public method Clear
Removes all elements from the ModelObjectDictionary object.
Public method Contains(Guid)
Determines whether the ModelObjectDictionary object contains an element with the specified key.
Public method Contains(Object)
Determines whether the ModelObjectDictionary object contains an element with the specified key.
Public method CopyTo
Copies the elements of the ModelObjectDictionary to an Array, starting at a particular Array index.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method FindAll
Retrieves all model objects that satisfy the predicate.
Public method FindByType<(Of <<'(T>)>>)
Retrieves a depth-first iterator over all nodes in this PFC that satisfy the predicate.
Public method GetEnumerator
Returns an ModelObjectDictionaryEnumerator object for the ModelObjectDictionary object.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Remove(Guid)
Removes the element with the specified key from the ModelObjectDictionary object.
Public method Remove(Object)
Removes the element with the specified key from the ModelObjectDictionary object.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property Count
Gets the number of elements contained in the ModelObjectDictionary.
Public property IsFixedSize
Gets a value indicating whether the ModelObjectDictionary object has a fixed size.
Public property IsReadOnly
Gets a value indicating whether the ModelObjectDictionary object is read-only.
Public property IsSynchronized
Gets a value indicating whether access to the ModelObjectDictionary is synchronized (thread safe).
Public property Item[([( Guid])])
Retrieves the ModelObject whose key is the specified Guid. Guid.Empty is considered an explicit request for a null return, and adding an object with Guid.Empty as the key is considered illegal. All other Guids, if not contained in the dictionary, will result in the firing of the UnknownModelObjectRequested event.
Public property Item[([( Object])])
Retrieves the ModelObject whose key is the specified Guid. Guid.Empty is considered an explicit request for a null return, and adding an object with Guid.Empty as the key is considered illegal. All other Guids, if not contained in the dictionary, will result in the firing of the UnknownModelObjectRequested event.
Public property Keys
Gets an ModelObjectDictionary object containing the keys of the ModelObjectDictionary object.
Public property SyncRoot
Gets an object that can be used to synchronize access to the ModelObjectDictionary.
Public property Values
Gets an ModelObjectDictionary object containing the values in the ModelObjectDictionary object.

Events


  Name Description
Public event ExistingModelObjectRemoved
Fired when a model object is removed from this ModelObjectDictionary
Public event NewModelObjectAdded
Fired when a model object is added to this ModelObjectDictionary
Public event UnknownModelObjectRequested
This event is fired any time someone asks for a model object, and the ModelObjectDictionary does not have a record of such an object.