(self)
Overrides the Collector.collect method
Overrides the Collector.collect method
Overrides the Collector . collect method
def collect(self):
        """
        Overrides the Collector.collect method
        """

        content = self._load()
        result = dict((self.STATE[num], 0) for num in self.STATE)

        for line in content:
            line_array = self._remove_empty(line.split(' '))
            state = self.STATE[line_array[3]]

            result[state] += 1

        for state in result:
            self.publish(state, result[state])
def collect ( self ) : content = self . _load ( ) result = dict ( ( self . STATE [ num ] , 0 ) for num in self . STATE ) for line in content : line_array = self . _remove_empty ( line . split ( ' ' ) ) state = self . STATE [ line_array [ 3 ] ] result [ state ] += 1 for state in result : self . publish ( state , result [ state ] )