KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > taskman > ComponentTestTask


1 package org.sapia.taskman;
2
3 /**
4  * @author Yanick Duchesne
5  *
6  * <dl>
7  * <dt><b>Copyright: </b>
8  * <dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open
9  * Source Software </a>. All Rights Reserved.</dd>
10  * </dt>
11  * <dt><b>License: </b>
12  * <dd>Read the license.txt file of the jar or visit the <a
13  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
14  * OSS web site</dd>
15  * </dt>
16  * </dl>
17  */

18 public class ComponentTestTask implements Task {
19   int index;
20   int currentCount = -1;
21   TestCounter c;
22
23   ComponentTestTask(int index, TestCounter c) {
24     this.index = index;
25     this.c = c;
26   }
27
28   /**
29    * @see org.sapia.taskman.Task#exec(org.sapia.taskman.TaskContext)
30    */

31   public void exec(TaskContext ctx) {
32     currentCount = c.count;
33     c.count++;
34   }
35 }
36
Popular Tags