Sage Modeling and Simulation Library

IResource Members

The IResource type exposes the following members.

Methods


  Name Description
Public method Acquire
Acquires the specified request. Removes it from availability and from the resource pool.
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.)
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
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 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.

Properties


  Name Description
Public property IsAtomic
Gets a value indicating whether this instance is atomic. And atomic resource is allocated all-or-none, such as a vehicle.
Public property IsDiscrete
Gets a value indicating whether this instance is discrete. A discrete resource is allocated in integral amounts, such as cartons or drums.
Public property IsPersistent
Gets a value indicating whether this instance is persistent. A persistent resource is returned to the pool after it is used.
Public property Manager
Gets or sets the manager of the resource.

Events


  Name Description
Public event AcquiredEvent
Occurs when this resource has been acquired.
Public event ReleasedEvent
Occurs when this resource has been released.
Public event RequestEvent
Occurs when this resource has been requested.
Public event ReservedEvent
Occurs when this resource has been reserved.
Public event UnreservedEvent
Occurs when this resource has been unreserved.