return the value of a particleInstance for comparison purposes. The value is simply the time.
(self)
| 113 | |
| 114 | |
| 115 | def value(self): |
| 116 | """ |
| 117 | return the value of a particleInstance for comparison |
| 118 | purposes. The value is simply the time. |
| 119 | """ |
| 120 | return self.t |
| 121 | |
| 122 | def __cmp__(self, other): |
| 123 | return cmp(self.value(), other.value()) |
no outgoing calls