def generate(self): list = [] timestamp = 0 for i in range(self.number): timestamp += self.interval list.append(ReplayEvent(timestamp)) return list[::-1]
def __init__(self, name, timestamp): ReplayEvent.__init__(self, timestamp) self.name = name
def __init__(self, trail): ReplayEvent.__init__(self, trail[0].timestamp) self.trail = trail