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); }
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); } }