Module supervisor :: Class Script
[hide private]
[frames] | no frames]

type Script

source code

object --+
         |
        Script

Encapsulates the algoritm for improving noisy measurement data.

Instance Methods [hide private]
 
__init__(self, delay=None, threshold=30)
!!! This is not part of the assignment API, do not call it !!!
source code
Integer
run(self, data)
Executes this script.
source code
 
__update(self, sensor_data) source code
 
__set_supervisor(self, supervisor) source code
 
__set_device(self, device) source code
Method Details [hide private]

__init__(self, delay=None, threshold=30)
(Constructor)

source code 

!!! This is not part of the assignment API, do not call it !!!

Creates a new script.

Overrides: object.__init__

run(self, data)

source code 

Executes this script.

Parameters:
  • data (List of Integer) - list containing data relevant for location, from one or multiple devices
Returns: Integer
improved measurement for the location