Package adams.flow.control.plotprocessor
Class AbstractPlotProcessorWithBuffer<T>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.control.plotprocessor.AbstractPlotProcessor
-
- adams.flow.control.plotprocessor.AbstractPlotProcessorWithBuffer<T>
-
- Type Parameters:
T
- the type of data used by the buffer
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,ErrorProvider
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
Expression
,LOWESS
,SavitzkyGolay
,SimpleSavitzkyGolay
public abstract class AbstractPlotProcessorWithBuffer<T> extends AbstractPlotProcessor
Ancestor for post-processors that work on a buffer of plot containers.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<T>
m_Data
for storing the plot data.protected String
m_LastPlot
the last plot name.protected int
m_XIndex
the x index.-
Fields inherited from class adams.flow.control.plotprocessor.AbstractPlotProcessor
m_LastError, m_PlotNameSuffix
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractPlotProcessorWithBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Cleans up data structures, frees up memory.protected void
initialize()
Initializes the members.protected List<SequencePlotterContainer>
postProcess(List<SequencePlotterContainer> conts)
Post-processes the provided containers.protected void
preProcess(SequencePlotterContainer cont)
Hook method before processing the plot container.protected void
reset()
Resets the scheme.-
Methods inherited from class adams.flow.control.plotprocessor.AbstractPlotProcessor
check, defineOptions, doProcess, getLastError, getPlotName, getPlotNameSuffix, getPlotType, getQuickInfo, hasLastError, isValid, plotNameSuffixTipText, process, setPlotNameSuffix
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractPlotProcessor
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classAbstractPlotProcessor
-
preProcess
protected void preProcess(SequencePlotterContainer cont)
Hook method before processing the plot container.- Overrides:
preProcess
in classAbstractPlotProcessor
- Parameters:
cont
- the container to process
-
postProcess
protected List<SequencePlotterContainer> postProcess(List<SequencePlotterContainer> conts)
Post-processes the provided containers. Default implementation drops containers that have invalid values for X or Y.- Overrides:
postProcess
in classAbstractPlotProcessor
- Parameters:
conts
- the containers to post-process- Returns:
- null if no new containers were produced
- See Also:
AbstractPlotProcessor.isValid(Comparable)
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceCleanUpHandler
- Overrides:
cleanUp
in classAbstractPlotProcessor
-
-