|
||||||||||
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.AbstractDrawable | +--net.openai.ai.nn.gui.data.GUIConnection
Implements the visual apearance of interconnected neurons. This class encapsulates a neuralnet-connection and extends it with properties and methods needed by the GUI.
Field Summary |
Fields inherited from class net.openai.ai.nn.gui.data.AbstractDrawable |
bSelected, shape |
Constructor Summary | |
GUIConnection(Connection mConnection,
GUINeuron fromNeuron,
GUINeuron toNeuron)
Build up a new connection between two GUINerons. |
Method Summary | |
GUINeuron |
getFromNeuron()
Returns the 'fromNeuron' of this connection |
GUINeuron |
getToNeuron()
Returns the 'toNeuron' of this connection |
double |
getWeight()
Returns the weight-value of the encapsulatet neuralnet-connection |
void |
handleWeightChangeEvent(WeightChangeEvent event)
Method declaration |
void |
paint(java.awt.Graphics g,
double zoom)
Draw the connection into the panel. |
void |
reconnect()
This method can rebuild a broken connection, as long as the fromNeuron is ok. |
void |
setWeight(double val)
Sets the weight of the encapsulated neuralnet-connection to a new value |
Methods inherited from class net.openai.ai.nn.gui.data.AbstractDrawable |
contains, getSelected, setSelected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GUIConnection(Connection mConnection, GUINeuron fromNeuron, GUINeuron toNeuron)
mConnection
- Real connection from the neuralnetfromNeuron
- Ref to the first GUINeuron ObjecttoNeuron
- Ref to the second GUINeuron Objectconnection
Method Detail |
public void reconnect()
public GUINeuron getToNeuron()
public GUINeuron getFromNeuron()
public double getWeight()
public void setWeight(double val)
public void paint(java.awt.Graphics g, double zoom)
paint
in interface Drawable
public void handleWeightChangeEvent(WeightChangeEvent event)
handleWeightChangeEvent
in interface WeightChangeEventListener
event
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |