Dynamic Space#
- class DynamicSpace(_impl)[source]#
Read-only space created dynamically as a child of another dynamic space.
DynamicSpace objects are automatically created when accessing child spaces within a parameterized space hierarchy. They mirror the structure of their base UserSpace but exist within the context of specific parameter values.
Unlike
ItemSpacewhich represents the root of a parameterized space instance, DynamicSpace represents nested child spaces within that instance.- Creation:
DynamicSpaces are created automatically when:
An
ItemSpaceis created from a parameterized UserSpaceThe base UserSpace contains child spaces
These child spaces are accessed within the ItemSpace context
Key Characteristics:
Read-only: Cannot add, modify, or remove cells, spaces, or references
Dynamic: Created on-demand when parent ItemSpace is instantiated
Derived: Mirrors the structure and formulas of a base UserSpace
Contextual: Exists within a specific parameter context from parent ItemSpace
Example
>>> space = model.new_space() >>> space.parameters = ('x',) >>> child = space.new_space('Child') # UserSpace >>> item = space[1] # ItemSpace created >>> item.Child # DynamicSpace (not ItemSpace) <DynamicSpace Child in Model1.space[1]>
Basic properties#
Name of the object. |
|
Dotted name of the object. |
|
Documentation string |
|
Whether a cells can have None as its value. |
|
The model this object belongs to. |
|
The parent of this object. |
|
Read-only mapping of reference names to their values. |
|
Check whether this space has parameters defined. |
|
|
Set property |
An object whose |
Inheritance operations#
List of base spaces from which this space inherits. |
Child Space operations#
Child Cells operations#
ItemSpace operations#
Read-only mapping of parameter arguments to |
|
Tuple of parameter names for this space, or None if not parameterized. |
|
The formula that defines parameter behavior for this space. |
|
Clear all cell values and delete all ItemSpaces recursively. |
|
|
Delete a child |
|
Return a Node object for the given arguments. |
|
Return a list of predecessors of a cell. |
|
Return a list of successors of a cell. |
|
Return a list of the precedents. |