i3.dragos.core
Class AbstractTask

java.lang.Object
  extended by i3.dragos.core.AbstractTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
GarbageCollectorTask

public abstract class AbstractTask
extends java.lang.Object
implements Task

AbstractTask provides an abstract implementation of the Task interface. It provides an implemetation for managing the execution interval of a task.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>

Constructor Summary
AbstractTask()
          Empty default constructor.
 
Method Summary
abstract  void execute()
          Exceutes the tasks.
 long getInterval()
          Returns the execution interval of the task.
 void setInterval(long newInterval)
          Sets the execution interval of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask()
Empty default constructor.

Method Detail

execute

public abstract void execute()
Exceutes the tasks.

Specified by:
execute in interface Task

setInterval

public void setInterval(long newInterval)
Sets the execution interval of the task.

Specified by:
setInterval in interface Task
Parameters:
newInterval - The execution interval of the task.

getInterval

public long getInterval()
Returns the execution interval of the task.

Specified by:
getInterval in interface Task
Returns:
The execution interval of the task.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.