Resources ModelThis model assigns the resources that are available for use in the simulation. At least one instance of the model is required. One of the models is used for managing allocation of the resources.There are two methods available for defining the resources. One is by reading in a text file, listing the resources. The other is by instantiating multiple resource nodes, one for each resource. The first method is the simpler to use. Instantiate one instance of the Resource model. Create a text file with the names of the resources and set the model's attribute FileName = your_file_name. The format of the resources text file is to list each resource name on a separate line. When the number of units for a resource is other than 1.0, the name of the resource will be followed by 'white space' and the number of units available for the resource. The third entry on the line may optionally be a comment. The second method is to instantiate a Resource model for each resource. The FileName attribute will be left blank. A resource name will be defined by setting the attribute: Resource = resource_name. If the number of units for the resource is other than 1.0, the number is set by the attribute: Number = number_of_units.
|