PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 7package kilim;
 8
 9public class TaskDoneReason implements PauseReason {
10    Object exitObj;
11    TaskDoneReason(Object o) {exitObj = o;}
12    
13    public boolean isValid(Task t) {
14        // When a task is done, it is reason to continue pausing
15        return true;
16    }
17    
18    public String toString() {
19        return "Done. Exit msg = " + exitObj;
20    }
21}