gemseo.core.serializable module#
The baseclass for serializable GEMSEO objects.
- class Serializable[source]#
Bases:
object
Base class to handle serialization of GEMSEO objects.
The methods
__setstate__
and__getstate__
used by pickle to serialize and de-serialize objects are overloaded to handleSynchronized
attributes. It is also possible to define the attributes that shall be ignored at serialization.For the attributes that are ignored at serialization, it is necessary to handle the way they are retrieved and recreated by overloading
__setstate__
and/or__getstate__
from the subclasses.