com.tensegrity.graph.model
Interface NodeInfo


public interface NodeInfo

Tag interface that indicates that an implementation class holds additional information.

Version:
$Id: NodeInfo.java,v 1.6 2003/04/08 11:18:30 sr Exp $
Author:
S. Rutz

Method Summary
 NodeInfo deepCopy(Node destination)
          Must provide a method that makes a deep copy of the NodeInfo for deep-copies of graphs.
 

Method Detail

deepCopy

public NodeInfo deepCopy(Node destination)
Must provide a method that makes a deep copy of the NodeInfo 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.Node) on the edgeinfo recursively in its own deepCopy(com.tensegrity.graph.model.Node) method. The destination object is deep copied first before the deepCopy(com.tensegrity.graph.model.Node) method on the info object is invoked.
Returns:
a deep copy of this NodeInfo. returning "this" is making a shallow copy. You can do so on purpose. It is even the preferred way if the NodeInfo has all of its fields declared final.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.