|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.postprocessor.WarshallTransitiveClosureGenerator.GraphRepresentation
protected abstract class WarshallTransitiveClosureGenerator.GraphRepresentation
WarshallTransitiveClosureGenerator.GraphRepresentation
is an interface that should be implemented by all classes representing a
graph of duplicates.
Constructor Summary | |
---|---|
protected |
WarshallTransitiveClosureGenerator.GraphRepresentation()
|
Method Summary | |
---|---|
abstract void |
calculateTransitiveClosure()
Iterating over the matrix and searching for new connections between elements. |
abstract boolean |
elementIsSet(int i,
int j)
Checks whether there is an edge between the two elements in the graph (element is already set in the matrix). |
(package private) abstract int |
getSize()
Returns the number of elements in the matrix. |
void |
populateGraph(HashSet<WarshallTransitiveClosureGenerator.IntPair> liste)
Populates the graph. |
abstract void |
set(int i,
int j)
Sets elements (i, j) in the matrix to true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected WarshallTransitiveClosureGenerator.GraphRepresentation()
Method Detail |
---|
abstract int getSize()
public abstract void set(int i, int j)
i
- Coordinate i in the matrix.j
- Coordinate j in the matrix.public abstract boolean elementIsSet(int i, int j)
i
- The number of the first element.j
- The number of the second element.
true
, if there is an edge between the two elements; otherwise false
.public void populateGraph(HashSet<WarshallTransitiveClosureGenerator.IntPair> liste)
liste
- A list of integer pairs that represent the connections between the elements.public abstract void calculateTransitiveClosure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |