|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rule.FuzzyRuleVariable
The FuzzyRuleVariable
class is a abstract class that defines
the attributes and methods for a fuzzy rule variable.
Field Summary | |
protected int |
id
|
protected java.lang.String |
name
|
(package private) static int |
nextId
|
protected FuzzyRuleBase |
rb
|
protected int |
type
|
Constructor Summary | |
protected |
FuzzyRuleVariable(int type,
FuzzyRuleBase rb,
java.lang.String name)
Creates a new fuzzy variable with the given type, rule base, and name. |
Method Summary | |
int |
getId()
Retrieves the id of the variable. |
java.lang.String |
getName()
Retrieves the variable name. |
abstract double |
getNumericValue()
Retrieves the value of this object as a numeric value. |
int |
getReferent()
Retrieves the id of the variable to which this object refers. |
(package private) FuzzyRuleBase |
getRuleBase()
Retrieve the rule base this variable is a part of. |
int |
getType()
Retrieves the type of this object. |
java.lang.String |
getTypeAsString()
Retrives the variable type as a string. |
(package private) abstract java.lang.String |
getValueString()
Retrieves the value string of this variable. |
(package private) abstract void |
reset()
Resets the variable. |
abstract void |
setFuzzyValue(FuzzySet newValue)
Sets the value of this object from a fuzzy value. |
abstract void |
setValue(FuzzySet newValue)
Sets the value of this object from a FuzzySet object. |
(package private) abstract void |
setValueString(java.lang.String newValue)
Sets the value string of the variable. |
java.lang.String |
toString()
Retrieve a string describing the contents of the object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static int nextId
protected int type
protected int id
protected java.lang.String name
protected FuzzyRuleBase rb
Constructor Detail |
protected FuzzyRuleVariable(int type, FuzzyRuleBase rb, java.lang.String name)
type
- the integer that represent the type of the variablerb
- the FuzzyRuleBase object this variable is a part ofname
- the String object that contains the name of the variableMethod Detail |
public int getReferent()
public int getType()
abstract void setValueString(java.lang.String newValue)
newValue
- the String object that is the value of this variableabstract java.lang.String getValueString()
abstract void reset()
public java.lang.String getTypeAsString()
public int getId()
public java.lang.String getName()
FuzzyRuleBase getRuleBase()
public abstract void setFuzzyValue(FuzzySet newValue)
newValue
- the FuzzySet object that this variable is set topublic abstract void setValue(FuzzySet newValue)
newValue
- the FuzzySet object that contains the new valuepublic abstract double getNumericValue()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |