samer@0: /* samer@0: * Copyright (c) 2000, Samer Abdallah, King's College London. samer@0: * All rights reserved. samer@0: * samer@0: * This software is provided AS iS and WITHOUT ANY WARRANTY; samer@0: * without even the implied warranty of MERCHANTABILITY or samer@0: * FITNESS FOR A PARTICULAR PURPOSE. samer@0: */ samer@0: samer@0: package samer.tools; samer@0: samer@0: /** samer@0: An interface meant to represent processing that samer@0: needs to be done repeatedly in a loop. The task is to samer@0: be notified whenever the loop is started or stopped. samer@0: */ samer@0: samer@0: public interface Task samer@0: { samer@0: void dispose(); samer@0: void starting(); samer@0: void stopping(); samer@0: void run() throws Exception; samer@0: }