com.tensegrity.graph.model
Interface EdgeInfo
- public interface EdgeInfo
Tag interface that indicates that an implementation class
holds additional information.
- Version:
- $Id: EdgeInfo.java,v 1.5 2003/04/08 11:18:30 sr Exp $
- Author:
- S. Rutz
- See Also:
Edge,
Graph
|
Method Summary |
EdgeInfo |
deepCopy(Edge destination)
Must provide a method that makes a deep copy of the
EdgeInfo for
deep-copies of Graphs. |
deepCopy
public EdgeInfo deepCopy(Edge destination)
- Must provide a method that makes a deep copy of the
EdgeInfo for
deep-copies of Graphs.
- Parameters:
destination - the object where the copied info is stored.
This object is the object that invokes deepCopy(com.tensegrity.graph.model.Edge) on the
EdgeInfo recursively in its own
deepCopy(com.tensegrity.graph.model.Edge) method.
The destination object is deep copied first before the
deepCopy(com.tensegrity.graph.model.Edge) method on the info object is invoked.
- Returns:
- a deep copy of this
EdgeInfo.
Returning "this" is making
a shallow copy. You can do so on purpose. It is even the preferred way
if the EdgeInfo has all of its fields declared final.
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.