|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.RtStpsNode
gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
gov.nasa.gsfc.drl.rtstps.core.PnDecoder
public class PnDecoder
This class performs pseudo-noise encoding/decoding on frames or blocks of data. Pseudo-Noise is also known as bit transition density. This class uses the standard CCSDS polynomial: x**8 + x**7 + x**5 + x**3 + 1.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
This is a class name for this RT-STPS node type, which is also the element name. |
private int |
syncLength
|
private static int[] |
table
This is the default encoding table, which is CCSDS-recommended. |
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode |
---|
output |
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
linkName, statusItemList, typeName |
Constructor Summary | |
---|---|
PnDecoder()
A null constructor. |
Method Summary | |
---|---|
static void |
decode(byte[] data,
int startByte,
int endByte)
This method adds or removes pseudo-noise encoding (PN or bit transition density encoding) from a data block. |
void |
load(org.w3c.dom.Element element,
Configuration configuration)
Set up this RT-STPS node with a configuration. |
void |
putFrame(Frame frame)
Give a frame to this FrameReceiver. |
void |
putFrames(Frame[] frames)
Give an array of frames to this FrameReceiver. |
void |
setSyncLength(int length)
Set the sync pattern length. |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode |
---|
addReceiver, finishSetup, flush, setOutputIsRequired |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
clear, clone, getElementName, getLinkName, getStatusItems, setLinkName, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.FrameReceiver |
---|
flush, getLinkName |
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.Sender |
---|
addReceiver |
Field Detail |
---|
public static final java.lang.String CLASSNAME
private static final int[] table
private int syncLength
Constructor Detail |
---|
public PnDecoder()
Method Detail |
---|
public void load(org.w3c.dom.Element element, Configuration configuration) throws RtStpsException
load
in class FrameSenderNode
RtStpsException
public void setSyncLength(int length)
public void putFrames(Frame[] frames) throws RtStpsException
putFrames
in interface FrameReceiver
RtStpsException
public void putFrame(Frame frame) throws RtStpsException
putFrame
in interface FrameReceiver
RtStpsException
public static void decode(byte[] data, int startByte, int endByte)
data
- The byte array to be encoded or decoded.startByte
- The data index of the starting byte.endByte
- The data index of the last decoded byte.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |