Sage Modeling and Simulation Library

MaterialResourceItem Methods

The MaterialResourceItem type exposes the following members.

Methods


  Name Description
Public method Acquire(IResourceRequest)
Acquires the specified request. Removes it from availability and from the resource pool.
Public method Acquire(IResourceRequest, Boolean)
Acquires a resource according to the specified resource request, either blocking until successful, or returning <null> if the resource is not immediately available.
Public method ContainsGuid
Function to check if a guid is contained in this MRI. See 'g' below for possiblitites
Public method Static member ContentsXOR(MaterialResourceItem)
Performs an XOR on mri's MT and Specs to give a unique key into the contents.
Public method Static member ContentsXOR(Guid, Guid)
Performs an XOR on mri's MT and Specs to give a unique key into the contents.
Public method Static member ContentsXOR(Guid, ICollection)
Performs an XOR on mri's MT and Specs to give a unique key into the contents.
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 GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeIdentity
Initialize the identity of this model object, once.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Release
Releases the specified request. Returns it to availability and the resource pool.
Public method Reserve(IResourceRequest)
Reserves the specified request. Removes it from availability, but not from the pool. This is typically an intermediate state held during resource negotiation.
Public method Reserve(IResourceRequest, Boolean)
Reserves a resource according to the specified resource request, either blocking until successful, or returning <null> if the resource is not immediately available.
Public method Reset
Resets this instance, returning it to its initial capacity and availability.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Unreserve
Unreserves the specified request. Returns it to availability.