energia.dimensions.space#
Space
Functions
|
Add dunder methods based on the fields defined in the class. |
Classes
|
Linkage between two Locations. |
|
A discretization of Space. |
|
Spatial representation of the system. |
- class Space(model: Model)[source]#
Bases:
_DimensionSpatial representation of the system.
All spatial components are attached to this object.
- Parameters:
model (Model) – Model to which the representation belongs.
- Variables:
name (str) – Name of the dimension, auto generated
locations (list[Loc]) – List of locations in the space.
sources (list[Loc]) – List of source locations.
sinks (list[Loc]) – List of sink locations.
linkages (list[Link]) – List of linkages in the space.
label (str) – Label for the space.
default (Loc) – Default location for the space. Defaults to None.
network (Loc) – The encompassing region (network) of the space.
s (list[Loc | Link]) – List of spatial components (locations and linkages).
tree (dict) – Nested dictionary of locations.
hierarchy (dict[int, list[Loc]]) – position on tree.
Note
name is self generated
locations, sources, sinks, and linkages are populated as model is defined
label is fixed
default is set to None initially and is updated when needed (see network property)
- property tree: dict#
creates a nested dictionary of locations