General OO Question
From: Wallace Highsmith (wallyh010_at_adelphia.net)
Date: 10/30/04
- Next message: Wallace Highsmith: "Copying objects within cyclic relationship"
- Previous message: Dagfinn Reiersol: "Re: Strategy pattern and "related classes""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Oct 2004 16:43:46 -0400
What is a pattern for copying several objects in a cyclic relationship?
DrawObject has a list of connections
each connection has a line and its drawobject
each line has a connection on each end.
(drawobject) 1----* (connection) 2-----1 (line)
line has connection1 and connection2
Copying a drawobject, copies each connection
Copying each connection, copies a line
Copying the line, copies connection1 and connection2
Copying connection1 and connection2, copies drawObject
so i'm back where i started.
What is the best way to get out of this cyclic copy?
- Next message: Wallace Highsmith: "Copying objects within cyclic relationship"
- Previous message: Dagfinn Reiersol: "Re: Strategy pattern and "related classes""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|