コード例 #1
0
        public override Data getData()
        {
            Data     data     = this.getPredecessor().getData();
            Iterator iterator = this.listeners.iterator();

            while (iterator.hasNext())
            {
                DataListener dataListener = (DataListener)iterator.next();
                dataListener.processDataFrame(data);
            }
            return(data);
        }
コード例 #2
0
        public virtual void processDataFrame(Data data)
        {
            this.featureBuffer.add(data);
            Iterator iterator = this.dataListeners.iterator();

            while (iterator.hasNext())
            {
                DataListener dataListener = (DataListener)iterator.next();
                dataListener.processDataFrame(data);
            }
            while (this.featureBuffer.size() > this.maxBufferSize)
            {
                this.featureBuffer.remove(0);
            }
        }