|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttreebolic.provider.wn.Provider
public class Provider
Provider for WordNet
| Field Summary | |
|---|---|
private IProviderContext |
theContext
Provider client |
private static java.awt.Image |
theFocusImage
Focus image |
private XWordNet |
theWn
Extended WordNet interface |
| Constructor Summary | |
|---|---|
Provider()
Constructor |
|
| Method Summary | |
|---|---|
void |
connect(IProviderContext thisContext)
Called by framework to pass context reference (may default to void action if provider does not need it) |
Model |
makeModel(java.lang.String thisSource)
Make model |
Tree |
makeTree(java.lang.String thisSource,
boolean checkRecursion)
Make tree. |
Node |
walkHorizontalLinks(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisLevel)
Walk horizontal links |
Node |
walkLinks(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisIdx)
Walk links |
Node |
walkLinks(java.lang.String thisWord,
boolean recurse)
Walk links |
Node |
walkSynsets(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisLevel)
Walk synsets |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.awt.Image theFocusImage
private IProviderContext theContext
private XWordNet theWn
| Constructor Detail |
|---|
public Provider()
| Method Detail |
|---|
public void connect(IProviderContext thisContext)
IProvider
connect in interface IProviderthisContext - contextpublic Model makeModel(java.lang.String thisSource)
IProvider
makeModel in interface IProviderthisSource - source (a string that refers to the data in a was that the provider implementation will understand)
public Tree makeTree(java.lang.String thisSource,
boolean checkRecursion)
IProvider
makeTree in interface IProviderthisSource - source (a string that refers to the data in a was that the provider implementation will understand)checkRecursion - whether immediate recursion is checked (avoid mount-now infinite recursion)
public Node walkLinks(java.lang.String thisWord,
boolean recurse)
thisWord - target wordrecurse - whether to recurse
public Node walkSynsets(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisLevel)
thisParentNode - parent nodethisSynset - synsetthisLevel - recursion level
public Node walkLinks(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisIdx)
thisParentNode - parent nodethisSynset - synsetthisIdx - index
public Node walkHorizontalLinks(Node thisParentNode,
edu.princeton.wordnet.Synset thisSynset,
int thisLevel)
thisParentNode - parent nodethisSynset - synsetthisLevel - recursion level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||