Example #1
0
  private void fireCurrentModel(long state, Model currentModel) {
    for (MarkovChainListener listener : listeners) {
      listener.currentState(state, currentModel);
    }

    for (MarkovChainDelegate delegate : delegates) {
      delegate.currentState(state);
    }
  }
Example #2
0
  private void fireFinished(long chainLength) {

    for (MarkovChainListener listener : listeners) {
      listener.finished(chainLength);
    }

    for (MarkovChainDelegate delegate : delegates) {
      delegate.finished(chainLength);
    }
  }
Example #3
0
 private void fireEndCurrentIteration(long state) {
   for (MarkovChainDelegate delegate : delegates) {
     delegate.currentStateEnd(state);
   }
 }