# HG changeset patch # User Nicolas Saunier # Date 1310713479 14400 # Node ID 6efe470ea5e50af75a92ffeae07a55c89ae8d010 # Parent 91667848189613d386057968746e4dda4ab50b80 added test existsAtInstant to STObject diff -r 916678481896 -r 6efe470ea5e5 python/moving.py --- a/python/moving.py Fri Jul 15 02:32:34 2011 -0400 +++ b/python/moving.py Fri Jul 15 03:04:39 2011 -0400 @@ -112,6 +112,9 @@ def getTimeInterval(self): return self.timeInterval + def existsAtInstant(self, t): + return self.timeInterval.contains(t) + def commonTimeInterval(self, obj2): return self.getTimeInterval().intersection(obj2.getTimeInterval())