infosapient.system
Class FzyRule
java.lang.Object
|
+--infosapient.system.ObservableImpl
|
+--infosapient.system.FzySystemComponent
|
+--infosapient.system.FzyRule
- Direct Known Subclasses:
- FzyUnconditionalRule
- public class FzyRule
- extends FzySystemComponent
- implements Observer, java.io.Serializable, XMLOutput, TextOutput
- Version:
- $Revision: 1.1.1.1 $
- See Also:
FzyUnconditionalRule
,
FzyPremise
,
FzyConsequent
,
FzyOperator
, Serialized Form
Methods inherited from class infosapient.system.FzySystemComponent |
addPropertyChangeListener,
addVetoableChangeListener,
equals,
getID,
getName,
getPropertyChangeSupport,
getVetoableChangeSupport,
hashCode,
removePropertyChangeListener,
removeVetoableChangeListener,
setID,
setName |
Methods inherited from class java.lang.Object |
,
clone,
finalize,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
serialVersionUID
static final long serialVersionUID
hasFired
private boolean hasFired
name
private java.lang.String name
theKB
private FzyKnowledgebase theKB
myPremise
private FzyPremise myPremise
myConsequent
private FzyConsequent myConsequent
ruleText
private java.lang.String ruleText
FzyRule
public FzyRule()
FzyRule
public FzyRule(FzyKnowledgebase aKB)
FzyRule
public FzyRule(FzyKnowledgebase aKB,
java.lang.String rt)
addConsequent
public FzyRule addConsequent(FzyConsequent acons)
addPremise
public FzyRule addPremise(FzyPremise aPremise)
getConsequent
public FzyConsequent getConsequent()
getKB
public FzyKnowledgebase getKB()
- Insert the method's description here.
- Returns:
- infosapient.system.FzyKnowledgebase
getPremise
public FzyPremise getPremise()
getPremiseAttributes
public java.util.Enumeration getPremiseAttributes()
- Returns an Enumeration
of all the attributes used in the premise of the rule.
Creation date: (1/12/00 1:40:42 PM)
- Returns:
- Enumeration of FzyAttributes
getText
public java.lang.String getText()
hasFired
public boolean hasFired()
printOn
public void printOn(java.io.Writer outWriter,
int nTabs)
throws java.io.IOException
- Overrides:
- printOn in class FzySystemComponent
reset
public void reset()
setFired
public FzyRule setFired()
setKB
public FzyRule setKB(FzyKnowledgebase akb)
setText
public void setText(java.lang.String rt)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
toText
public java.lang.String toText()
- Represent this rule as text for display.
Creation date: (2/1/00 5:53:23 PM)
- Specified by:
- toText in interface TextOutput
- Returns:
- java.lang.StringBuffer
toXML
public java.lang.StringBuffer toXML(int nTabs)
- Represent this rule as xml tags.
Creation date: (1/31/00 1:18:17 PM)
- Specified by:
- toXML in interface XMLOutput
- Returns:
- java.lang.StringBuffer
update
public void update(Observable juo,
java.lang.Object obj)
- Specified by:
- update in interface Observer
Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved