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

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

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

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