energia.modeling.indices.domain#
Domain
Functions
|
Add dunder methods based on the fields defined in the class. |
|
Return an object to identify dataclass fields. |
|
Same as a is b. |
|
Same as a is not b. |
Classes
|
Point represented by a tuple of indices |
|
- class Domain(indicator: Indicator | None = None, commodity: Commodity | None = None, process: Process | None = None, storage: Storage | None = None, transport: Transport | None = None, player: Player | None = None, couple: Interact | None = None, location: Location | None = None, linkage: Linkage | None = None, periods: Periods | None = None, lag: Lag | None = None, modes: Modes | None = None, samples: list[Sample] = <factory>)[source]#
Bases:
_HashPoint represented by a tuple of indices
- Parameters:
indicator (Indicator | None) – Indicates the impact of some activity through an equivalency, e.g. GWP, ODP.
commodity (Commodity | None) – Represents the flow of any stream, measured using some basis, e.g. water, Rupee, carbon-dioxide.
process (Process | None) – Process that is being considered, e.g. dam, farming.
storage (Storage | None) – Storage that is being considered, e.g. reservoir.
transport (Transport | None) – Transport that is being considered, e.g. pipeline, road.
player (Player | None) – Actor that takes decisions, e.g. me, you.
couple (Couple | None) – Other actor that might be paired with the player.
location (Location | None) – Spatial aspect of the domain, e.g. Goa, Texas.
linkage (Linkage | None) – Linkage aspect of the domain, e.g. pipeline, road.
periods (Periods | None) – Temporal aspect of the domain, e.g. year, month.
lag (Lag | None) – Indicates whether the temporal element is lagged or not.
modes (Modes | None) – Modes applicable to the domain.
samples (list[Bind] | None) – List of samples that can be summed over.
- Variables:
model (Model) – Model to which the Domain belongs.
- property primary: Indicator | Commodity | Process | Storage | Transport | list[Sample]#
Primary component
- property linked: bool#
Linked
- property lagged: bool#
Lagged
- property isroot: bool#
This implies that the domain is of the form <object, space, time>
- property isrootroot: bool#
This implies that the domain is of the form <object, network, horizon> Thus, an element attached to this domain has the lowest possible dimensionality
- property disposition: tuple[str, ...]#
Disposition
- property name#
Name
- property idxname#
Name of the index
- property index_primary: list[Indicator | Commodity | Process | Storage | Transport]#
Primary index
- Returns:
list of primary indices
- Return type:
list[X]
- property index_spatiotemporal: list[Aspect | _X]#
List of indices with modes
- Returns:
list of indices with modes
- Return type:
list[X]
- property index_binds: list[Aspect | _X]#
List of bind indices
- Returns:
list of bind indices
- Return type:
list[X]
- property index_short: list[Indicator | Commodity | Process | Storage | Transport | Sample | Modes]#
Set of indices
- property tree: dict#
Convert index into tree
- property args: dict[str, Indicator | Commodity | Player | Process | Storage | Transport | Location | Linkage | Periods | Lag | Modes | list[Sample] | None]#
Dictionary of indices
- property dictionary: dict[str, Indicator | Commodity | Process | Storage | Transport | Player | Location | Linkage | Periods | Lag | Modes | list[Sample] | None]#
Dictionary of Components
- property tup#
Tuple of objects
- property lst#
Tuple of objects
- property size: int#
Size of the domain