public class FuzzyVariableType extends FuzzyVariable
Java class for the fuzzyVariableType complex type from IEEE Standard 1855.
<complexType name="fuzzyVariableType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="fuzzyTerm" type="{http://www.ieee1855.org}fuzzyTermType" maxOccurs="unbounded"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="domainleft" use="required" type="{http://www.w3.org/2001/XMLSchema}float" /> <attribute name="domainright" use="required" type="{http://www.w3.org/2001/XMLSchema}float" /> <attribute name="type" type="{http://www.ieee1855.org}typeType" default="input" /> <attribute name="accumulation" type="{http://www.ieee1855.org}accumulationType" default="MAX" /> <attribute name="defuzzifier" type="{http://www.ieee1855.org}defuzzifierType" default="COG" /> <attribute name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}float" default="0" /> <attribute name="networkAddress" type="{http://www.ieee1855.org}networkAddressType" default="127.0.0.1" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
FuzzyVariableType()
Default constructor
|
FuzzyVariableType(java.lang.String name,
float domainLeft,
float domainRight)
Constructor with required elements
|
Modifier and Type | Method and Description |
---|---|
float |
accumulation(float x,
float y)
- MAX for implementing the connector or with the maximum as defined from Equation (A.21);
- PROBOR for implementing the connector or with the probabilistic sum as defined from Equation (A.22);
- BSUM for implementing the operator or with the bounded sum as defined from Equation (A.23);
- DRS for implementing the operator or with the drastic sum as defined from Equation (A.24);
- ESUM for implementing the operator or with the Einstein sum as defined from Equation (A.25);
- HSUM for implementing the operator or with the Hamacher sum as defined from Equation (A.26);
- NILMAX for implementing the operator or with the Nilpotent maximum as defined from Equation (A.27);
- custom_\S* for a custom method for implementing the connector or.
|
void |
addFuzzyTerm(FuzzyTermType ft)
Add a FuzzyTermType
|
void |
addFuzzyTerm(java.lang.String name,
int type,
float[] param) |
KnowledgeBaseVariable |
copy()
Returns a new instance of the variable
|
java.lang.String |
getAccumulation()
Gets the value of the property accumulation.
|
float |
getDefaultValue()
Gets the value of the property defaultValue.
|
Defuzzifier |
getDefuzzifier()
- MOM for the defuzzifier method named mean of maxima as defined from Equation (A.42);
- LM for the defuzzifier method named leftmost maximum as defined from Equation (A.43);
- RM for the defuzzifier method named rightmost maximum as defined from Equation (A.44);
- COG for the defuzzifier method named center of gravity as defined from Equation (A.45);
- COA for the defuzzifier method named center of area as defined from Equation (A.46);
- custom_\S* for a custom defuzzifier method.
|
java.lang.String |
getDefuzzifierName()
Gets the value of the property defuzzifier
|
float |
getDomainleft()
Gets the value of the property domainleft.
|
float |
getDomainright()
Gets the value of the property domainright.
|
FuzzyTermType |
getFuzzyTerm(int i)
Returns the i-th FuzzyTerm
|
java.lang.String |
getName()
Gets the value of the property name.
|
java.lang.String |
getNetworkAddress()
Gets the value of the property networkAddress.
|
java.lang.String |
getScale()
Gets the value of the property scale.
|
Term |
getTerm(java.lang.String name)
Gets a Term instance by name or null otherwise
|
java.util.List<FuzzyTermType> |
getTerms()
Gets the value of the fuzzyTerm property.
|
java.lang.String |
getType()
Gets the value of the property type.
|
float |
getValue()
If the variable is input type, return value setter.
|
boolean |
hasTerm(java.lang.String name)
Returns true if the variable contains a Term with the name as param
|
boolean |
isOutput()
Tests if the variable is output type
|
void |
reset()
Resets the value of the variable
|
void |
setAccumulation(java.lang.String value)
Sets the value of the property accumulation.
|
void |
setDefaultValue(java.lang.Float value)
Sets the value of the property defaultValue.
|
void |
setDefuzzifierName(java.lang.String value)
Sets the value of the property defuzzifier
|
void |
setDomainleft(float value)
Sets the value of the property domainleft.
|
void |
setDomainright(float value)
Sets the value of the property domainright.
|
void |
setName(java.lang.String value)
Sets the value of the property name.
|
void |
setNetworkAddress(java.lang.String value)
Sets the value of the property networkAddress.
|
void |
setScale(java.lang.String value)
Sets the value of the property scale.
|
void |
setType(java.lang.String value)
Sets the value of the property type.
|
void |
setValue(float x)
Sets the value of the variable
|
java.lang.String |
toString()
Returns a String object representing this variable.
|
defuzzify, setDefuzzifier
isInput
public FuzzyVariableType()
public FuzzyVariableType(java.lang.String name, float domainLeft, float domainRight)
name
- domainLeft
- domainRight
- public java.util.List<FuzzyTermType> getTerms()
Objects of the following type(s) are allowed in the list
FuzzyTermType
getTerms
in class KnowledgeBaseVariable
public FuzzyTermType getFuzzyTerm(int i)
i
- public void addFuzzyTerm(FuzzyTermType ft)
ft
- FuzzyTermType
public void addFuzzyTerm(java.lang.String name, int type, float[] param)
name
- type
- param
- public java.lang.String getName()
getName
in class KnowledgeBaseVariable
String
public void setName(java.lang.String value)
value
- allowed object is
String
public java.lang.String getScale()
String
public void setScale(java.lang.String value)
value
- allowed object is
String
public float getDomainleft()
public void setDomainleft(float value)
public float getDomainright()
public void setDomainright(float value)
public java.lang.String getType()
String
public void setType(java.lang.String value)
value
- allowed object is
String
public java.lang.String getAccumulation()
String
public void setAccumulation(java.lang.String value)
value
- allowed object is
String
public java.lang.String getDefuzzifierName()
String
public void setDefuzzifierName(java.lang.String value)
value
- allowed object is
String
public float getDefaultValue()
Float
public void setDefaultValue(java.lang.Float value)
value
- allowed object is
Float
public java.lang.String getNetworkAddress()
String
public void setNetworkAddress(java.lang.String value)
value
- allowed object is
String
public java.lang.String toString()
KnowledgeBaseVariable
toString
in class KnowledgeBaseVariable
public float getValue()
getValue
in class KnowledgeBaseVariable
public void setValue(float x)
KnowledgeBaseVariable
setValue
in class KnowledgeBaseVariable
x
- the value of the variablepublic float accumulation(float x, float y)
public Defuzzifier getDefuzzifier()
public boolean isOutput()
KnowledgeBaseVariable
isOutput
in class KnowledgeBaseVariable
public void reset()
KnowledgeBaseVariable
reset
in class KnowledgeBaseVariable
public boolean hasTerm(java.lang.String name)
KnowledgeBaseVariable
hasTerm
in class KnowledgeBaseVariable
name
- the name of the Termpublic KnowledgeBaseVariable copy()
KnowledgeBaseVariable
copy
in class KnowledgeBaseVariable
public Term getTerm(java.lang.String name)
KnowledgeBaseVariable
getTerm
in class KnowledgeBaseVariable
name
- term name