public class AggregatedFuzzyVariableType extends FuzzyVariable
Java class for aggregatedFuzzyVariableType complex type.
Represents an input fuzzy variable that can be used to aggregate two or more fuzzy variables related to a given FLS
<complexType name="aggregatedFuzzyVariableType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="aggregatedFuzzyTerm" type="{http://www.ieee1855.org}aggregatedFuzzyTermType" maxOccurs="unbounded"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="type" type="{http://www.ieee1855.org}typeType" fixed="input" /> <attribute name="networkAddress" type="{http://www.ieee1855.org}networkAddressType" default="127.0.0.1" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
AggregatedFuzzyVariableType()
Default constructor
|
AggregatedFuzzyVariableType(java.lang.String name)
Constructor with required parameters
|
AggregatedFuzzyVariableType(java.lang.String name,
java.lang.String type)
Constructor with required parameters
|
Modifier and Type | Method and Description |
---|---|
void |
addAggregatedFuzzyTerm(AggregatedFuzzyTermType aft)
Add a AggregatedFuzzyTermType
|
KnowledgeBaseVariable |
copy()
Returns a new instance of the variable
|
AggregatedFuzzyTermType |
getAggregatedFuzzyTerm(int i)
Returns the i-th AggregatedFuzzyTermType
|
java.lang.String |
getName()
Gets the value of the property name.
|
java.lang.String |
getNetworkAddress()
Gets the value of the property networkAddress.
|
Term |
getTerm(java.lang.String name)
Gets a Term instance by name or null otherwise
|
java.util.List<AggregatedFuzzyTermType> |
getTerms()
Gets the value of the aggregatedFuzzyTerm property.
|
java.lang.String |
getType()
Gets the value of the property type.
|
float |
getValue()
Gets the value of the variable
|
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 |
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 |
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 AggregatedFuzzyVariableType()
public AggregatedFuzzyVariableType(java.lang.String name)
name
- is used to define a unique name for the aggregated fuzzy variablepublic AggregatedFuzzyVariableType(java.lang.String name, java.lang.String type)
name
- is used to define a unique name for the aggregated fuzzy variabletype
- is used to define the position of the aggregated fuzzy variable into rule (consequent part or antecedent part). Output or inputpublic java.util.List<AggregatedFuzzyTermType> getTerms()
Objects of the following type(s) are allowed in the list
AggregatedFuzzyTermType
getTerms
in class KnowledgeBaseVariable
public AggregatedFuzzyTermType getAggregatedFuzzyTerm(int i)
i
- public void addAggregatedFuzzyTerm(AggregatedFuzzyTermType aft)
aft
- AggregatedFuzzyTermType
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 getType()
String
public void setType(java.lang.String value)
value
- allowed object is
String
public java.lang.String getNetworkAddress()
String
public void setNetworkAddress(java.lang.String value)
value
- allowed object is
String
public boolean isOutput()
KnowledgeBaseVariable
isOutput
in class KnowledgeBaseVariable
public void reset()
KnowledgeBaseVariable
reset
in class KnowledgeBaseVariable
public float getValue()
KnowledgeBaseVariable
getValue
in class KnowledgeBaseVariable
public void setValue(float x)
KnowledgeBaseVariable
setValue
in class KnowledgeBaseVariable
x
- the value of the variablepublic 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 namepublic java.lang.String toString()
KnowledgeBaseVariable
toString
in class KnowledgeBaseVariable