Example usage for weka.experiment RemoteExperimentListener remoteExperimentStatus

List of usage examples for weka.experiment RemoteExperimentListener remoteExperimentStatus

Introduction

In this page you can find the example usage for weka.experiment RemoteExperimentListener remoteExperimentStatus.

Prototype

void remoteExperimentStatus(RemoteExperimentEvent e);

Source Link

Document

Called when progress has been made in a remote experiment

Usage

From source file:milk.experiment.MIRemoteExperiment.java

License:Open Source License

/**
   * Inform all listeners of progress/*from  www  . j a  v a2 s. com*/
   * @param status true if this is a status type of message
   * @param log true if this is a log type of message
   * @param finished true if the remote experiment has finished
   * @param message the message.
   */
  private synchronized void notifyListeners(boolean status, boolean log, boolean finished, String message) {
      if (m_listeners.size() > 0) {
          for (int i = 0; i < m_listeners.size(); i++) {
              RemoteExperimentListener r = (RemoteExperimentListener) (m_listeners.elementAt(i));
              r.remoteExperimentStatus(new RemoteExperimentEvent(status, log, finished, message));
          }
      } else {
          System.err.println(message);
      }
  }