ABLE, Version 1.1b

com.ibm.able.beans.fuzzy
Class FsLit

java.lang.Object
  |
  +--com.ibm.able.beans.fuzzy.FsLit
Direct Known Subclasses:
FsCall, FsLitBoolean, FsLitNumeric, FsLitSymbolic, FsSet

public abstract class FsLit
extends java.lang.Object
implements FsRd, java.io.Serializable

This class defines the fuzzy system literal value.

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

Field Summary
protected  int myType
           
 
Constructor Summary
  FsLit()
           
protected FsLit(int theType)
          Create a new literal of the specified type.
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
abstract  boolean getBooleanValue()
          Retrieve the value of this object as a boolean value.
abstract  FsSet getFuzzyValue()
          Retrieve the value of this object as a fuzzy value.
abstract  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.
abstract  java.lang.String getSymbolicValue()
          Retrieve the value of this object as a symbolic value.
 int getType()
          Retrieve the type of this object.
 java.lang.String getTypeAsString()
          Retrieve the type of this object.
abstract  FsLit getValue()
          Retrieve the value of this object as a Literal object.
abstract  java.lang.String rlCString()
          Return a formal fuzzy rule language string.
 java.lang.String toString()
          Retrieve a string describing (the contents of) the object.
abstract  java.lang.String xmlCRdString()
          Return a formal XML string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myType

protected int myType
Constructor Detail

FsLit

protected FsLit(int theType)
Create a new literal of the specified type.
Parameters:
theType - An Fs..


FsLit

public FsLit()
Method Detail

getBooleanValue

public abstract boolean getBooleanValue()
                                 throws FsException
Retrieve the value of this object as a boolean value.
Specified by:
getBooleanValue in interface FsRd
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.


getFuzzyValue

public abstract FsSet getFuzzyValue()
                             throws FsException
Retrieve the value of this object as a fuzzy value.
Specified by:
getFuzzyValue in interface FsRd
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.


getNumericValue

public abstract double getNumericValue()
                                throws FsException
Retrieve the value of this object as a numeric value.
Specified by:
getNumericValue in interface FsRd
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.


getSymbolicValue

public abstract java.lang.String getSymbolicValue()
                                           throws FsException
Retrieve the value of this object as a symbolic value.
Specified by:
getSymbolicValue in interface FsRd
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.


getValue

public abstract FsLit getValue()
                        throws FsException
Retrieve the value of this object as a Literal object.
Specified by:
getValue in interface FsRd
Returns:
An FsLit object.

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


getReferent

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


getType

public int getType()
Retrieve the type of this object.
Specified by:
getType in interface FsRd
Returns:
An Fs.


getTypeAsString

public java.lang.String getTypeAsString()
Retrieve the type of this object.
Returns:
An Fs.


rlCString

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


xmlCRdString

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


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 java.lang.Object

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