|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rule.Fact
The Fact
class implements support for facts within
a rule base.
Field Summary | |
(package private) Clause |
fact
|
(package private) boolean |
fired
|
(package private) java.lang.String |
name
|
(package private) BooleanRuleBase |
rb
|
(package private) java.lang.Boolean |
truth
|
Constructor Summary | |
(package private) |
Fact(BooleanRuleBase Rb,
java.lang.String Name,
Clause f)
Creates a Fact object as part of the given rule base
with the specified name and the fact clause. |
Method Summary | |
void |
assert(BooleanRuleBase rb)
Asserts the fact in the given rule base. |
(package private) void |
display(javax.swing.JTextArea textArea)
Adds display information about this fact to the given text area. |
Methods inherited from class java.lang.Object |
|
Field Detail |
BooleanRuleBase rb
java.lang.String name
Clause fact
java.lang.Boolean truth
boolean fired
Constructor Detail |
Fact(BooleanRuleBase Rb, java.lang.String Name, Clause f)
Fact
object as part of the given rule base
with the specified name and the fact clause.Rb
- the BooleanRuleBase object that this fact belongs toName
- the String object that contains the name of the factf
- the Clause object that contains the factMethod Detail |
public void assert(BooleanRuleBase rb)
rb
- the BooleanRuleBase object in which this fact is being
assertedvoid display(javax.swing.JTextArea textArea)
textArea
- the JTextArea object to which the fact information
is added
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |