/src/kilim/TaskDoneReason.java

http://github.com/kilim/kilim · Java · 21 lines · 11 code · 4 blank · 6 comment · 0 complexity · 0ff84a0bc00e9eabd0ebf65aa30535ee MD5 · raw file

  1. /* Copyright (c) 2006, Sriram Srinivasan
  2. *
  3. * You may distribute this software under the terms of the license
  4. * specified in the file "License"
  5. */
  6. package kilim;
  7. public class TaskDoneReason implements PauseReason {
  8. Object exitObj;
  9. TaskDoneReason(Object o) {exitObj = o;}
  10. public boolean isValid(Task t) {
  11. // When a task is done, it is reason to continue pausing
  12. return true;
  13. }
  14. public String toString() {
  15. return "Done. Exit msg = " + exitObj;
  16. }
  17. }