|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.util.AIMLWatcher
public class AIMLWatcher
Watches a set of AIML files. Any file changes will be loaded automatically.
| Field Summary | |
|---|---|
protected org.apache.log4j.Logger |
logger
|
protected Map<URL,Long> |
watchMap
Used for storing information about file changes. |
| Constructor Summary | |
|---|---|
AIMLWatcher(Core coreToUse)
Creates a new AIMLWatcher using the given Graphmaster |
|
| Method Summary | |
|---|---|
void |
addWatchFile(URL path)
Adds a file to the watchlist. |
protected void |
reload(URL path)
Reloads AIML from a given path. |
void |
start()
Starts the AIMLWatcher. |
void |
stop()
Stops the AIMLWatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<URL,Long> watchMap
protected org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public AIMLWatcher(Core coreToUse)
coreToUse - the Core to use| Method Detail |
|---|
public void start()
public void stop()
protected void reload(URL path)
path - the path to reloadpublic void addWatchFile(URL path)
path - the path to the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||