|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.xstps.pds.Sequencer
final class Sequencer
This class checks for packet sequence errors.
Field Summary | |
---|---|
private int |
count
The current correct count. |
private int |
expectedCount
|
private boolean |
firstTime
|
private static int |
MASK
|
private int |
stepsize
|
Constructor Summary | |
---|---|
Sequencer(int step)
Create s Sequencer with a non-zero stepsize. |
Method Summary | |
---|---|
(package private) int |
check(Packet packet)
Check a packet for a sequence error. |
(package private) int |
getExpectedNextCount()
Get the next expected sequence count. |
private int |
getGapWithUnusualStepsize(int actual,
int expected,
int step)
In this function I compute the gap assuming the step value > 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int count
private static int MASK
private int stepsize
private boolean firstTime
private int expectedCount
Constructor Detail |
---|
Sequencer(int step)
Method Detail |
---|
final int getExpectedNextCount()
int check(Packet packet)
private int getGapWithUnusualStepsize(int actual, int expected, int step)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |