equal
deleted
inserted
replaced
46 private val accepted: Boolean, |
46 private val accepted: Boolean, |
47 private val failed: Boolean, |
47 private val failed: Boolean, |
48 forks: Int, |
48 forks: Int, |
49 runs: Int) |
49 runs: Int) |
50 { |
50 { |
51 def + (that: Status): Status = |
|
52 Status(touched || that.touched, accepted || that.accepted, failed || that.failed, |
|
53 forks + that.forks, runs + that.runs) |
|
54 |
|
55 def is_unprocessed: Boolean = accepted && !failed && (!touched || (forks != 0 && runs == 0)) |
51 def is_unprocessed: Boolean = accepted && !failed && (!touched || (forks != 0 && runs == 0)) |
56 def is_running: Boolean = runs != 0 |
52 def is_running: Boolean = runs != 0 |
57 def is_finished: Boolean = !failed && touched && forks == 0 && runs == 0 |
53 def is_finished: Boolean = !failed && touched && forks == 0 && runs == 0 |
58 def is_failed: Boolean = failed |
54 def is_failed: Boolean = failed |
59 } |
55 } |