File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
src/main/java/network/aika Expand file tree Collapse file tree 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) {
177177 return maxPhase .compareTo (queue .firstEntry ().getValue ().getPhase ()) < 0 ;
178178 }
179179
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+ */
180185 public void processFinalMode () {
181186 activationsById .values ()
182187 .forEach (act -> act .setFinal ());
183188
184189 process (PROCESSING );
185190 }
186191
192+ /**
193+ * The postprocessing steps such as counting, cleanup or save are executed.
194+ */
187195 public void postProcessing () {
188196 process (POST_PROCESSING );
189197 }
@@ -227,9 +235,6 @@ public int getNumberOfActivations() {
227235 public String toString () {
228236 StringBuilder sb = new StringBuilder ();
229237 for (Activation act : activationsById .values ()) {
230- /* if(!act.isActive())
231- continue;
232- */
233238 sb .append (act .toString ());
234239 sb .append ("\n " );
235240 }
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