File tree 2 files changed +20
-3
lines changed
src/main/java/network/aika
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,21 @@ private boolean checkMaxPhaseReached(Phase maxPhase) {
177
177
return maxPhase .compareTo (queue .firstEntry ().getValue ().getPhase ()) < 0 ;
178
178
}
179
179
180
+
181
+ /**
182
+ * After the switch into final mode, the initial assumption, that the positive feedback synapses are fully
183
+ * active is reverted and the actual evaluation of the feedback synapses takes place.
184
+ */
180
185
public void processFinalMode () {
181
186
activationsById .values ()
182
187
.forEach (act -> act .setFinal ());
183
188
184
189
process (PROCESSING );
185
190
}
186
191
192
+ /**
193
+ * The postprocessing steps such as counting, cleanup or save are executed.
194
+ */
187
195
public void postProcessing () {
188
196
process (POST_PROCESSING );
189
197
}
@@ -227,9 +235,6 @@ public int getNumberOfActivations() {
227
235
public String toString () {
228
236
StringBuilder sb = new StringBuilder ();
229
237
for (Activation act : activationsById .values ()) {
230
- /* if(!act.isActive())
231
- continue;
232
- */
233
238
sb .append (act .toString ());
234
239
sb .append ("\n " );
235
240
}
Original file line number Diff line number Diff line change
1
+ package network .aika .fields ;
2
+
3
+ /**
4
+ * This package contains an implementation of an event driven fields and functions concept. Each field and function can
5
+ * either act as an event source or an event sink and can propagate changes to its value to all the registered listeners.
6
+ * The package recognizes the close relation between differential algebra and event-driven programming. For example to
7
+ * implement the conjunction of two events requires the implementation of a rule like: If A was triggered the check
8
+ * if B is already true and if B is triggered than check if A is already true. This is essentially the product rule.
9
+ * Implementing this rule by hand without this more explicit and descriptive field concept requires the programmer to
10
+ * take care of these two cases A and B by hand which are usually scattered across the entire code base, easily leading
11
+ * to unwanted bugs.
12
+ */
You can’t perform that action at this time.
0 commit comments