Skip to content

Commit c1da015

Browse files
author
Lukas Molzberger
committed
added synapse id getter to builder classes
1 parent 16d8f2c commit c1da015

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.aika-software</groupId>
66
<artifactId>aika</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.4.7</version>
8+
<version>1.4.9-SNAPSHOT</version>
99
<name>aika</name>
1010
<url>http://aika.network</url>
1111
<description>An artificial intelligence for knowledge acquisition</description>

src/main/java/network/aika/neuron/Synapse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ public static class Builder implements Neuron.Builder {
487487
private Integer synapseId;
488488

489489

490+
public Integer getSynapseId() {
491+
return synapseId;
492+
}
493+
490494
/**
491495
* The property <code>recurrent</code> specifies if input is a recurrent feedback link. Recurrent
492496
* feedback links can be either negative or positive depending on the weight of the synapse. Recurrent feedback links

src/main/java/network/aika/neuron/relation/Relation.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ public static class Builder implements Neuron.Builder {
217217
protected Relation relation;
218218

219219

220+
public int getFrom() {
221+
return from;
222+
}
223+
224+
public int getTo() {
225+
return to;
226+
}
227+
220228
/**
221229
* This parameter allows to specify whether the relations connected to thy synapse refer to the activation of the
222230
* input neuron (that's the default) or if the should refer to one of the input activations of the input neuron.

0 commit comments

Comments
 (0)