List of usage examples for weka.experiment RemoteExperimentListener remoteExperimentStatus
void remoteExperimentStatus(RemoteExperimentEvent e);
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); } }