comparison src/samer/tools/Task.java @ 0:bf79fb79ee13

Initial Mercurial check in.
author samer
date Tue, 17 Jan 2012 17:50:20 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bf79fb79ee13
1 /*
2 * Copyright (c) 2000, Samer Abdallah, King's College London.
3 * All rights reserved.
4 *
5 * This software is provided AS iS and WITHOUT ANY WARRANTY;
6 * without even the implied warranty of MERCHANTABILITY or
7 * FITNESS FOR A PARTICULAR PURPOSE.
8 */
9
10 package samer.tools;
11
12 /**
13 An interface meant to represent processing that
14 needs to be done repeatedly in a loop. The task is to
15 be notified whenever the loop is started or stopped.
16 */
17
18 public interface Task
19 {
20 void dispose();
21 void starting();
22 void stopping();
23 void run() throws Exception;
24 }