ABLE, Version 1.1b

com.ibm.able.beans.fuzzy
Class FsVarBoolean

java.lang.Object
  |
  +--com.ibm.able.beans.fuzzy.FsLhs
        |
        +--com.ibm.able.beans.fuzzy.FsVar
              |
              +--com.ibm.able.beans.fuzzy.FsVarBoolean

public class FsVarBoolean
extends FsVar
implements java.io.Serializable

This class defines the Fuzzy System boolean variable.

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

Fields inherited from class com.ibm.able.beans.fuzzy.FsVar
myId, myName, myRs, myType
 
Constructor Summary
FsVarBoolean()
           
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
 boolean getBooleanValue()
          Retrieve the value of this object as a boolean value.
 FsSet getFuzzyValue()
          Retrieve the value of this object as a fuzzy value.
 boolean getInitialValue()
           
 double getNumericValue()
          Retrieve the value of this object as a numeric value.
 java.lang.String getSymbolicValue()
          Retrieve the value of this object as a symbolic value.
 FsLit getValue()
          Retrieve the value of this object as a Literal object.
 java.lang.String rlString()
          Return a formal fuzzy rule language string.
 void setBooleanValue(boolean theNewValue)
          Set the value of this object from a boolean value.
 void setFuzzyValue(FsSet theNewValue)
          Set the value of this object from a fuzzy value.
 void setNumericValue(double theNewValue)
          Set the value of this object from a numeric value.
 void setSymbolicValue(java.lang.String theNewValue)
          Set the value of this object from a symbolic value.
 void setValue(FsLit theNewValue)
          Set the value of this object from a literal object.
 java.lang.String toString()
          Retrieve a string describing (the contents of) the object.
 java.lang.String xmlCWrString()
          Return a formal XML string.
 java.lang.String xmlString()
          Return a formal XML string.
 
Methods inherited from class com.ibm.able.beans.fuzzy.FsVar
getId, getName, getReferent, getType, getTypeAsString, rlCString, xmlCRdString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsVarBoolean

public FsVarBoolean()
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 com.ibm.able.beans.fuzzy.FsLhs

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 com.ibm.able.beans.fuzzy.FsLhs

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 com.ibm.able.beans.fuzzy.FsLhs

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 com.ibm.able.beans.fuzzy.FsLhs

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 com.ibm.able.beans.fuzzy.FsLhs

setBooleanValue

public void setBooleanValue(boolean theNewValue)
                     throws FsException
Set the value of this object from a boolean value.
Returns:
void.

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

Overrides:
setBooleanValue in class com.ibm.able.beans.fuzzy.FsLhs

setFuzzyValue

public void setFuzzyValue(FsSet theNewValue)
                   throws FsException
Set the value of this object from a fuzzy value.
Returns:
void.

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

Overrides:
setFuzzyValue in class com.ibm.able.beans.fuzzy.FsLhs

setNumericValue

public void setNumericValue(double theNewValue)
                     throws FsException
Set the value of this object from a numeric value.
Returns:
void.

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

Overrides:
setNumericValue in class com.ibm.able.beans.fuzzy.FsLhs

setSymbolicValue

public void setSymbolicValue(java.lang.String theNewValue)
                      throws FsException
Set the value of this object from a symbolic value.
Returns:
void.

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

Overrides:
setSymbolicValue in class com.ibm.able.beans.fuzzy.FsLhs

setValue

public void setValue(FsLit theNewValue)
              throws FsException
Set the value of this object from a literal object.
Returns:
void.

Throws:
FsException - If the value of this object cannot be determined from the literal object.

Overrides:
setValue in class com.ibm.able.beans.fuzzy.FsLhs

xmlCWrString

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

Overrides:
xmlCWrString in class FsVar

rlString

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


xmlString

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


getInitialValue

public boolean getInitialValue()

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 FsVar

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