Sage Modeling and Simulation Library

ResourceTracker Members

The ResourceTracker type exposes the following members.

Constructors


  Name Description
Public method ResourceTracker
Tracks utilization of a particular resource.

Methods


  Name Description
Public method Clear
Clears all ResourceEventRecords.
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 GetEnumerator
Returns an enumerator across all ResourceEventRecords.
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 ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property Enabled
Turns on tracking for this ResourceTracker. This defaults to 'true', and allEnabled must also be true, in order for a ResourceTracker to track.
Public property EventRecords
Returns all event records that have been collected
Public property Filter
The filter is given a look at each prospective Record, and allowed to decide whether it is to be logged or not. In conjunction with simply not adding a resource to the tracker, you can achieve fine-grained control of the contents of a resource activity log.
Public property Static member GlobalEnabled
If false, all Trackers will be disabled. If true, then the individual tracker's setting governs.
Public property InitialAvailable
The InitialAvailable(s) of all resources that are being tracked
Public property Resource
The resource that this tracker is tracking.