ABLE, Version 1.1b

com.ibm.able.beans.fuzzy
Class FsSet

java.lang.Object
  |
  +--com.ibm.able.beans.fuzzy.FsLit
        |
        +--com.ibm.able.beans.fuzzy.FsSet
Direct Known Subclasses:
FsSetBeta, FsSetGaussian, FsSetLinear, FsSetPi, FsSetSegments, FsSetShoulder, FsSetSigmoid, FsSetTrapezoid, FsSetTriangle, FsSetWork

public abstract class FsSet
extends FsLit
implements java.io.Serializable

This class defines the Fuzzy System "FuzzySet" class.

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

Field Summary
protected  double myAlphaCut
           
protected  boolean myComplementFlag
           
protected  java.lang.String myComplementName
           
protected  double myDomainHi
           
protected  double myDomainLo
           
protected  FsVarContinuous myParentVar
           
protected  java.lang.String mySetName
           
protected  int mySetType
           
protected  double[] myTruthVector
           
 
Fields inherited from class com.ibm.able.beans.fuzzy.FsLit
myType
 
Constructor Summary
  FsSet()
           
protected FsSet(int theSetType, java.lang.String theSetName, FsVarContinuous theParentVar, double theAlphaCut)
          Create a new fuzzy set.
protected FsSet(int theSetType, java.lang.String theSetName, FsVarContinuous theParentVar, double theAlphaCut, double theDomainLo, double theDomainHi)
          Create a new fuzzy set.
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
 double getAlphaCut()
           
 boolean getBooleanValue()
          Retrieve the value of this object as a boolean value.
 double getDomainHi()
           
 double getDomainLo()
           
 FsSet getFuzzyValue()
          Retrieve the value of this object as a fuzzy value.
 double getNumericValue()
          Retrieve the value of this object as a numeric value.
 int getReferent()
          Retrieve the Id of the variable to which this object refers.
 java.lang.String getSetName()
           
 java.util.Vector getSetProperties()
           
 int getSetType()
           
 java.lang.String getSymbolicValue()
          Retrieve the value of this object as a symbolic value.
 double[] getTruthValues()
           
 FsLit getValue()
          Retrieve the value of this object as a Literal object.
 java.lang.String rlCString()
          Return a formal fuzzy rule language string.
 java.lang.String toString()
          Retrieve a string describing (the contents of) the object.
 java.lang.String xmlCRdString()
          Return a formal XML string.
 
Methods inherited from class com.ibm.able.beans.fuzzy.FsLit
getType, getTypeAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mySetType

protected int mySetType

mySetName

protected java.lang.String mySetName

myAlphaCut

protected double myAlphaCut

myDomainLo

protected double myDomainLo

myDomainHi

protected double myDomainHi

myTruthVector

protected double[] myTruthVector

myParentVar

protected FsVarContinuous myParentVar

myComplementName

protected java.lang.String myComplementName

myComplementFlag

protected boolean myComplementFlag
Constructor Detail

FsSet

protected FsSet(int theSetType,
                java.lang.String theSetName,
                FsVarContinuous theParentVar,
                double theAlphaCut,
                double theDomainLo,
                double theDomainHi)
Create a new fuzzy set.
Parameters:
theSetType -


FsSet

protected FsSet(int theSetType,
                java.lang.String theSetName,
                FsVarContinuous theParentVar,
                double theAlphaCut)
Create a new fuzzy set.
Parameters:
theSetType -


FsSet

public FsSet()
Method Detail

getBooleanValue

public boolean getBooleanValue()
                        throws FsException
Retrieve the value of this object as a boolean value.
Returns:
A boolean, if the value of this object can be represented as a boolean value.

Throws:
FsException - If the value of this object cannot be represented as a boolean value.

Overrides:
getBooleanValue in class FsLit

getFuzzyValue

public FsSet getFuzzyValue()
                    throws FsException
Retrieve the value of this object as a fuzzy value.
Returns:
An FsSet, if the value of this object can be represented as a fuzzy value.

Throws:
FsException - If the value of this object cannot be represented as a fuzzy value.

Overrides:
getFuzzyValue in class FsLit

getNumericValue

public double getNumericValue()
                       throws FsException
Retrieve the value of this object as a numeric value.
Returns:
A double, if the value of this object can be represented as a numeric value.

Throws:
FsException - If the value of this object cannot be represented as a numeric value.

Overrides:
getNumericValue in class FsLit

getSymbolicValue

public java.lang.String getSymbolicValue()
                                  throws FsException
Retrieve the value of this object as a symbolic value.
Returns:
A String, if the value of this object can be represented as a symbolic value.

Throws:
FsException - If the value of this object cannot be represented as a symbolic value.

Overrides:
getSymbolicValue in class FsLit

getValue

public FsLit getValue()
               throws FsException
Retrieve the value of this object as a Literal object.
Returns:
An FsLit object.

Throws:
FsException - If the value of this object cannot be represented as a literal.

Overrides:
getValue in class FsLit

getReferent

public int getReferent()
Retrieve the Id of the variable to which this object refers.
Returns:
The Id of the variable to which this value refers, or Fs.VarIdNull if the value is a literal.

Overrides:
getReferent in class FsLit

rlCString

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

Overrides:
rlCString in class FsLit

xmlCRdString

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

Overrides:
xmlCRdString in class FsLit

getSetType

public int getSetType()

getSetName

public java.lang.String getSetName()

getAlphaCut

public double getAlphaCut()

getDomainLo

public double getDomainLo()

getDomainHi

public double getDomainHi()

getTruthValues

public double[] getTruthValues()

getSetProperties

public java.util.Vector getSetProperties()

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 FsLit

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