org.mbari.jddac
Class SampleCountFilter
java.lang.Object
org.mbari.jddac.SampleCountFilter
- All Implemented Interfaces:
- IFilter
public class SampleCountFilter
- extends java.lang.Object
- implements IFilter
This filter limits the number of samples to 'count'. If an additional sample
is added it's added to the end of the list and the oldest sample is removed.
Use as:
AggregationBlock fblock = new AggregationBlock();
fblock.addFilter(new SampleCountFilter(fblock, 10)); // Hold onto 10 samples
- Author:
- brian
| Fields inherited from interface org.mbari.jddac.IFilter |
KEY |
|
Method Summary |
boolean |
accept(net.java.jddac.common.type.ArgArray argArray)
|
int |
getCount()
|
void |
setCount(int count)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleCountFilter
public SampleCountFilter(AggregationBlock aggregationBlock)
- Creates a new instance of SampleCountFilter
SampleCountFilter
public SampleCountFilter(AggregationBlock aggregationBlock,
int count)
accept
public boolean accept(net.java.jddac.common.type.ArgArray argArray)
- Specified by:
accept in interface IFilter
getCount
public int getCount()
setCount
public void setCount(int count)
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.