org.objectweb.perseus.dependency.api
Interface DependencyGraph

All Known Implementing Classes:
BasicDependencyGraph

public interface DependencyGraph

Manage a dependency graph between object.

Author:
S.Chassande-Barrioz

Method Summary
 boolean addVertex(java.lang.Object src, java.lang.Object dst)
          Add a vertex between to task.
 void removeVertex(java.lang.Object src, java.lang.Object dst)
          Removes the vertex/dependency between two tasks.
 

Method Detail

addVertex

public boolean addVertex(java.lang.Object src,
                         java.lang.Object dst)
Add a vertex between to task. If the added vertex creates a cycle, it is not added, and the 'false' value is returned.

Parameters:
src - is the source of the vertex
dst - is the target of the vertex
Returns:
'true' is the vertex has been added. 'false' if the vertex would create a cycle if it has been added.

removeVertex

public void removeVertex(java.lang.Object src,
                         java.lang.Object dst)
Removes the vertex/dependency between two tasks.

Parameters:
src - is the source of the vertex
dst - is the target of the vertex


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.