hpcflow.sdk.persistence.json.JsonStoreElement#
- class hpcflow.sdk.persistence.json.JsonStoreElement(id_, is_pending, index, es_idx, seq_idx, src_idx, task_ID, iteration_IDs)#
Bases:
StoreElement
[ElemMeta
,None
]Persisted element that is serialized using JSON.
Methods
Return a copy, with additional iteration IDs.
Initialise a JsonStoreElement from store element data
Prepare store element data for the persistent store.
Prepare data for the user-facing Element object.
Attributes
The ID of the element.
Whether the element has changes not yet persisted.
Index of the element within its parent task.
Index of the element set containing this element.
Value sequence index map.
Data source index map.
ID of the task that contains this element.
IDs of element-iterations that belong to this element.
- Parameters:
- append_iteration_IDs(pend_IDs)#
Return a copy, with additional iteration IDs.
- Parameters:
pend_IDs (Iterable[int]) –
- Return type:
Self
- classmethod decode(elem_dat, context)#
Initialise a JsonStoreElement from store element data
- Parameters:
elem_dat (ElemMeta) –
context (None) –
- Return type:
Self
- encode(context)#
Prepare store element data for the persistent store.
- Parameters:
context (None) –
- Return type: