cobra.core.object#
Define base Object class in Cobra.
Classes#
Defines common behavior of object in cobra.core. |
Module Contents#
- class cobra.core.object.Object(id: str | None = None, name: str = '')[source]#
Defines common behavior of object in cobra.core.
- _id = None#
- name = ''#
- notes#
- _annotation#
- _set_id_with_model(value) None[source]#
Set id with model.
This appears to be a stub so it can be modified in dependant classes.
- Parameters:
value (str) – The string to set the id to.
- property annotation: dict#
Get annotation dictionary.
- Returns:
_annotation – Returns _annotation as a dictionary.
- Return type:
- __getstate__() dict[source]#
Get state of annotation.
To prevent excessive replication during deepcopy, ignores _model in state.
- Returns:
state – Dictionary of state, excluding _model.
- Return type: