public class AnYaDataCloudType extends KnowledgeBaseVariable
Java class for anYaDataCloudType complex type.
<complexType name="anYaDataCloudType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="datum" type="{http://www.w3.org/2001/XMLSchema}double" maxOccurs="unbounded"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="networkAddress" type="{http://www.ieee1855.org}networkAddressType" default="127.0.0.1" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
AnYaDataCloudType()
Default constructor
|
AnYaDataCloudType(java.lang.String name)
Constructor using the name
|
AnYaDataCloudType(java.lang.String name,
java.util.List<java.lang.Double> terms)
Constructor using the name
|
Modifier and Type | Method and Description |
---|---|
KnowledgeBaseVariable |
copy()
Returns a new instance of the variable
|
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<java.lang.Double> |
getTerms()
Gets the value of the datum property.
|
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 |
setTerms(java.util.List<java.lang.Double> datum) |
void |
setValue(float x)
Sets the value of the variable
|
java.lang.String |
toString()
Returns a String object representing this variable.
|
isInput
public AnYaDataCloudType()
public AnYaDataCloudType(java.lang.String name)
name
- public AnYaDataCloudType(java.lang.String name, java.util.List<java.lang.Double> terms)
name
- public java.util.List<java.lang.Double> getTerms()
Objects of the following type(s) are allowed in the list
Double
getTerms
in class KnowledgeBaseVariable
public void setTerms(java.util.List<java.lang.Double> datum)
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 getNetworkAddress()
String
public void setNetworkAddress(java.lang.String value)
value
- allowed object is
String
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 isOutput()
KnowledgeBaseVariable
isOutput
in class KnowledgeBaseVariable
public java.lang.String toString()
KnowledgeBaseVariable
toString
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