ABLE, Version 1.1b

com.ibm.able.beans.fuzzy
Class FsClsAnt

java.lang.Object
  |
  +--com.ibm.able.beans.fuzzy.FsCls
        |
        +--com.ibm.able.beans.fuzzy.FsClsAnt

public class FsClsAnt
extends com.ibm.able.beans.fuzzy.FsCls
implements java.io.Serializable

This class defines the Fuzzy System "Antecedent Clause" class.

This class can be used to represent an antecedent in a conditional rule, for example, "if age >= 56[0.5]".

Version:
$Revision: 1.3 $, $Date: 2000/06/05 18:24:04 $
See Also:
Serialized Form

Constructor Summary
  FsClsAnt()
           
protected FsClsAnt(com.ibm.able.beans.fuzzy.FsLhs theLhs, int theOp, FsRd theRhs, double theWeight)
          Create a new fuzzy clause with the specified parts.
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
protected  double eval()
          Evaluate the clause as an antecedent clause, using the specified truth value.
 java.lang.String rlString()
          Return a formal fuzzy rule language string.
 java.lang.String toString()
          Retrieve a string describing (the contents of) the object.
 java.lang.String xmlString()
          Return a formal XML string.
 
Methods inherited from class com.ibm.able.beans.fuzzy.FsCls
getLhs, getLhsReferent, getOp, getOpAsString, getReferent, getRhs, getRhsReferent, getWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsClsAnt

protected FsClsAnt(com.ibm.able.beans.fuzzy.FsLhs theLhs,
                   int theOp,
                   FsRd theRhs,
                   double theWeight)
Create a new fuzzy clause with the specified parts. Clause weight defaults to 1.0.
Parameters:
theLhs - An Lvalue (lefthand side) object

theOp - An operator.

theRhs - An Rvalue (righthand side expression) object


FsClsAnt

public FsClsAnt()
Method Detail

eval

protected double eval()
               throws FsException
Evaluate the clause as an antecedent clause, using the specified truth value.
Parameters:
aTv - A truth value.

Returns:
A truth value.

Throws:
FsException - when the operator (relation) in this clause contains an unrecognized value.

Overrides:
eval in class com.ibm.able.beans.fuzzy.FsCls

rlString

public java.lang.String rlString()
Return a formal fuzzy rule language string.
Returns:
A String describing the object in fuzzy rule language.

Overrides:
rlString in class com.ibm.able.beans.fuzzy.FsCls

xmlString

public java.lang.String xmlString()
Return a formal XML string.
Returns:
A String describing the object in XML.

Overrides:
xmlString in class com.ibm.able.beans.fuzzy.FsCls

toString

public java.lang.String toString()
Retrieve a string describing (the contents of) the object.
Returns:
A String containing the current contents of the object.

Overrides:
toString in class com.ibm.able.beans.fuzzy.FsCls

Copyright

public static java.lang.String Copyright()
Determine the copyright of this class.
Returns:
A String containing this class's copyright statement.


ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'