Terrenus HRPT v2.2

terrenus.telemetry
Class QuorumCHRPTStream

java.lang.Object
  extended by terrenus.telemetry.AbstractTelemetryStream
      extended by terrenus.telemetry.CHRPTStream
          extended by terrenus.telemetry.QuorumCHRPTStream
All Implemented Interfaces:
TelemetryStream

public class QuorumCHRPTStream
extends CHRPTStream

The QuorumCHRPTStream class reads Quorum QTrack CMA CHRPT storage format. The file structure is as follows:


Field Summary
 
Fields inherited from class terrenus.telemetry.CHRPTStream
AUX_SYNC_BLOCK, BLOCK_LENGTHS, BLOCK_OFFSETS, EARTH_BLOCK, FRAME_SYNC_BLOCK, ID_BLOCK, INTERNAL_TARGET_BLOCK, SPACE_BLOCK, SPARE_BLOCK, TELEMETRY_BLOCK, TIME_CODE_BLOCK
 
Fields inherited from class terrenus.telemetry.AbstractTelemetryStream
input
 
Constructor Summary
QuorumCHRPTStream(java.lang.String fileName)
          Creates a new stream using the specified file as input.
 
Method Summary
 int getDayCount(int frame)
          Gets the day count for the specified frame.
 java.lang.String getFormat()
          Gets a description of the underlying data format.
 int getFrameCount()
          Gets the total number of telemetry frames.
protected  int getFramePosition(int frame)
          Gets the position of a frame within the input.
 
Methods inherited from class terrenus.telemetry.CHRPTStream
checkFrame, getBlockCount, getBlockLength, getBlockPosition, getDecoder
 
Methods inherited from class terrenus.telemetry.AbstractTelemetryStream
checkStream, getBlock, getDayCount, getInputBuffer, getYear, initStream, main, setDayCount, setYear
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuorumCHRPTStream

public QuorumCHRPTStream(java.lang.String fileName)
                  throws java.io.IOException
Creates a new stream using the specified file as input.

Throws:
java.io.IOException
Method Detail

getFormat

public java.lang.String getFormat()
Description copied from interface: TelemetryStream
Gets a description of the underlying data format.


getFramePosition

protected int getFramePosition(int frame)
Description copied from class: AbstractTelemetryStream
Gets the position of a frame within the input.

Overrides:
getFramePosition in class AbstractTelemetryStream
Parameters:
frame - the frame in question.
Returns:
the position in bytes, relative to the end of any input header data.

getFrameCount

public int getFrameCount()
Description copied from interface: TelemetryStream
Gets the total number of telemetry frames.

Specified by:
getFrameCount in interface TelemetryStream
Overrides:
getFrameCount in class AbstractTelemetryStream

getDayCount

public int getDayCount(int frame)
                throws java.io.IOException
Description copied from class: CHRPTStream
Gets the day count for the specified frame. The day count is not available from the CHRPT telemetry stream from the spacecraft because the bits in the time code where the day count are supposed to be are zero filled.

Specified by:
getDayCount in class CHRPTStream
Throws:
java.io.IOException

Terrenus HRPT v2.2