Posting complications
Problems with Multiple Parents
When a Folder is posted, the Pages in the folder are posted to the new Folder. A Page in the original Folder may also be under another Folder. The new Page will now only be under the new Folder.
However, when we copy a Drawer and there is a Page in that Drawer which belongs to two Folders in that Drawer, then the new Page should belong to the two new Folders in the new Drawer.
Name Complications
A name can not span Cabinets. When posting to another Cabinet, the name may break.
Alternately, when the named item is part of the item being posted, then the name should be changed to point to the new item.
Addressing these issues
Making copies of graphs which are not purely heirarchical (the multiple parent problem) is easy enough. You just keep a table of all the items which were copied together with the copy of the item. The name problem is a bit harder, as you may or may not be copying the item pointed to by the name.
There are two possible fixes to the name problem. Either you first scan the entire structure and build the table mapping original items to new items, or you fix them when you learn that you are making a copy of the named item.
0 Comments:
Post a Comment
<< Home