Sage Modeling and Simulation Library

ResourceManager..::..Reserve Method

Attempts to reserve a proscribed quantity of a particular resource in this resource pool. This removes the resource quantity from availability for further reservation & acquisition.

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

Syntax


public bool Reserve(
	IResourceRequest resourceRequest,
	bool blockAwaitingAcquisition
)

Parameters

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

Return Value

true if the reservation was successful.