Package network.aika.neuron.relation
Class Relation.Builder
- java.lang.Object
-
- network.aika.neuron.relation.Relation.Builder
-
- All Implemented Interfaces:
Neuron.Builder
- Enclosing class:
- Relation
public static class Relation.Builder extends Object implements Neuron.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(Neuron n)intgetFrom()RelationgetRelation()intgetTo()voidregisterSynapseIds(Neuron n)Relation.BuildersetFrom(int synapseId)This parameter allows to specify whether the relations connected to thy synapse refer to the activation of the input neuron (that's the default) or if the should refer to one of the input activations of the input neuron.Relation.BuildersetRelation(Relation rel)Relation.BuildersetTo(int synapseId)
-
-
-
Field Detail
-
from
protected int from
-
to
protected int to
-
relation
protected Relation relation
-
-
Method Detail
-
getFrom
public int getFrom()
-
getTo
public int getTo()
-
setFrom
public Relation.Builder setFrom(int synapseId)
This parameter allows to specify whether the relations connected to thy synapse refer to the activation of the input neuron (that's the default) or if the should refer to one of the input activations of the input neuron. In this case the synapseId of the input neuron needs to be specified which leads to the desired input activation.- Parameters:
synapseId-- Returns:
-
setTo
public Relation.Builder setTo(int synapseId)
-
setRelation
public Relation.Builder setRelation(Relation rel)
-
getRelation
public Relation getRelation()
-
connect
public void connect(Neuron n)
-
registerSynapseIds
public void registerSynapseIds(Neuron n)
- Specified by:
registerSynapseIdsin interfaceNeuron.Builder
-
-