public class TskVariableType extends KnowledgeBaseVariable
Java class for tskVariableType complex type.
<complexType name="tskVariableType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="tskTerm" type="{http://www.ieee1855.org}tskTermType" 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="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="output" /> <attribute name="combination" type="{http://www.ieee1855.org}combinationType" default="WA" /> <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 |
---|
TskVariableType() |
TskVariableType(java.lang.String name)
Constructor with required elements
|
Modifier and Type | Method and Description |
---|---|
void |
addEvaluation(float wi,
float zi) |
void |
addInputVariable(FuzzyVariable fv) |
void |
addTskTerm(java.lang.String name,
int order,
float[] coeff) |
void |
addTskTerm(TskTermType t) |
KnowledgeBaseVariable |
copy()
Returns a new instance of the variable
|
java.lang.String |
getCombination()
Gets the value of the property combination.
|
float |
getDefaultValue()
Gets the value of the property defaultValue.
|
java.util.List<FuzzyVariable> |
getInputVariables() |
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<TskTermType> |
getTerms()
Gets the value of the tskTerm 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 |
setCombination(java.lang.String value)
Sets the value of the property combination.
|
void |
setDefaultValue(java.lang.Float value)
Sets the value of the property defaultValue.
|
void |
setInputVariables(java.util.List<KnowledgeBaseVariable> kbvs) |
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.
|
isInput
public TskVariableType()
public TskVariableType(java.lang.String name)
name
- domainLeft
- domainRight
- public java.util.List<TskTermType> getTerms()
Objects of the following type(s) are allowed in the list
TskTermType
getTerms
in class KnowledgeBaseVariable
public void addTskTerm(TskTermType t)
public void addTskTerm(java.lang.String name, int order, float[] coeff)
name
- order
- coeff
- 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 java.lang.String getType()
String
public void setType(java.lang.String value)
value
- allowed object is
String
public java.lang.String getCombination()
String
public void setCombination(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 boolean isOutput()
KnowledgeBaseVariable
isOutput
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 java.lang.String toString()
KnowledgeBaseVariable
toString
in class KnowledgeBaseVariable
public void addEvaluation(float wi, float zi)
public void addInputVariable(FuzzyVariable fv)
public java.util.List<FuzzyVariable> getInputVariables()
public void setInputVariables(java.util.List<KnowledgeBaseVariable> kbvs)
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