|
||||||||||
| 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.DataContainer
|
+--net.openai.ai.nn.gui.data.GUILayer
Visual representation of a layer This class encapsulates a neuralnet-layer and extends it with properties and methods needed by the GUI.
| Constructor Summary | |
GUILayer()
Creates a new instance of GUILayer |
|
GUILayer(Network network,
Layer layer)
Constructor declaration |
|
| Method Summary | |
GUINeuron |
addNeuron(Network network,
Neuron neuron)
Adds a Neuron to this layer |
GUINeuron |
checkNeuronPosition(int posX,
int posY)
Iterates through all neurons of this layer and returns the first neuron at the specified position. |
long |
getID()
Returns the ID of the object |
Layer |
getLayer()
Method declaration |
java.lang.String |
getName()
Returns the name of this layer |
GUINeuron |
getNeuron(long lID)
Return a specific neuron |
boolean |
getSelected()
Method declaration |
java.util.Vector |
getSelectedNeurons()
Returns a vector all selected neurons within this layer |
void |
handleNeuronEvent(NeuronEvent event)
Method declaration |
void |
reconnect()
Rebuild all GUIConnections within this layer |
void |
setID(long lID)
Sets the ID of the object |
void |
setSelected(boolean s)
Sets the 'selected' flag of all neurons within this layer to a specific value |
| Methods inherited from class net.openai.ai.nn.gui.data.DataContainer |
get, iterator, put, remove, reorder, size |
| 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 |
| Constructor Detail |
public GUILayer()
public GUILayer(Network network,
Layer layer)
layer - | Method Detail |
public Layer getLayer()
public GUINeuron addNeuron(Network network,
Neuron neuron)
public GUINeuron getNeuron(long lID)
lID - ID of the neuron to be found
public GUINeuron checkNeuronPosition(int posX,
int posY)
posX - X-coordinate of the screenpositionposY - Y-coordinate of the screenposition
public java.util.Vector getSelectedNeurons()
public void setSelected(boolean s)
public boolean getSelected()
public java.lang.String getName()
public void handleNeuronEvent(NeuronEvent event)
handleNeuronEvent in interface NeuronEventListenerevent - public void setID(long lID)
setID in interface DataObjectsetID in class AbstractDataObjectpublic long getID()
getID in interface DataObjectgetID in class AbstractDataObjectpublic void reconnect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||