fr.inria.opengve.bridge.algorithms.common
Class CopyPath<V,E extends Link<V>>

java.lang.Object
  extended by fr.inria.opengve.bridge.algorithms.common.CopyPath<V,E>

public abstract class CopyPath<V,E extends Link<V>>
extends java.lang.Object

This class is the bridge implememtation of path copy. By copy we means that we copy only edgeSet and vertexSet. The vertices and edges are not copied. So vertices and edges are shared between the original and is copy.

Author:
fabrice.peix@sophia.inria.fr

Constructor Summary
CopyPath()
           
 
Method Summary
 Path<V,E> copyPath(Path<V,E> p)
          Copy the path p.
abstract  Path<V,E> createPath()
          Create an empty path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyPath

public CopyPath()
Method Detail

createPath

public abstract Path<V,E> createPath()
Create an empty path.


copyPath

public Path<V,E> copyPath(Path<V,E> p)
Copy the path p.

Parameters:
p - the path to be copied.
Returns:
a new path.


Copyright © 2009 INRIA (Projet Mascotte). All Rights Reserved.