|
||||||||||
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.GUINetwork
Visual representation of a neural-network structure. This class encapsulates a neuralnet and extends it with properties and methods needed by the GUI.
Constructor Summary | |
GUINetwork()
Creates a empty GUINetwork |
|
GUINetwork(Network network)
Creates a GUINetwork out of a Network-instance |
Method Summary | |
GUILayer |
addLayer(Network network,
Layer layer)
Adds a new layer to the datamodel and returns it |
GUIConnection |
checkConnectionPosition(int posX,
int posY)
Iterates through all connections of the network and returns the first connection at the specified position. |
GUINeuron |
checkNeuronPosition(int posX,
int posY)
Iterates through all neurons of the network and returns the first neuron at the specified position. |
void |
clearSelection()
Resets the 'selected' flag of all neurons and connections |
java.util.Vector |
getAllConnections()
Builds a vector with all connections of the network |
java.util.Vector |
getAllNeurons()
Builds a vector with all neurons of the network |
GUILayer |
getLayer(long lID)
Returns a specific layer |
Network |
getNetwork()
Method declaration |
GUIConnection |
getSelectedConnection()
Returns the first GUIConnection thats selected |
GUILayer |
getSelectedLayer()
Returns the first GUILayer thats selected |
java.util.Vector |
getSelectedNeurons()
Returns a vector all selected neurons within the network |
void |
handleLayerEvent(LayerEvent event)
Method declaration |
void |
selectNeurons(java.awt.Rectangle r)
Selects all Neurons within an Rectangle-area |
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 |
getID, getParent, getSibbling, setID, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GUINetwork()
public GUINetwork(Network network)
Method Detail |
public GUILayer addLayer(Network network, Layer layer)
public GUILayer getLayer(long lID)
lID
- ID of the layer 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 GUIConnection checkConnectionPosition(int posX, int posY)
posX
- X-coordinate of the screenpositionposY
- Y-coordinate of the screenposition
public void clearSelection()
public GUIConnection getSelectedConnection()
public GUILayer getSelectedLayer()
public final java.util.Vector getAllNeurons()
public final java.util.Vector getAllConnections()
public void selectNeurons(java.awt.Rectangle r)
public Network getNetwork()
public void handleLayerEvent(LayerEvent event)
handleLayerEvent
in interface LayerEventListener
event
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |