All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.app.time.Tasking
java.lang.Object
|
+----quicktime.app.time.Tasking
- public abstract class Tasking
- extends Object
- implements Taskable
This class implements most of the methods of the Taskable interface,
providing an application a default implementation of this.
The default Tasker for this object can be set by an application and
doing so will move this Taskable object to that new TaskThread object and
consequent calls to startTasking() will use the application set TaskThread.
-
Tasking()
-
-
addedToTasker(TaskThread)
- This is called by a TaskThread when an object is added to a TaskThread.
-
getDefaultTasker()
- Returns the default TaskThread that is used when this object is tasked.
-
getTasker()
- This should return the task thread that the Taskable object is currently being
tasked by or null if not being tasked.
-
removedFromTasker()
- This is called by a TaskThread when an object is removed from a TaskThread.
-
setDefaultTasker(TaskThread)
- This will set the default TaskThread that will be used by this object when
the startTasking method is called.
-
startTasking()
- This will start tasking the Tasking object by adding this object to
the currently set default TaskThread and ensuring that this TaskThread
object is started.
-
stopTasking()
- This will stop tasking the Tasking object by removing it from its existing
TaskThread.
-
task()
- This method is defined as a method that is called periodically
to perform tasks.
Tasking
public Tasking()
removedFromTasker
public void removedFromTasker()
- This is called by a TaskThread when an object is removed from a TaskThread.
It is removedFrom the TaskThread that it was added to and a Taskable
can only be in one TaskThread object.
- Parameters:
- t - the TaskThread
addedToTasker
public void addedToTasker(TaskThread t)
- This is called by a TaskThread when an object is added to a TaskThread.
The parameter is the TaskThread that the object is being added to.
- Parameters:
- t - the TaskThread
getTasker
public TaskThread getTasker()
- This should return the task thread that the Taskable object is currently being
tasked by or null if not being tasked.
- Returns:
- a TaskThread object or null.
startTasking
public void startTasking()
- This will start tasking the Tasking object by adding this object to
the currently set default TaskThread and ensuring that this TaskThread
object is started.
stopTasking
public void stopTasking()
- This will stop tasking the Tasking object by removing it from its existing
TaskThread.
setDefaultTasker
public void setDefaultTasker(TaskThread tasker)
- This will set the default TaskThread that will be used by this object when
the startTasking method is called. If the object is currently attached to a TaskThread
this will remove it from that Thread and add it to the incoming TaskThread. It won't
start the incoming TaskThread
- Parameters:
- tasker - the TaskThread to use for tasking
getDefaultTasker
public TaskThread getDefaultTasker()
- Returns the default TaskThread that is used when this object is tasked.
- Returns:
- a TaskThread object
All Packages Class Hierarchy This Package Previous Next Index