ABLE, Version 1.1b

com.ibm.able.beans.fuzzy
Class FsClsCns

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

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

This class defines the fuzzy system "Consequent Clause" class. This class can be used to represent a consequent of a conditional rule.

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

Constructor Summary
  FsClsCns()
           
protected FsClsCns(com.ibm.able.beans.fuzzy.FsLhs theLhs, int theOp, FsRd theRhs)
           
protected FsClsCns(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 assertion (that is, a simple assignment statement).
protected  double eval(double theTruthValue)
          Evaluate the clause as a consequent clause.
 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

FsClsCns

protected FsClsCns(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


FsClsCns

protected FsClsCns(com.ibm.able.beans.fuzzy.FsLhs theLhs,
                   int theOp,
                   FsRd theRhs)

FsClsCns

public FsClsCns()
Method Detail

eval

protected double eval()
               throws FsException
Evaluate the clause as an assertion (that is, a simple assignment statement).
Returns:
0.0

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

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

eval

protected double eval(double theTruthValue)
               throws FsException
Evaluate the clause as a consequent clause.
Returns:
0.0

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


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.'