Skip to main content

Module asset

Module asset 

Source
Expand description

Assets are instances of a process which are owned and invested in by agents.

Modulesยง

capacity ๐Ÿ”’
Represents the capacity of an asset
pool ๐Ÿ”’
Defines a data structure for representing the current active pool of assets.

Structsยง

Asset
An asset controlled by an agent.
AssetCapacity
Capacity of an asset, expressed in terms of a number of discrete tranches of a given size.
AssetID
A unique identifier for an asset
AssetPool
The active pool of super::Assets
AssetRef
A wrapper containing a reference-counted Asset.
MothballEvent
Indicates the year and number of tranches mothballed
UserAsset
An asset defined by the user in the assets input file

Enumsยง

AssetCmp ๐Ÿ”’
A data structure representing the fields of an Asset that should be used for comparisons.
AssetState
The state of an asset

Traitsยง

AssetIterator
Additional methods for iterating over assets

Functionsยง

check_capacity_valid_for_asset
Whether the specified value is a valid capacity for an asset
check_region_year_valid_for_process
Whether the process operates in the specified region and year
hash_unit ๐Ÿ”’
Hash a unit value while treating positive and negative zero as equal.
log_decommissioning ๐Ÿ”’
Log that the specified number of tranches has been decommissioned for the given asset