org.objectweb.perseus.dependency.lib
Class BasicDependencyGraph

java.lang.Object
  extended byorg.objectweb.perseus.dependency.lib.BasicDependencyGraph
All Implemented Interfaces:
DependencyGraph

public final class BasicDependencyGraph
extends java.lang.Object
implements DependencyGraph

Author:
S.Chassande-Barrioz

Field Summary
protected  Logger logger
           
 java.util.Map successors
           
 
Constructor Summary
BasicDependencyGraph()
           
 
Method Summary
 boolean addVertex(java.lang.Object src, java.lang.Object dst)
          Adds a vertex in the graph, or returns false is this would create a cycle.
 void bindFc(java.lang.String s, java.lang.Object o)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String s)
           
 void removeVertex(java.lang.Object src, java.lang.Object dst)
          Removes a vertex in the graph.
 void unbindFc(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

successors

public java.util.Map successors

logger

protected Logger logger
Constructor Detail

BasicDependencyGraph

public BasicDependencyGraph()
Method Detail

listFc

public java.lang.String[] listFc()

lookupFc

public java.lang.Object lookupFc(java.lang.String s)

bindFc

public void bindFc(java.lang.String s,
                   java.lang.Object o)

unbindFc

public void unbindFc(java.lang.String s)

addVertex

public boolean addVertex(java.lang.Object src,
                         java.lang.Object dst)
Adds a vertex in the graph, or returns false is this would create a cycle.

Specified by:
addVertex in interface DependencyGraph
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 a vertex in the graph.

Specified by:
removeVertex in interface DependencyGraph
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.