|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.ai.nn.network.Connection
Class declaration
Constructor Summary | |
Connection()
Default constructor, needed by Castor. |
|
Connection(Neuron fromNeuron,
Neuron toNeuron)
creates a connection object based on the two neurons passed in as arguments |
Method Summary | |
Neuron |
getFromNeuron()
Get the from neuron |
long |
getToLayerID()
Returns the ID of the ToNeuron's layer |
Neuron |
getToNeuron()
Get the to neuron. |
long |
getToNeuronID()
Returns the ID of the ToNeuron |
Weight |
getWeight()
Get the weight associated with this connection. |
void |
setFromNeuron(Neuron fromNeuron)
Set the from neuron |
void |
setToLayerID(long toLayerID)
Set's the (temporary) ID of the ToNeuron's Layer Used by the umarshalling process |
void |
setToNeuron(Neuron toNeuron)
Set the to neuron. |
void |
setToNeuronID(long toNeuronID)
Set's the (temporary) ID of the ToNeuron Used by the umarshalling process |
void |
setWeight(Weight weight)
Set the weight to be associated with this connection. |
java.lang.String |
toString()
A string representation of this connection object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Connection()
public Connection(Neuron fromNeuron, Neuron toNeuron)
fromNeuron
- toNeuron
- Method Detail |
public void setFromNeuron(Neuron fromNeuron)
fromNeuron
- The neuron which the connection is to come from.public Neuron getFromNeuron()
public void setToNeuron(Neuron toNeuron)
toNeuron
- The neuron which the connection is to go to.public Neuron getToNeuron()
public void setWeight(Weight weight)
weight
- The weight to associate with this connection.public Weight getWeight()
public java.lang.String toString()
toString
in class java.lang.Object
public long getToNeuronID()
public long getToLayerID()
public void setToNeuronID(long toNeuronID)
public void setToLayerID(long toLayerID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |