|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdrew.oo.util.DefiniteClause
public class DefiniteClause
Title: OO jDREW
Description: Reasoning Engine for the Semantic Web - Supporting OO RuleML 0.88
Copyright: Copyright (c) 2005
| Field Summary | |
|---|---|
Term[] |
atoms
Contains the Term objects that represent the Atoms of the clause. |
java.lang.String[] |
variableNames
Contains the variable names for this clause. |
| Constructor Summary | |
|---|---|
DefiniteClause(java.util.Vector atoms,
java.util.Vector variableNames)
Creates a new clause representation using the a Vector of atoms and a Vector of variable names. |
|
| Method Summary | |
|---|---|
boolean |
isFact()
Tests to see if the clause represented by this clause is a fact - this is determined by checking to see if the clause only has one atom (the head). |
java.lang.String |
toPOSLString()
Builds and returns a POSL string representation of the clause. |
nu.xom.Element |
toRuleML(int format)
Builds and returns a RuleML (0.88 + rests or 0.91) representation of the object as a XOM tree. |
java.lang.String |
toRuleMLString(int format)
Builds and returns a RuleML (0.88 + rests or 0.91) string representation of the object. |
java.lang.String |
toString()
Creates and returns a string representation of the clause in either POSL or RuleML format. |
java.lang.String |
toString(int format)
Creates and returns a string representation of the clause in either POSL or RuleML format. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Term[] atoms
public java.lang.String[] variableNames
| Constructor Detail |
|---|
public DefiniteClause(java.util.Vector atoms,
java.util.Vector variableNames)
atoms - Vector A vector of Term objects that represent the Atoms of
the clause to be constructed. The first object (index 0) is the head of
the clause, while any remaining objects are the body atoms
(conjunctively) joined.variableNames - Vector A vector containing the variable names for
the clause to be constructed.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int format)
format - int - this is to determine what RuleML parser to use.
public java.lang.String toPOSLString()
public java.lang.String toRuleMLString(int format)
format - int - this is to determine what RuleML parser to use.
public nu.xom.Element toRuleML(int format)
format - int - this is to determine what RuleML parser to use.
public boolean isFact()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||