List of usage examples for weka.experiment RemoteExperimentEvent RemoteExperimentEvent
public RemoteExperimentEvent(boolean status, boolean log, boolean finished, String message)
From source file:milk.experiment.MIRemoteExperiment.java
License:Open Source License
/** * Inform all listeners of progress/*from w w w .j ava 2s.c om*/ * @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); } }