|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.PacketFilter
org.mbari.siam.distributed.PacketSubsampler
public class PacketSubsampler
PacketSubsampler filters every nth packet of specified types.
| Field Summary | |
|---|---|
protected int |
_currentCount
Number of packets that have been read. |
protected int |
_skipInterval
Number of packets to skip between subsamples. |
| Fields inherited from class org.mbari.siam.distributed.PacketFilter |
|---|
_log4j |
| Constructor Summary | |
|---|---|
PacketSubsampler(int skipInterval,
int packetTypeFlags)
Specify subsample skip interval for specified packet types; interval of 0 means don't skip any packets, interval of -1 means never sample any packets. |
|
| Method Summary | |
|---|---|
boolean |
pass(DevicePacket packet)
If filter is not applicable to specified packet's type, or specified packet passes filter criteria, return true; else return false. |
void |
reset()
Reset filter in preparation for starting on an input data set. |
java.lang.String |
toString()
Print string representation |
| Methods inherited from class org.mbari.siam.distributed.PacketFilter |
|---|
filteredType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _skipInterval
protected int _currentCount
| Constructor Detail |
|---|
public PacketSubsampler(int skipInterval,
int packetTypeFlags)
| Method Detail |
|---|
public void reset()
reset in class PacketFilterpublic boolean pass(DevicePacket packet)
pass in class PacketFilterpublic java.lang.String toString()
toString in class PacketFilter
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||