src/Pure/PIDE/protocol.scala
changeset 56353 ecbdfe30bf7f
parent 56352 abdc524db8b4
child 56355 1a9f569b5b7e
equal deleted inserted replaced
56352:abdc524db8b4 56353:ecbdfe30bf7f
    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   }