Mercurial > hg > nsaunier > traffic-intelligence
comparison python/events.py @ 310:f7ca78a11ea6
add functions to add videofilename and interaction type in Interaction class
| author | Mohamed Gomaa |
|---|---|
| date | Wed, 03 Apr 2013 22:13:01 -0400 |
| parents | 93d851d0d21e |
| children | d280b881e860 |
comparison
equal
deleted
inserted
replaced
| 306:93d851d0d21e | 310:f7ca78a11ea6 |
|---|---|
| 62 self.addIndicator(indicators.SeverityIndicator('Speed Differential', speedDifferentials)) | 62 self.addIndicator(indicators.SeverityIndicator('Speed Differential', speedDifferentials)) |
| 63 self.addIndicator(indicators.SeverityIndicator('Collision Course Cosine', collisionCourseCosines)) | 63 self.addIndicator(indicators.SeverityIndicator('Collision Course Cosine', collisionCourseCosines)) |
| 64 | 64 |
| 65 # todo test for interaction instants and interval, compute indicators | 65 # todo test for interaction instants and interval, compute indicators |
| 66 | 66 |
| 67 def addVideoFilename(self,videoFilename): | |
| 68 self.videoFilename= videoFilename | |
| 69 | |
| 70 def addInteractionType(self,interactionType): | |
| 71 ''' interaction types: conflict or collision if they are known''' | |
| 72 self.interactionType= interactionType | |
| 67 | 73 |
| 68 def createInteractions(objects): | 74 def createInteractions(objects): |
| 69 '''Create all interactions of two co-existing road users | 75 '''Create all interactions of two co-existing road users |
| 70 | 76 |
| 71 todo add test to compute categories?''' | 77 todo add test to compute categories?''' |
