Sage Modeling and Simulation Library

MultiResourceTracker Members

The MultiResourceTracker type exposes the following members.

Constructors


  Name Description
Public method MultiResourceTracker(IModel)
Tracks utilization of a particular resource.
Public method MultiResourceTracker(array<IResourceTracker>[]()[][])
Creates a new instance of the MultiResourceTracker class.

Methods


  Name Description
Public method AddTarget
Adds the specified resource to those being monitored by this tracker.
Public method AddTargets
Adds the specified resources to those being monitored by this tracker.
Public method BulkLoad(ICollection, Boolean, IComparer)
Loads a collection of resource event records, and then sorts them using the provided comparer.
Public method BulkLoad(ICollection, Boolean)
Loads a collection of resource event records, and then sorts them by serial number in ascending order.
Public method BulkLoad(ICollection)
Loads a collection of resource event records, and then sorts them by serial number in ascending order.
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 Obsolete.
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 sum of the InitialAvailable(s) of all resources that are being tracked