|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.vergil.gt.MatchResultRecorder
public class MatchResultRecorder
| Red (tfeng) |
| Red (tfeng) |
| Field Summary | |
|---|---|
private java.util.List<MatchResult> |
_results
|
| Constructor Summary | |
|---|---|
MatchResultRecorder()
|
|
| Method Summary | |
|---|---|
boolean |
foundMatch(GraphMatcher matcher)
A routine to be called when a match is found in the graph matching. |
java.util.List<MatchResult> |
getResults()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<MatchResult> _results
| Constructor Detail |
|---|
public MatchResultRecorder()
| Method Detail |
|---|
public boolean foundMatch(GraphMatcher matcher)
MatchCallbackGraphMatcher.getMatchResult().
This match result should not be kept, however, because it may be changed
by future matching operations. To keep a copy of this result, invoke
MatchResult.clone() and keep the cloned copy. The return value
indicates whether the match is the one looked for. If it is
true, the matching will terminate after this routine returns,
and no more match result will be reported.
foundMatch in interface MatchCallbackmatcher - The graph matcher.
public java.util.List<MatchResult> getResults()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||