def __init__(self, env, service, **kwargs): """ Takes an environment and an actor service, and streams data to it. """ self.service = service self.stream = Stream(MESSAGE_MEAN, MESSAGE_STDDEV, SPIKE_SCALE, SPIKE_PROBABILTY, SPIKE_DURATION) self.values = Normal(64, 32) self.last_volume = 0 super(StreamingData, self).__init__(env)