|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Implementations of this interface can register with the net to receive notification whenever the net starts or ends a cycle (also called "netstep") Normally, you won't want to implement both methods, as it is probably only important to you to do one calculation per step. Anyway, there is a difference in the inner states of the net between the two points of time: The time between the calls to endCycle() and startCycle() should be nearly zero in realtime, but the netstep has increased by one during that time. When startCycle() is called, activation is still in the slots. When endCycle() is called, the new activation of the gates has been calculated and is about to be propagated along the links.
| Method Summary | |
void |
endCycle(long netStep)
This method will be called when the current cycle is about to end and all gates have been just calculated. |
void |
startCycle(long netStep)
This method will be called when a new cycle (aka "netstep") just started. |
| Method Detail |
public void startCycle(long netStep)
netStep - the current netstep.public void endCycle(long netStep)
netStep - the netstep just about to end.
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||