agents
Class PrologAgent
java.lang.Object
agents.AgentFormat
agents.PrologAgent
- All Implemented Interfaces:
- java.lang.Runnable
public class PrologAgent
- extends AgentFormat
PrologAgent is an agent that is meant to start up after all other agents have finished.
It takes the knowledge found and makes it into statements usable in the language Prolog.
PrologAgent also includes some other Prolog-sentences that makes it possible to reason over the knowledge in Prolog.
This agent
PrologAgent takes one input only. That input is knowledge ready to be converted into Prolog-sentences.
The ready Prolog-sentences are saved in a file.
- Author:
- Håvard Rykkelid
Field Summary |
private static java.lang.String |
antonymy
|
private static boolean |
done
|
private static java.lang.String |
holonymy
|
private static java.lang.String |
hyponymy
|
private static java.lang.String |
synonymy
|
private static java.lang.String |
writeFile
|
private static java.io.BufferedWriter |
writer
|
Method Summary |
void |
run()
This method will be run when the Thread containing this agentdescription is started |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeFile
private static final java.lang.String writeFile
writer
private static java.io.BufferedWriter writer
done
private static boolean done
holonymy
private static java.lang.String holonymy
hyponymy
private static java.lang.String hyponymy
synonymy
private static java.lang.String synonymy
antonymy
private static java.lang.String antonymy
PrologAgent
public PrologAgent()
run
public void run()
- This method will be run when the Thread containing this agentdescription is started