Sage Modeling and Simulation Library

ResourceManager..::..Acquire Method

Attempts to acquire a proscribed quantity of a resource in this resource pool. If the resource has already been reserved under this resourceRequest, it simply acquires that resource. If no resource has been reserved, then the best available resource will be reserved, and then acquired.

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

Syntax


public bool Acquire(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition
)

Parameters

resourceRequest
Type: Highpoint.Sage.Resources..::..IResourceRequest
The resource request under which the reservation is to take place, and describing the resources desired.
blockAwaitingAcquisition
Type: Boolean
If true, blocks until resource is acquired.

Return Value

true if the acquisition was successful.