|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--RtjAocsFramework.BasicObjects.RootObject
|
+--RtjAocsFramework.BasicObjects.AocsObject
|
+--RtjAocsFramework.TelemetryManagement.TestTelemetryStream
This class encapsulates a test telemetry stream that directs the telemetry data to an output file. The name of the output file is TestTelemetryStream.txt. This file is opened in the directory in which the test program is run.
Copyright: see the Copyright Notice.
| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
TestTelemetryStream(String outFileName)
|
|
| Method Summary | |
protected void |
finalize()
Report a failure if an AocsObject is destroyed. |
void |
flushBuffer()
Flush the current telemetry frame to the telemetry stream |
int |
getBufferSize()
Return the size of the telemetry buffer in bytes |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
void |
resetBuffer()
Reset the telemetry buffer |
void |
setBufferSize(int size)
Set the size of the telemetry buffer in bytes. |
void |
write(boolean d)
Write the boolean 'd' to the telemetry stream |
void |
write(byte d,
int n,
int m)
Write bits n to m of byte 'd' to the telemetry stream |
void |
write(double d)
Write the double 'd' to the telemetry stream |
void |
write(float d)
Write the float 'd' to the telemetry stream |
void |
write(int d)
Write the integer 'd' to the telemetry stream |
void |
write(int address,
int n)
Write to telemetry stream n bytes starting from address 'address' |
void |
write(int d,
int n,
int m)
Write bits n to m of integer 'd' to the telemetry stream |
void |
write(short d)
Write the short integer 'd' to the telemetry stream |
void |
write(short d,
int n,
int m)
Write bits n to m of short 'd' to the telemetry stream |
void |
writeFrameNumber(int n)
Write the telemetry frame number to the telemetry stream. |
void |
writeNumberOfBits(int n)
Write the number of bits in the current frame to the telemetry stream. |
void |
writeNumberOfBytes(int n)
Write the number of bytes in the current frame to the telemetry stream. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct the object to write its own state to the telemetry stream. |
| Methods inherited from class RtjAocsFramework.BasicObjects.RootObject |
getClassId, getInstanceId, setClassId |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestTelemetryStream(String outFileName)
| Method Detail |
public void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic void writeFrameNumber(int n)
TelemetryStream
writeFrameNumber in interface TelemetryStreamn - the telemetry frame number.public void writeNumberOfBytes(int n)
TelemetryStream
writeNumberOfBytes in interface TelemetryStreamn - the number of bytes in the current telemetry frame.public void writeNumberOfBits(int n)
TelemetryStream
writeNumberOfBits in interface TelemetryStreamn - the number of bits that were written using bit writing methods. The
bit writing methods are those that write individual bits to the telemetry
stream.
public void write(int address,
int n)
TelemetryStream
write in interface TelemetryStreampublic void write(double d)
TelemetryStream
write in interface TelemetryStreampublic void write(float d)
TelemetryStream
write in interface TelemetryStreampublic void write(int d)
TelemetryStream
write in interface TelemetryStreampublic void write(short d)
TelemetryStream
write in interface TelemetryStreampublic void write(boolean d)
TelemetryStream
write in interface TelemetryStream
public void write(int d,
int n,
int m)
TelemetryStream
write in interface TelemetryStream
public void write(short d,
int n,
int m)
TelemetryStream
write in interface TelemetryStream
public void write(byte d,
int n,
int m)
TelemetryStream
write in interface TelemetryStreampublic void flushBuffer()
TelemetryStream
flushBuffer in interface TelemetryStreampublic void resetBuffer()
TelemetryStream
resetBuffer in interface TelemetryStreampublic int getBufferSize()
TelemetryStream
getBufferSize in interface TelemetryStreampublic void setBufferSize(int size)
TelemetryStream
setBufferSize in interface TelemetryStreamprotected void finalize()
AocsObjectBy design, AOCS objects should never be destroyed. If they are, a failure event is generated by the object destructor.
finalize in class AocsObject
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||