|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.ai.nn.gui.data.AbstractDataObject | +--net.openai.ai.nn.gui.data.AbstractGUINeuron
Implements the non-gui parts of the GUINeuron interface.
Field Summary | |
protected Neuron |
neuron
the encapsulated neuron that will be displayed |
protected boolean |
selected
selection state |
protected int |
type
Types 0 input 1 ouput 2 hidden -1 *shrugs* |
protected int |
x
actual x position on the screen |
protected int |
y
actual y position on the screen |
Constructor Summary | |
AbstractGUINeuron(Neuron mNeuron,
int x,
int y,
int mType)
Constructs a new GUINeuron. |
Method Summary | |
void |
addConnection(Connection connection)
Adds a new Connection |
java.util.Vector |
getConnections()
Returns all Connections to other Neurons |
java.lang.String |
getConnectionState()
|
long |
getID()
Returns the ID of the object |
long |
getLayerID()
|
Neuron |
getNeuron()
Returns the neuron. |
boolean |
getSelected()
Returns the 'selected' state |
int |
getType()
Gets back the type of the GUINeuron |
int |
getX()
Returns actual X-Position on the Screen |
int |
getY()
Returns actual X-Position on the Screen |
void |
removeConnection(Connection connection)
Remove a connection to another neuron |
void |
setID(long lID)
Sets the ID of the object |
void |
setSelected(boolean s)
Sets the selected - flag. |
void |
setX(int x)
Set Y-Position on the Screen |
void |
setY(int y)
Set X-Position on the Screen |
Methods inherited from class net.openai.ai.nn.gui.data.AbstractDataObject |
getParent, getSibbling, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.openai.ai.nn.gui.data.Drawable |
contains, paint |
Methods inherited from interface net.openai.ai.nn.gui.data.DataObject |
getParent, getSibbling, setParent |
Field Detail |
protected Neuron neuron
protected int x
protected int y
protected boolean selected
protected int type
Constructor Detail |
public AbstractGUINeuron(Neuron mNeuron, int x, int y, int mType)
mNeuron
- Neuron that will be encapsulated herex
- X-Position on the screeny
- Y-Position on the screenmType
- Type of the neuron, 0 input, 1 output, 2 hiddenMethod Detail |
public Neuron getNeuron()
getNeuron
in interface GUINeuron
public int getX()
getX
in interface GUINeuron
public void setX(int x)
setX
in interface GUINeuron
public int getY()
getY
in interface GUINeuron
public void setY(int y)
setY
in interface GUINeuron
public int getType()
getType
in interface GUINeuron
public void setSelected(boolean s)
setSelected
in interface Drawable
s
- true=selected, false=not selectedpublic boolean getSelected()
getSelected
in interface Drawable
public final java.util.Vector getConnections()
getConnections
in interface GUINeuron
public void addConnection(Connection connection)
addConnection
in interface GUINeuron
public void removeConnection(Connection connection)
removeConnection
in interface GUINeuron
public void setID(long lID)
setID
in interface DataObject
setID
in class AbstractDataObject
public long getID()
getID
in interface DataObject
getID
in class AbstractDataObject
public long getLayerID()
public java.lang.String getConnectionState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |