/** * Executes the check point logic, handles the return of the serialized byte array * by delegating the call to {@link rx.Observer#onNext(byte[])} of all the currently queued * Observers; then clears the list of Observers. */ private void DoCheckPoint() { byte[] bytes = ParentNetwork.InternalCheckPointOp(); if (bytes != null) { LOGGER.Debug("Layer [" + GetName() + "] checkPointed file: " + Persistence.Get().GetLastCheckPointFileName()); } else { LOGGER.Debug("Layer [" + GetName() + "] checkPoint F A I L E D at: " + (new DateTime())); } foreach (IObserver <byte[]> o in _checkPointOpObservers) { o.OnNext(bytes); o.OnCompleted(); } _checkPointOpObservers.Clear(); }
public virtual void processInput() { ParentNetwork.calculate(); }