@@ -52,7 +52,7 @@ public class InputNode extends Node<InputNode, NodeActivation<InputNode>> {
5252 public Neuron inputNeuron ;
5353
5454 // Key: Output Neuron
55- Map <SynapseKey , Synapse > synapses ;
55+ public Map <SynapseKey , Synapse > synapses ;
5656
5757 public ReadWriteLock synapseLock = new ReadWriteLock ();
5858
@@ -121,9 +121,9 @@ public void addActivation(Document doc, NodeActivation inputAct) {
121121 }
122122
123123
124- public void propagateAddedActivation (Document doc , NodeActivation act , InterprNode removedConflict ) {
124+ public void propagateAddedActivation (Document doc , NodeActivation act ) {
125125 if (!key .isRecurrent ) {
126- apply (doc , act , removedConflict );
126+ apply (doc , act );
127127 }
128128 }
129129
@@ -145,30 +145,27 @@ Collection<Refinement> collectNodeAndRefinements(Refinement newRef) {
145145 /**
146146 * @param doc
147147 * @param act
148- * @param removedConflict This parameter contains a removed conflict if it is not null. In this case only expand activations that contain this removed conflict.
149148 */
150149 @ Override
151- void apply (Document doc , NodeActivation act , InterprNode removedConflict ) {
150+ void apply (Document doc , NodeActivation act ) {
152151
153152 lock .acquireReadLock ();
154153 if (andChildren != null ) {
155154 for (Map .Entry <Refinement , Provider <AndNode >> me : andChildren .entrySet ()) {
156155 Provider <InputNode > refInput = me .getKey ().input ;
157156 InputNode in = refInput .getIfNotSuspended ();
158157 if (in != null ) {
159- addNextLevelActivations (doc , in , me .getKey (), me .getValue (), act , removedConflict );
158+ addNextLevelActivations (doc , in , me .getKey (), me .getValue (), act );
160159 }
161160 }
162161 }
163162 lock .releaseReadLock ();
164163
165- if (removedConflict == null ) {
166- OrNode .processCandidate (doc , this , act , false );
167- }
164+ OrNode .processCandidate (doc , this , act , false );
168165 }
169166
170167
171- private static void addNextLevelActivations (Document doc , InputNode secondNode , Refinement ref , Provider <AndNode > pnlp , NodeActivation act , InterprNode removedConflict ) {
168+ private static void addNextLevelActivations (Document doc , InputNode secondNode , Refinement ref , Provider <AndNode > pnlp , NodeActivation act ) {
172169 ThreadState th = secondNode .getThreadState (doc .threadId , false );
173170 if (th == null || th .activations .isEmpty ()) return ;
174171
@@ -189,7 +186,7 @@ private static void addNextLevelActivations(Document doc, InputNode secondNode,
189186
190187 s .forEach (secondAct -> {
191188 InterprNode o = InterprNode .add (doc , true , ak .o , secondAct .key .o );
192- if (o != null && ( removedConflict == null || o . contains ( removedConflict , false )) ) {
189+ if (o != null ) {
193190 AndNode nlp = pnlp .get ();
194191 nlp .addActivation (doc ,
195192 new NodeActivation .Key (
@@ -247,8 +244,8 @@ public void discover(Document doc, NodeActivation<InputNode> act, DiscoveryConfi
247244 !in .key .isRecurrent &&
248245 !(key .startRangeOutput && in .key .startRangeOutput ) &&
249246 !(key .endRangeOutput && in .key .endRangeOutput ) &&
250- srm .compare (act .key .r .begin , secondAct .key .r .begin ) &&
251- erm .compare (act .key .r .end , secondAct .key .r .end )
247+ srm .compare (secondAct .key .r .begin , act .key .r .begin ) &&
248+ erm .compare (secondAct .key .r .end , act .key .r .end )
252249 ) {
253250 in .visitedDiscover = v ;
254251 AndNode nln = AndNode .createNextLevelNode (doc .m , doc .threadId , this , ref , discoveryConfig );
0 commit comments