org.objectweb.perseus.dependency.lib
Class BasicDependencyGraph
java.lang.Object
org.objectweb.perseus.dependency.lib.BasicDependencyGraph
- All Implemented Interfaces:
- DependencyGraph
- public final class BasicDependencyGraph
- extends java.lang.Object
- implements DependencyGraph
- Author:
- S.Chassande-Barrioz
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 |
successors
public java.util.Map successors
logger
protected Logger logger
BasicDependencyGraph
public BasicDependencyGraph()
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 vertexdst
- 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 vertexdst
- is the target of the vertex
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.