|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.xqhs.graphs.matcher.MonitorPack
public class MonitorPack
The class works in conjunction with graph matching classes (such as GraphMatcherQuick
) to handle both
performance evaluation and visualizing tasks.
It offers various performance indicators that are easy to update.
It offers the logging methods specified by LoggerSimple
.
It maintains a link with an instance of MatchingVisualizer
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.xqhs.util.logging.LoggerSimple |
---|
net.xqhs.util.logging.LoggerSimple.Level |
Field Summary | |
---|---|
(package private) net.xqhs.util.logging.LoggerSimple |
log
The log to use. |
(package private) java.util.concurrent.atomic.AtomicInteger |
matchCount
Measures the total number of matches created. |
(package private) java.util.concurrent.atomic.AtomicInteger |
memory
Measures the amount of memory, as declared by the caller. |
(package private) java.util.concurrent.atomic.AtomicInteger |
mergeCount
Measures the total number of merges between matches. |
(package private) java.util.concurrent.atomic.AtomicInteger |
performanceEdges
Measures performance of the algorithm in terms of compared edge references. |
(package private) java.util.concurrent.atomic.AtomicInteger |
performanceEdgesLabels
Measures performance of the algorithm in terms of compared edge labels. |
(package private) java.util.concurrent.atomic.AtomicInteger |
performanceNodes
Measures performance of the algorithm in terms of compared node references. |
(package private) java.util.concurrent.atomic.AtomicInteger |
performanceNodesLabels
Measures performance of the algorithm in terms of compared node labels. |
(package private) MatchingVisualizer |
visual
Matching visualizer to view the matching process. |
Fields inherited from interface net.xqhs.util.logging.LoggerSimple |
---|
ARGUMENT_BEGIN, ARGUMENT_END, ARGUMENT_PLACEHOLDER |
Constructor Summary | |
---|---|
MonitorPack()
|
Method Summary | |
---|---|
void |
dbg(net.xqhs.util.logging.Debug.DebugItem debug,
java.lang.String message,
java.lang.Object... arguments)
|
int |
getMatchCount()
|
int |
getMemoryIndication()
|
int |
getMergeCount()
|
int |
getPerformanceEdges()
|
int |
getPerformanceEdgesLabels()
|
int |
getPerformanceNodes()
|
int |
getPerformanceNodesLabels()
|
MatchingVisualizer |
getVisual()
|
int |
incrementEdgeLabelComparison()
Increments the performance indicator. |
int |
incrementEdgeLabelComparison(int increment)
Increments the performance indicator with the specified value. |
int |
incrementEdgeReferenceOperation()
Increments the performance indicator. |
int |
incrementEdgeReferenceOperation(int increment)
Increments the performance indicator with the specified value. |
int |
incrementMatchCount()
Increments the performance indicator. |
int |
incrementMergeCount()
Increments the performance indicator. |
int |
incrementNodeLabelComparison()
Increments the performance indicator. |
int |
incrementNodeLabelComparison(int increment)
Increments the performance indicator with the specified value. |
int |
incrementNodeReferenceOperation()
Increments the performance indicator. |
int |
incrementNodeReferenceOperation(int increment)
Increments the performance indicator with the specified value. |
void |
le(java.lang.String message,
java.lang.Object... arguments)
|
void |
lf(java.lang.String message,
java.lang.Object... arguments)
|
void |
li(java.lang.String message,
java.lang.Object... arguments)
|
java.lang.Object |
lr(java.lang.Object ret)
|
java.lang.Object |
lr(java.lang.Object ret,
java.lang.String message,
java.lang.Object... arguments)
|
void |
lw(java.lang.String message,
java.lang.Object... arguments)
|
java.lang.String |
printStats()
Prints a one-line view of the performance indicators, as a log line (if any log exists). |
MonitorPack |
setLog(net.xqhs.util.logging.LoggerSimple logger)
Sets the log to use by this instance. |
int |
setMemoryIndication(int indication)
Sets the current memory consumption. |
MonitorPack |
setVisual(MatchingVisualizer visualizer)
Sets the MatchingVisualizer instance to use to visualize the matching process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
MatchingVisualizer visual
net.xqhs.util.logging.LoggerSimple log
java.util.concurrent.atomic.AtomicInteger performanceNodes
java.util.concurrent.atomic.AtomicInteger performanceNodesLabels
java.util.concurrent.atomic.AtomicInteger performanceEdges
java.util.concurrent.atomic.AtomicInteger performanceEdgesLabels
java.util.concurrent.atomic.AtomicInteger matchCount
java.util.concurrent.atomic.AtomicInteger mergeCount
java.util.concurrent.atomic.AtomicInteger memory
Constructor Detail |
---|
public MonitorPack()
Method Detail |
---|
public MonitorPack setLog(net.xqhs.util.logging.LoggerSimple logger)
logger
- - an instance implementing LoggerSimple
.
public MonitorPack setVisual(MatchingVisualizer visualizer)
MatchingVisualizer
instance to use to visualize the matching process.
visualizer
- - the MatchingVisualizer
object to use.
public MatchingVisualizer getVisual()
MatchingVisualizer
instance in use.public int getPerformanceNodes()
public int getPerformanceNodesLabels()
public int getPerformanceEdges()
public int getPerformanceEdgesLabels()
public int getMatchCount()
public int getMergeCount()
public int getMemoryIndication()
public int incrementEdgeLabelComparison()
public int incrementEdgeLabelComparison(int increment)
increment
- the increment.
public int incrementEdgeReferenceOperation()
public int incrementEdgeReferenceOperation(int increment)
increment
- the increment.
public int incrementNodeLabelComparison()
public int incrementNodeLabelComparison(int increment)
increment
- the increment.
public int incrementNodeReferenceOperation()
public int incrementNodeReferenceOperation(int increment)
increment
- the increment.
public int incrementMatchCount()
public int incrementMergeCount()
public int setMemoryIndication(int indication)
indication
- - the indication on the memory consumption.
public java.lang.String printStats()
public void le(java.lang.String message, java.lang.Object... arguments)
le
in interface net.xqhs.util.logging.LoggerSimple
public void lw(java.lang.String message, java.lang.Object... arguments)
lw
in interface net.xqhs.util.logging.LoggerSimple
public void li(java.lang.String message, java.lang.Object... arguments)
li
in interface net.xqhs.util.logging.LoggerSimple
public void lf(java.lang.String message, java.lang.Object... arguments)
lf
in interface net.xqhs.util.logging.LoggerSimple
public java.lang.Object lr(java.lang.Object ret)
lr
in interface net.xqhs.util.logging.LoggerSimple
public java.lang.Object lr(java.lang.Object ret, java.lang.String message, java.lang.Object... arguments)
lr
in interface net.xqhs.util.logging.LoggerSimple
public void dbg(net.xqhs.util.logging.Debug.DebugItem debug, java.lang.String message, java.lang.Object... arguments)
dbg
in interface net.xqhs.util.logging.LoggerSimple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |