|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MoleculeHandler
These methods are called as the MoleculeTraverser traverses a molecule. For a given molecule:
_1 p _2, _1 p _3, _2 p o. First handleTriple is called with both the first triple (_1 p _2). Next,
handleStartContainsMolecules is called which has the set of molecules (one molecule that contains _1 p _3). Then,
handleTriple is called with _1 p _3. Then handleEndContainsMolecules is called with the same set of molecules. And
so on...
| Method Summary | |
|---|---|
void |
handleEmptyMolecules()
The is called instead of handleStart/End contains molecules when the triple visited does not contain any submolecules. |
void |
handleEndContainsMolecules(Set<Molecule> newMolecules)
This is called when the top level triple's submolecules have all been visited. |
void |
handleStartContainsMolecules(Set<Molecule> newMolecules)
This is called when the current top level triple contains a set of submolecules. |
void |
handleTriple(Triple triple)
A triple in the root set of triples is found. |
| Method Detail |
|---|
void handleTriple(Triple triple)
triple - the triple found.void handleEmptyMolecules()
void handleStartContainsMolecules(Set<Molecule> newMolecules)
newMolecules - the submolecules belonging to the top level triple.void handleEndContainsMolecules(Set<Molecule> newMolecules)
newMolecules - the submolecules belonging to the top level triple.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||