Sage Modeling and Simulation Library

ResourceRequest Methods

The ResourceRequest type exposes the following members.


  Name Description
Public method Acquire
Acquires a resource from the specified resource manager, or the provided default manager, if none is provided in this call. If the request has already successfully reserved a resource, then the reservation is revoked and the acquisition is honored in one atomic operation.
Public method Choose
Chooses a resource from the specified candidates.
Public method CompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Protected method DefaultGrantConfirmationRequest_Refuse
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.)
Protected method GetDefaultReplicator
Gets the default replicator to be used in creating a copy of this resource request. Might look, for example, like this:
protected override ResourceRequestSource GetDefaultReplicator()
              return () => new VehicleRequest(m_seatsNeeded) { DefaultResourceManager = DefaultResourceManager };
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetScore
Gets the score that describes the suitability of the resource to fulfill this resource request.
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 Release
Releases the resource previously obtained by this ResourceRequest.
Public method Reserve
Reserves the specified resource manager.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Unreserve
Releases the resource previously obtained by this ResourceRequest.