public abstract class GraphComparator<V,E extends Edge<V>,G extends Graph<V,E>> extends org.colomoto.common.task.AbstractTask<GraphComparatorResult<V,E,G>>
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
G |
graph_1 |
G |
graph_2 |
G |
graph_new |
protected GraphComparatorResult<V,E,G> |
result |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
GraphComparator(G g1,
G g2,
G g_new) |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
copyEdge(G srcGraph,
E edge) |
protected abstract V |
copyNode(G srcGraph,
V node) |
protected abstract void |
doSpecialisedComparison() |
G |
getDiffGraph()
Return a merge graph colored to indicates vertices and edges parent graph.
|
G |
getG1()
Return the first graph to compare
|
G |
getG2()
Return the second graph to compare
|
void |
log(boolean b)
append the boolean b to the log
|
void |
log(int i)
append the int i to the log
|
void |
log(long l)
append the long l to the log
|
void |
log(Object o)
append the object o to the log
|
void |
log(String s)
append the string 's' to the log
|
protected GraphComparatorResult<V,E,G> |
performTask()
Build the basic topology for the diff graph (node+edges) by calling others functions
1) addNodesFromGraph on both graphs
2) setNodesColor
3) addEdgesFromGraph on each node on both graphs
|
background, call, cancel, getResult, getStatus, run
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected GraphComparatorResult<V,E,G> performTask() throws Exception
protected abstract void doSpecialisedComparison()
public G getDiffGraph()
public G getG1()
public G getG2()
public void log(String s)
s
- public void log(long l)
l
- public void log(int i)
i
- public void log(boolean b)
b
- public void log(Object o)
o
- Copyright © 2005–2020. All rights reserved.