|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthyspirit.engines.HyEngine
hyspirit.engines.HyInferenceEngine
hyspirit.engines.HyFVPDatalogEngine
public class HyFVPDatalogEngine
| Field Summary |
|---|
| Fields inherited from class hyspirit.engines.HyInferenceEngine |
|---|
deleteQueryProgram, retrieveProgram |
| Fields inherited from class hyspirit.engines.HyEngine |
|---|
argumentString, LOG, stdin, TIME_PREFIX |
| Constructor Summary | |
|---|---|
HyFVPDatalogEngine()
This constructor must be used if you are going to start your own engine process (client/server mode). |
|
HyFVPDatalogEngine(HySpiritProperties hyspirit)
This constructor must be used if you are going to start your own engine process (client/server mode). |
|
HyFVPDatalogEngine(java.lang.String hostname,
int port)
This constructor must be used if you use an engine server (client mode). |
|
| Method Summary | |
|---|---|
protected java.lang.String[] |
buildCommand()
Builds the command from the parameters. |
void |
CWAPostfix(java.lang.String CWAPostfix)
Postfix used for dynamic relations for closed world assumption. |
void |
hyPRAOpts(java.lang.String hyPRAOpts)
Sets option to be passed to hy_pra directly. |
void |
negPrefix(java.lang.String negPrefix)
Specification of the prefixes for the relations that contain positive negative (false and inconsistent) propositions, respecitively. |
void |
OWAPostfix(java.lang.String OWAPostfix)
Postfix used for dynamic relations for open world assumption. |
void |
posPrefix(java.lang.String posPrefix)
Specification of the prefixes for the relations that contain positive (true and inconsistent) propositions. |
void |
reset()
Resets all parameters of the engine after destroying a possibly running process. |
void |
setCWA(boolean cwa)
Sets open world assumption (cwa = false) or closed world assumption (cwa = true). |
void |
setDynamic(boolean dynamic)
Specify static or dynamic for CWA or OWA. |
void |
setPosNeg(boolean posneg)
With this option, HyFVPD supports reasoning with partly inconsistent knowledge. |
void |
toPD()
Tells to translate a FVPD program to PD. |
void |
toPRA()
Tells to translate a FVPD program to PRA. |
| Methods inherited from class hyspirit.engines.HyInferenceEngine |
|---|
deleteQuery, deleteQueryProgram, echo, echoSpecial, eval, evalFile, getStreamEndMessage, nextTuple, retrieve, retrieveProgram, runProgram |
| Methods inherited from class hyspirit.engines.HyEngine |
|---|
closeSTDIN, destroy, exitValue, getCommand, getEngineName, getInputReader, getOutputWriter, getPercentageCPU, getRealTime, getSTDERR, getSTDIN, getSTDOUT, getSysTime, getUserTime, hasNext, isInClientMode, isRunning, kb, kb, kb, next, readFromSTDIN, restart, run, send, send, sendAndReceive, sendFile, setArgumentString, setLogger, start, suppressSTDERR, takesTime, takeTime, waitFor, waitTillRunning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HyFVPDatalogEngine()
throws HySpiritException
HySpiritException - if we can't determine the environment
public HyFVPDatalogEngine(HySpiritProperties hyspirit)
throws HySpiritException
hyspirit - the HySpirit properties containing the environment
HySpiritException - if we can't determine the environment
public HyFVPDatalogEngine(java.lang.String hostname,
int port)
throws HySpiritException
hostname - the server host nameport - the server port
HySpiritException - if we can't determine the environment| Method Detail |
|---|
public void toPRA()
public void toPD()
public void setCWA(boolean cwa)
cwa - flag if closed or open world assumptionpublic void setDynamic(boolean dynamic)
dynamic - true if dynamic, false if staticpublic void CWAPostfix(java.lang.String CWAPostfix)
CWAPostfix - the CWA postfixpublic void OWAPostfix(java.lang.String OWAPostfix)
OWAPostfix - the OWA postfixpublic void setPosNeg(boolean posneg)
posneg - true or falsepublic void posPrefix(java.lang.String posPrefix)
posPrefix - prefix for positive relationspublic void negPrefix(java.lang.String negPrefix)
negPrefix - prefix for negative relationspublic void hyPRAOpts(java.lang.String hyPRAOpts)
hyPRAOpts - the hy_pra options. See hy_pra manual for further
details.public void reset()
run().
reset in class HyEngineprotected java.lang.String[] buildCommand()
HyEnginebuildCommand and
reset methods. Be sure that you place the support for new,
additional parameters somewhere. This means the block
if (this.argumentString != null) {
StringTokenizer strTok= new StringTokenizer(this.argumentString);
while (strTok.hasMoreTokens()) commandVec.add(strTok.nextToken());
}
should appear somewhere in your buildCommand
implementation.
The output of this method is used in the run() method.
buildCommand in class HyEngine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||