|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pandora.sense.BasicSense
org.pandora.sense.http.Http
org.pandora.sense.http.Wiktionary
public class Wiktionary
Process Wikimedia Wiktionary pages.
Field Summary |
---|
Fields inherited from class org.pandora.sense.http.Http |
---|
WORKER_THREADS |
Fields inherited from class org.pandora.sense.BasicSense |
---|
DEFAULT_SPEAKER, RETRY |
Constructor Summary | |
---|---|
Wiktionary()
|
Method Summary | |
---|---|
void |
awake()
Start sensing. |
boolean |
discover(Vertex input,
Network network,
Vertex currentTime)
Attempt to discover information on the vertex. |
void |
output(Vertex output)
Post, process the post request. |
void |
processCategory(java.util.List<java.lang.String> category,
org.w3c.dom.Node node,
java.net.URL url,
Network network)
Process Wiktionary category page. |
void |
processRoot(org.w3c.dom.Node node,
java.net.URL url,
Network network)
Process the XHTML DOM. |
void |
quickProcessWord(java.lang.String wordText,
java.util.List<java.lang.String> categoryText,
Network network)
Bypass loading the word's page, and just define it from the category info. |
Methods inherited from class org.pandora.sense.http.Http |
---|
batchProcessURL, convertToXHTML, findNextTag, findTag, findTag, findTag, getAllBullets, getAllURLBullets, getDomains, getHtmlCleaner, getNextBulletList, getParser, getSentence, getText, input, input, nextNode, parseURL, parseXHTML, processHeaders |
Methods inherited from class org.pandora.sense.BasicSense |
---|
getEmotionalState, getLanguageState, getName, getPandora, getPrimitive, getShortTermMemory, initialize, input, isEnabled, log, log, log, setEmotionalState, setIsEnabled, setLanguageState, setName, setPandora, shutdown, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pandora.api.sense.Sense |
---|
getLanguageState, getName, getPandora, getPrimitive, initialize, input, input, isEnabled, setEmotionalState, setIsEnabled, setLanguageState, setName, setPandora, shutdown |
Constructor Detail |
---|
public Wiktionary()
Method Detail |
---|
public void awake()
BasicSense
awake
in interface Sense
awake
in class BasicSense
public void processCategory(java.util.List<java.lang.String> category, org.w3c.dom.Node node, java.net.URL url, Network network)
public void processRoot(org.w3c.dom.Node node, java.net.URL url, Network network)
processRoot
in class Http
public void quickProcessWord(java.lang.String wordText, java.util.List<java.lang.String> categoryText, Network network)
public void output(Vertex output)
output
in interface Sense
output
in class Http
public boolean discover(Vertex input, Network network, Vertex currentTime)
discover
in interface DiscoverySense
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |