Login | Register
My pages Projects Community openCollabNet

Wiki: Diff for "<<Subsystem>> Persistence"

Edit this page | Links to this page | Page information | Attachments | Refresh page


Differences between revisions 5 and 6

Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:

=== Code Example ===

See the ["Code example for model/persistence subsystem usage"].
To package and unpackage the persistence data from different subsystems to and from some storage medium, i.e. to save and load user data files.



<<Layer>> View and Control subsystems

During save, the persistence subsystem requests each subsystem for its persistence data and adds that data to the output it is collating.

During load, the persistence subsystem unwraps the persistence data and passes them to the relevant subsystems for those subsystems to build themselves.

Edges and nodes are now saved and loaded in z order. Previously, edges were connected as they were loaded causing a problem if the node had not already been read. We now load all nodes and edges (unconnected) and then connect the edges post-load.

Design of the subsystem

Used subsystems

As illustrated in the figure below, the persistence subsystem depends on the kernel subsystem, and not vice versa.



<<Subsystem>> Persistence (last edited 2009-02-23 21:37:50 -0800 by thn)