nl.uva.vlet.tasks
Interface ITaskSource

All Known Implementing Classes:
ProcessTaskSource, VFSTaskWatcher

public interface ITaskSource

This interface is created so that the ActionTask class can be part of vrs.core/main, so that class can be reused as Thread spawn class. If an implementation want to keep track of the ActionTasks it spawns (BrowserController) is can implement this interface. When creating a new ActionTask the ITaskSource can be given as parent of that task.

See Also:
ActionTask

Method Summary
 java.lang.String getID()
          Optional ID to use by the ActionTask
 void handle(java.lang.Exception e)
          Handle Exception thrown by the action task
 void messagePrintln(java.lang.String str)
          Message printer for the ActionTask to print messages and/or errors
 void setHasTasks(boolean b)
          Method to update the TaskSource if it has tasks running
 

Method Detail

setHasTasks

void setHasTasks(boolean b)
Method to update the TaskSource if it has tasks running


getID

java.lang.String getID()
Optional ID to use by the ActionTask


messagePrintln

void messagePrintln(java.lang.String str)
Message printer for the ActionTask to print messages and/or errors


handle

void handle(java.lang.Exception e)
Handle Exception thrown by the action task