Sage Modeling and Simulation Library

SimpleAccessManager Members

The SimpleAccessManager type exposes the following members.


  Name Description
Public method SimpleAccessManager()()()()
Creates an access manager that removes resource-specific stacks of regulators once they are empty.
Public method SimpleAccessManager(Boolean)
See the default ctor - this ctor allows the developer to decide if they want to remove any stack that is assigned to a specific resource once it is empty. One might set this arg to false if there will be many adds & removes of regulators, and it is expected that the stack will empty and refill often.


  Name Description
Public method CanAcquire
Returns true if the given subject can be acquired using the presented key.
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 PopAccessRegulator
Pops the top access regulator from the stack associated with the specified resource, or from the default stack if subject is set as null.
Public method PushAccessRegulator
Pushes an access regulator onto the stack that is associated with a particular resource, or the default stack, if no resource is specified.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)