public class Neuron extends Entity implements HasExtensions, HasId
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}Con" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_2}NN-NEURON-ID" />
<attribute name="bias" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="width" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="altitude" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
altitude |
protected java.lang.Double |
bias |
protected java.util.List<Connection> |
connections |
protected java.util.List<Extension> |
extensions |
protected java.lang.String |
id |
protected java.lang.Double |
width |
| Constructor and Description |
|---|
Neuron() |
Neuron(java.lang.String id,
java.util.List<Connection> connections) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.Double |
getAltitude()
Gets the value of the altitude property.
|
java.lang.Double |
getBias()
Gets the value of the bias property.
|
java.util.List<Connection> |
getConnections()
Gets the value of the connections property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
java.lang.Double |
getWidth()
Gets the value of the width property.
|
boolean |
hasConnections() |
boolean |
hasExtensions() |
void |
setAltitude(java.lang.Double value)
Sets the value of the altitude property.
|
void |
setBias(java.lang.Double value)
Sets the value of the bias property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setWidth(java.lang.Double value)
Sets the value of the width property.
|
Neuron |
withAltitude(java.lang.Double value) |
Neuron |
withBias(java.lang.Double value) |
Neuron |
withConnections(java.util.Collection<Connection> values) |
Neuron |
withConnections(Connection... values) |
Neuron |
withExtensions(java.util.Collection<Extension> values) |
Neuron |
withExtensions(Extension... values) |
Neuron |
withId(java.lang.String value) |
Neuron |
withWidth(java.lang.Double value) |
getLocator, setLocatorprotected java.lang.String id
protected java.lang.Double bias
protected java.lang.Double width
protected java.lang.Double altitude
protected java.util.List<Extension> extensions
protected java.util.List<Connection> connections
public Neuron()
public Neuron(java.lang.String id,
java.util.List<Connection> connections)
public java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.Double getBias()
Doublepublic void setBias(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getWidth()
Doublepublic void setWidth(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getAltitude()
Doublepublic void setAltitude(java.lang.Double value)
value - allowed object is
Doublepublic java.util.List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic java.util.List<Connection> getConnections()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the connections property.
For example, to add a new item, do as follows:
getConnections().add(newItem);
Objects of the following type(s) are allowed in the list
Connection
public Neuron withId(java.lang.String value)
public Neuron withBias(java.lang.Double value)
public Neuron withWidth(java.lang.Double value)
public Neuron withAltitude(java.lang.Double value)
public Neuron withConnections(Connection... values)
public Neuron withConnections(java.util.Collection<Connection> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasConnections()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.