ewe.sys
Interface Task

All Known Implementing Classes:
Handle, TaskObject

public interface Task


Method Summary
 Handle getHandle()
          This returns the handle associated with the Task.
 Handle startTask()
          This starts the Task.
 Handle stopTask(int reason)
          This requests the Task to stop.
 

Method Detail

getHandle

public Handle getHandle()
This returns the handle associated with the Task.


startTask

public Handle startTask()
This starts the Task. It should create a handle and return it. If it is called more than once, only the first call should start the Task. Subsequent calls should just return the already created handle.


stopTask

public Handle stopTask(int reason)
This requests the Task to stop. The Task will not necessarily top because of this call. The Stopped flag will be set in the status of the handle when the Task is actually stopped.