Home | Trees | Indices | Help |
---|
|
1 import util.TimeOps as clock 2 import random 3 import util.Geo as Geo 4 import util.Strings as Strings 5 from operationscore.Input import *7 """RandomLocs is an Input that generates RandomLocations at a preset but randomly changing time interval. Just a 8 prototype, some assembly required.""" 91711 self['LastEvent'] = clock.time()13 currentTime = clock.time() 14 if currentTime - self['LastEvent'] > 200+500*random.random(): 15 self.respond({Strings.LOCATION: Geo.randomLoc((200,200))}) 16 self['LastEvent'] = currentTime
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Feb 18 16:55:27 2011 | http://epydoc.sourceforge.net |