com.benfante.splasher.example
Class FakeTask

java.lang.Object
  extended by com.benfante.splasher.task.AbstractTask
      extended by com.benfante.splasher.example.FakeTask
All Implemented Interfaces:
Task, java.lang.Runnable

public class FakeTask
extends AbstractTask

A fake initialization task that simply repeat a sleep of 100 milliseconds.

Version:
$Id: FakeTask.java,v 1.1.1.1 2006-04-01 05:41:35 lucio Exp $
Author:
Lucio Benfante lucio@benfante.com

Field Summary
 
Fields inherited from class com.benfante.splasher.task.AbstractTask
completed, COMPLETED, description, weight
 
Constructor Summary
FakeTask(int repetitions, java.lang.String description)
          Creates a new instance of FakeTask
 
Method Summary
 void run()
          Execution of the task.
 
Methods inherited from class com.benfante.splasher.task.AbstractTask
add, getCompleted, getDescription, getWeight, isCompleted, notifyChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeTask

public FakeTask(int repetitions,
                java.lang.String description)
Creates a new instance of FakeTask

Parameters:
repetitions - The number of repetitions for the sleep
description - A description for the task
Method Detail

run

public void run()
Execution of the task. Repeat a sleep of 100 milliseconds, notifying the task observer(s) at each iteration.