Renamed AMTimestampAB to AM0DTimestampAB.
Changed AM0DTimestampAB. Now, we expect an input of one 0D data source (similar to AM0DAccumulatorAB) and value/values() return portions of the list of saved time values, updates relative to now. I don't expect StripTool to run properly now, until some changes are made to the next AB in the chain. Project builds successfully.
Removed class AMTimestampAccumulatorAB from the framework--no longer needed, and I don't think it fit in well with the AB paradigm anyways. Replacing functionality with new class.
Removed references to the removed class AMTimestampAccumulatorAB from STWidget. StripTool2 builds and runs, but nothing is plotted now.
Created two new classes AM1DTimedDataAB and AMTimestampFilterAB. The first takes two 1D input sources, returns the values of the first and the axis values of the second. The latter will perform the timestamp filtering that I think will give us the degree of control we want over how pvs are viewed in time, in strip tool.
Implemented AM1DTimedDataAB::setInputDataSourcesImplementation(...).
Implemented value(), values(), and axisValue() for AM1DTimedDataAB.
Filled in the rest of the method bodies for AM1DTimedDataAB. I've commented out connections to the timestamps_ data source, I think it may cause some internal confusion if data_ updates before timestamps_... come back to this later.
Implemented AM1DTimedDataAB--looks like it works! Ten points max are shown, scrolling behavior seen when more than ten are collected.
Implemented timeValue_ in AMTimestampFilterAB, not sure if this class should be able to set time units (or if it can). Changed the dataMax_ for both AM0DAccumulatorAB and AM0DTimestampAB to 50, the goal for AMTimestampFilterAB is to show just the latest 10 values.
Filled in method bodies for AMTimestampFilterAB. The filtering action occurs right now in AMTimestampFilterAB::onInputSourceValuesChanged() and right now is just filtering by point number (not by timestamp, yet).
Created instance of AMTimestampFilterAB in STWidget, but it isn't plotted yet. StripTool builds and runs appropriately.
Implemented AMTimestampFilterAB in STWidget, but it doesn't look like it worked--the filter is supposed to allow only the last ten points to be plotted with every pv update, but >10 points can be plotted.
Okay! An improvement--AMTimestampFilterAB seems to be filtering for the first ten points, and then scrolls with them after the limit is reached. Close! To get here, I've been playing around with the arguments of emitValuesChanged() in the onInputSourceValuesChanged() slots in a couple of classes: AM0DAccumulatorAB, AM0DTimestampAB, AM1DTimedDataAB, and AMTimestampFilterAB.
Made a mistake in changing the axis info for AMTimestampFilterAB in setTimeValue(), this has been removed. The axis info should only be changed in onInputSourceValuesChanged().
Tried defining the emitValuesChanged(...) call arguments in terms of the end index argument, in AMTimestampFilterAB::onInputSourceValuesChanged(). But no dice. Same 'scrolling' behavior is displayed.