com.ibm.able.beans.fuzzy
Class FsVar
java.lang.Object
|
+--com.ibm.able.beans.fuzzy.FsLhs
|
+--com.ibm.able.beans.fuzzy.FsVar
- Direct Known Subclasses:
- FsVarBoolean, FsVarContinuous, FsVarNumeric, FsVarSymbolic
- public abstract class FsVar
- extends com.ibm.able.beans.fuzzy.FsLhs
- implements java.io.Serializable
This class defines the Fuzzy System "Variable" class.
- Version:
- $Revision: 1.3 $, $Date: 2000/06/05 18:24:05 $
- See Also:
- Serialized Form
Constructor Summary |
|
FsVar()
|
protected |
FsVar(int theType,
FsRuleSet theRs,
java.beans.PropertyChangeSupport theChgSupport,
int theId,
java.lang.String theName)
Create a new fuzzy variable. |
Method Summary |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
int |
getId()
|
java.lang.String |
getName()
|
int |
getReferent()
Retrieve the Id of the variable to which this object refers. |
int |
getType()
Retrieve the type of this object. |
java.lang.String |
getTypeAsString()
|
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. |
abstract java.lang.String |
xmlCWrString()
Return a formal XML string. |
Methods inherited from class com.ibm.able.beans.fuzzy.FsLhs |
getBooleanValue,
getFuzzyValue,
getNumericValue,
getSymbolicValue,
getValue,
setBooleanValue,
setFuzzyValue,
setNumericValue,
setSymbolicValue,
setValue |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
myType
protected int myType
myId
protected int myId
myName
protected java.lang.String myName
myRs
protected FsRuleSet myRs
FsVar
protected FsVar(int theType,
FsRuleSet theRs,
java.beans.PropertyChangeSupport theChgSupport,
int theId,
java.lang.String theName)
- Create a new fuzzy variable.
- Parameters:
theType
- theId
- theName
-
FsVar
public FsVar()
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 com.ibm.able.beans.fuzzy.FsLhs
getType
public int getType()
- Retrieve the type of this object.
- Returns:
- An Fs.
- Overrides:
- getType in class com.ibm.able.beans.fuzzy.FsLhs
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 com.ibm.able.beans.fuzzy.FsLhs
xmlCRdString
public java.lang.String xmlCRdString()
- Return a formal XML string.
- Returns:
- A String describing the object in XML.
- Overrides:
- xmlCRdString in class com.ibm.able.beans.fuzzy.FsLhs
xmlCWrString
public abstract java.lang.String xmlCWrString()
- Return a formal XML string.
- Returns:
- A String describing the object in XML.
- Overrides:
- xmlCWrString in class com.ibm.able.beans.fuzzy.FsLhs
getTypeAsString
public java.lang.String getTypeAsString()
getId
public int getId()
getName
public java.lang.String getName()
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.FsLhs
Copyright
public static java.lang.String Copyright()
- Determine the copyright of this class.
- Returns:
- A String containing this class's copyright statement.
ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'