Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 921:630934595871
work in progress with prototype class
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 05 Jul 2017 18:01:43 -0400 |
parents | 3a06007a4bb7 |
children | 063d1267585d |
line wrap: on
line diff
--- a/python/moving.py Wed Jul 05 16:30:04 2017 -0400 +++ b/python/moving.py Wed Jul 05 18:01:43 2017 -0400 @@ -1662,6 +1662,30 @@ movingObject2.getVelocityAtInstant(instant)-movingObject1.getVelocityAtInstant(instant)) #deltav +class Prototype(object): + 'Class for a prototype' + + def __init__(self, filename, num, trajectoryType, nMatchings = None): + self.filename = filename + self.num = num + self.trajectoryType = trajectoryType + self.nMatchings = nMatchings + self.movingObject = None + + def getFilename(self): + return self.filename + def getNum(self): + return self.num + def getTrajectoryType(self): + return self.trajectoryType + def getNMatchings(self): + return self.nMatchings + def getMovingObject(self): + return self.movingObject + def setMovingObject(self, o): + self.movingObject = o + + ################## # Annotations ##################