Created by Dick Carter on 1/16/2015.
Created by Dick Carter on 1/16/2015.
Created by Dick Carter on 1/16/2015.
Defines the functionality needed of an object saver, independent of the specific technology (hdf5, java serialization, etc.)
Created by Dick Carter on 1/16/2015.
Created by Dick Carter on 1/16/2015.
For non-primitive objects that must be restored (i.e. not Ints, Floats, Strings, etc.), this trait defines the requirements of the factory object doing the restoring. Basically, the object must create an object instance using the capabilities of the provided ObjectRestorer.
Created by Dick Carter on 1/16/2015.
Created by Dick Carter on 1/16/2015.
For non-primitive objects that must be saved (i.e. not Ints, Floats, Strings, etc.), this trait defines the requirements of the object. Basically, the object must save itself using the capabilities of the provided ObjectSaver.
Unlike with Java-serialization, which stores all members by default (unless they are marked transient), we assume here that Saveables with make explicit calls to write their essential fields. This should be partnered with a RestoreFactory that can recreate the object from those essential fields.
A factory method for both 'ObjectSavers' and 'ObjectRestorers'
A factory method for both 'ObjectSavers' and 'ObjectRestorers'
Note that the ComputeGraph object reimplements this in order to mix in some global state needed for the somewhat tricky KernelCircuit save/restore.
Created by Dick Carter on 1/16/2015.
Defines the functionality needed of an object restorer, independent of the specific technology (hdf5, java serialization, etc.)