net.openai.ai.nn.gui.data
Interface GUINeuron

All Superinterfaces:
DataObject, Drawable
All Known Implementing Classes:
AbstractGUINeuron

public interface GUINeuron
extends Drawable, DataObject

Defines the common interface for a displayable Neuron. This interface extends the neuralnet-neuron with GUI-Properties and methods

Author:
Thomas Weber

Method Summary
 void addConnection(Connection connection)
          Constructs a new GUIConnection and adds it
 java.util.Vector getConnections()
          Returns a vector containing all GUIConnections of this neuron
 Neuron getNeuron()
          Returns the encapsulated neuron
 int getType()
          Returns the type of the neurons
 int getX()
          Returns the actual X-position of the neuron
 int getY()
          Returns the actual Y-position of the neuron
 void removeConnection(Connection connection)
          Removes a GUIConnection (based on a connection-instance)
 void setX(int x)
          Sets the neurons X-position
 void setY(int y)
          Sets the neurons X-position
 
Methods inherited from interface net.openai.ai.nn.gui.data.Drawable
contains, getSelected, paint, setSelected
 
Methods inherited from interface net.openai.ai.nn.gui.data.DataObject
getID, getParent, getSibbling, setID, setParent
 

Method Detail

getX

public int getX()
Returns the actual X-position of the neuron


setX

public void setX(int x)
Sets the neurons X-position


getY

public int getY()
Returns the actual Y-position of the neuron


setY

public void setY(int y)
Sets the neurons X-position


getType

public int getType()
Returns the type of the neurons


getNeuron

public Neuron getNeuron()
Returns the encapsulated neuron


addConnection

public void addConnection(Connection connection)
Constructs a new GUIConnection and adds it


removeConnection

public void removeConnection(Connection connection)
Removes a GUIConnection (based on a connection-instance)


getConnections

public java.util.Vector getConnections()
Returns a vector containing all GUIConnections of this neuron



Copyright - 2001 OpenAI Labs. All Rights Reserved.