MOA 12.03
Real Time Analytics for Data Streams
TaskMonitor.java
Go to the documentation of this file.
00001 /*
00002  *    TaskMonitor.java
00003  *    Copyright (C) 2007 University of Waikato, Hamilton, New Zealand
00004  *    @author Richard Kirkby (rkirkby@cs.waikato.ac.nz)
00005  *
00006  *    This program is free software; you can redistribute it and/or modify
00007  *    it under the terms of the GNU General Public License as published by
00008  *    the Free Software Foundation; either version 3 of the License, or
00009  *    (at your option) any later version.
00010  *
00011  *    This program is distributed in the hope that it will be useful,
00012  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *    GNU General Public License for more details.
00015  *
00016  *    You should have received a copy of the GNU General Public License
00017  *    along with this program. If not, see <http://www.gnu.org/licenses/>.
00018  *    
00019  */
00020 package moa.tasks;
00021 
00028 public interface TaskMonitor {
00029 
00036     public void setCurrentActivity(String activityDescription,
00037             double fracComplete);
00038 
00044     public void setCurrentActivityDescription(String activity);
00045 
00051     public void setCurrentActivityFractionComplete(double fracComplete);
00052 
00058     public boolean taskShouldAbort();
00059 
00065     public boolean resultPreviewRequested();
00066 
00072     public void setLatestResultPreview(Object latestPreview);
00073 
00079     public String getCurrentActivityDescription();
00080 
00086     public double getCurrentActivityFractionComplete();
00087 
00092     public void requestPause();
00093 
00098     public void requestResume();
00099 
00104     public void requestCancel();
00105 
00111     public boolean isPaused();
00112 
00118     public boolean isCancelled();
00119 
00124     public void requestResultPreview();
00125 
00131     public void requestResultPreview(ResultPreviewListener toInform);
00132 
00138     public Object getLatestResultPreview();
00139 }
 All Classes Namespaces Files Functions Variables Enumerations