org.objectweb.perseus.dependency.lib
Class BasicDependencyGraph
java.lang.Object
org.objectweb.perseus.dependency.lib.BasicDependencyGraph
- BindingController, DependencyGraph
public final class BasicDependencyGraph
extends java.lang.Object
- S.Chassande-Barrioz
boolean | addVertex(Object src, Object dst) - Adds a vertex in the graph, or returns false is this would create a
cycle.
|
boolean | addVertex(Object src, Object dst, Set s)
|
int | addVertexes(Object src, List dsts) - Add a vertex between a task and a list of other.
|
void | bindFc(String s, Object o)
|
Map | getVertexes()
|
String[] | listFc()
|
Object | lookupFc(String s)
|
void | removeVertex(Object src, Object dst) - Removes a vertex in the graph.
|
void | removeVertexes(List srcs, Object dst) - Removes the vertexes/dependencies between a list of tasks and another.
|
void | removeVertexes(Object src, List dsts) - Removes the vertexes/dependencies between a task and a list of others.
|
void | unbindFc(String s)
|
logger
protected Logger logger
successors
public Map successors
BasicDependencyGraph
public BasicDependencyGraph()
addVertex
public boolean addVertex(Object src,
Object dst)
Adds a vertex in the graph, or returns false is this would create a
cycle.
- addVertex in interface DependencyGraph
addVertex
public boolean addVertex(Object src,
Object dst,
Set s)
addVertexes
public int addVertexes(Object src,
List dsts)
Add a vertex between a task and a list of other. If the added vertex
creates a cycle, it is not added, and the index (in the list) of the
target task is returned, otherwise it return -1.
- addVertexes in interface DependencyGraph
src
- is the source of the vertex
- the index (in the list) of the target task is returned,
otherwise it return -1.
bindFc
public void bindFc(String s,
Object o)
listFc
public String[] listFc()
lookupFc
public Object lookupFc(String s)
removeVertexes
public void removeVertexes(List srcs,
Object dst)
Removes the vertexes/dependencies between a list of tasks and another.
- removeVertexes in interface DependencyGraph
srcs
- is the list of sources of the vertexesdst
- is the target of the vertexes
removeVertexes
public void removeVertexes(Object src,
List dsts)
Removes the vertexes/dependencies between a task and a list of others.
- removeVertexes in interface DependencyGraph
unbindFc
public void unbindFc(String s)
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.