4 <dt><a href="#StatusComponent">StatusComponent</a></dt>
6 <dt><a href="#WaveRenderer">WaveRenderer</a></dt>
8 <dt><a href="#DataService">DataService</a></dt>
10 <dt><a href="#SortingHat">SortingHat</a></dt>
17 <dt><a href="#tSortingHatData">tSortingHatData</a> : <code>object</code></dt>
18 <dd><p>The data structure representing the sorting hat data</p>
20 <dt><a href="#tRunningAverages">tRunningAverages</a> : <code>object</code></dt>
21 <dd><p>The running averages, including the current sum and count</p>
25 <a name="StatusComponent"></a>
28 **Kind**: global class
29 <a name="new_StatusComponent_new"></a>
31 ### new StatusComponent()
32 The status class, renders the winner during the poll stage, and a
35 <a name="WaveRenderer"></a>
38 **Kind**: global class
39 <a name="new_WaveRenderer_new"></a>
41 ### new WaveRenderer()
42 The wave renderer, draws some waves in a canvas to represent a set of
45 <a name="DataService"></a>
48 **Kind**: global class
50 * [DataService](#DataService)
51 * [new DataService()](#new_DataService_new)
52 * [.data()](#DataService.data) ⇒
54 <a name="new_DataService_new"></a>
57 The main data service, connects to a socket and updates the internal
60 <a name="DataService.data"></a>
62 ### DataService.data() ⇒
63 Returns the internal data structure, intended to be used as the data
64 property in vue components
66 **Kind**: static method of [<code>DataService</code>](#DataService)
67 **Returns**: tSortingHatData
68 <a name="SortingHat"></a>
71 **Kind**: global class
72 <a name="new_SortingHat_new"></a>
75 The main vue application, it is composed by the other components, no real
78 <a name="tSortingHatData"></a>
80 ## tSortingHatData : <code>object</code>
81 The data structure representing the sorting hat data
83 **Kind**: global typedef
85 | Param | Type | Description |
87 | state | <code>number</code> | the current state: 0 for waiting, 1 for polling, 2 for cool down. |
88 | [winner] | <code>string</code> | the winner after polling, might be null if no winner is detected |
89 | runningAverages | <code>Object.<string, tRunningAverages></code> | the running averages for the different categories, used to render the waves |
91 <a name="tRunningAverages"></a>
93 ## tRunningAverages : <code>object</code>
94 The running averages, including the current sum and count
96 **Kind**: global typedef
98 | Param | Type | Description |
100 | sum | <code>number</code> | the current total |
101 | count | <code>number</code> | the number of samples |
102 | average | <code>number</code> | the average (sum / count) |