File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
src/main/java/network/aika Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ private void init() {
6969 }
7070 }
7171
72+ public void addModelLabel (String modelLabel ) {
73+ super .addModelLabel (modelLabel );
74+
75+ parents .forEach (e ->
76+ e .rv .parent .get ().addModelLabel (modelLabel )
77+ );
78+ }
7279
7380 @ Override
7481 protected void propagate (AndActivation act ) {
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ public OrNode(Model m) {
6565 super (m , -1 ); // Or-node activations always need to be processed first!
6666 }
6767
68+ public void addModelLabel (String modelLabel ) {
69+ super .addModelLabel (modelLabel );
70+
71+ andParents .forEach (e ->
72+ e .parent .get ().addModelLabel (modelLabel )
73+ );
74+ }
75+
6876
6977 @ Override
7078 public RefValue expand (int threadId , Document doc , Refinement ref ) {
Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ public Collection<Synapse> getInputSynapses() {
180180 return inputSynapses .values ();
181181 }
182182
183+ public void addModelLabel (String modelLabel ) {
184+ super .addModelLabel (modelLabel );
185+
186+ inputNode .get ().addModelLabel (modelLabel );
187+ }
183188
184189 public Synapse getMaxInputSynapse (Synapse .State state ) {
185190 if (type != EXCITATORY ) {
You can’t perform that action at this time.
0 commit comments