/src/kilim/TaskDoneReason.java
http://github.com/kilim/kilim · Java · 21 lines · 11 code · 4 blank · 6 comment · 0 complexity · 0ff84a0bc00e9eabd0ebf65aa30535ee MD5 · raw file
- /* Copyright (c) 2006, Sriram Srinivasan
- *
- * You may distribute this software under the terms of the license
- * specified in the file "License"
- */
- package kilim;
- public class TaskDoneReason implements PauseReason {
- Object exitObj;
- TaskDoneReason(Object o) {exitObj = o;}
-
- public boolean isValid(Task t) {
- // When a task is done, it is reason to continue pausing
- return true;
- }
-
- public String toString() {
- return "Done. Exit msg = " + exitObj;
- }
- }