Sage Modeling and Simulation Library

Resource Constructor

Overload List


  Name Description
Public method Resource(IModel, String, Guid, Double, Double, Boolean, Boolean, Boolean)
Creates a new Resource. A resource is created with a capacity, and initial quantity available, and is granted in portions of that capacity, or if atomic, all-or-nothing. The IResourceRequest will specify a desired amount. If the IResourceRequest specifies a desired quantity less than the resource's capacity, and the resource is atomic, the IResourceRequest will be granted the full capacity of the resource. A self-managing resource is a resource that is responsible for granting access to itself.

This constructor allows the initial capacities and quantities available to be different from each other.

Public method Resource(IModel, String, Guid, Double, Double, Boolean, Boolean, Boolean, IResource)
Creates a new Resource, wrapped by an implementer of IResource. This constructor is used if the resource being created is serving as a delegated-to token which represents some other resource. A resource is created with a capacity, and is granted in portions of that capacity, or if atomic, all-or-nothing. The IResourceRequest will specify a desired amount. If the IResourceRequest specifies a desired quantity less than the resource's capacity, and the resource is atomic, the IResourceRequest will be granted the full capacity of the resource. A self-managing resource is a resource that is responsible for granting access to itself.
Public method Resource()()()()
Initializes a new empty instance of the Resource class - for deserialization only.