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

Field Summary
private  boolean hasFired
           
private  FzyConsequent myConsequent
           
private  FzyPremise myPremise
           
private  java.lang.String name
           
private  java.lang.String ruleText
           
(package private) static long serialVersionUID
           
private  FzyKnowledgebase theKB
           
 
Fields inherited from class infosapient.system.FzySystemComponent
DEBUG_, myID, name, pcs, serialVersionUID, trace, vcs
 
Fields inherited from class infosapient.system.ObservableImpl
arr, changed, obs, serialVersionUID
 
Constructor Summary
FzyRule()
           
FzyRule(FzyKnowledgebase aKB)
           
FzyRule(FzyKnowledgebase aKB, java.lang.String rt)
           
 
Method Summary
 FzyRule addConsequent(FzyConsequent acons)
           
 FzyRule addPremise(FzyPremise aPremise)
           
 FzyConsequent getConsequent()
           
 FzyKnowledgebase getKB()
          Insert the method's description here.
 FzyPremise getPremise()
           
 java.util.Enumeration getPremiseAttributes()
          Returns an Enumeration of all the attributes used in the premise of the rule.
 java.lang.String getText()
           
 boolean hasFired()
           
 void printOn(java.io.Writer outWriter, int nTabs)
           
 void reset()
           
 FzyRule setFired()
           
 FzyRule setKB(FzyKnowledgebase akb)
           
 void setText(java.lang.String rt)
           
 java.lang.String toString()
           
 java.lang.String toText()
          Represent this rule as text for display.
 java.lang.StringBuffer toXML(int nTabs)
          Represent this rule as xml tags.
 void update(Observable juo, java.lang.Object obj)
           
 
Methods inherited from class infosapient.system.FzySystemComponent
addPropertyChangeListener, addVetoableChangeListener, equals, getID, getName, getPropertyChangeSupport, getVetoableChangeSupport, hashCode, removePropertyChangeListener, removeVetoableChangeListener, setID, setName
 
Methods inherited from class infosapient.system.ObservableImpl
addObserver, clearChanged, containsObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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
Constructor Detail

FzyRule

public FzyRule()

FzyRule

public FzyRule(FzyKnowledgebase aKB)

FzyRule

public FzyRule(FzyKnowledgebase aKB,
               java.lang.String rt)
Method Detail

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

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved