|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.uplink.tour.IssSasf
The IssSasf class performs text processing on a Cassini ISS SASF file. It takes an ISS SASF file as input and outputs a Cassini ISS EGSE (Electronic Ground Support Equipment) script file or an ISS IOI file. This is the tour version.
Error messages are printed to standard error.
History
Version 1.0 8/13/2004 Vance Haemmerle: Initial delivery, IOIs limited to non-sep uploads
Version 1.1 12/02/2004 Vance Haemmerle: Use separation=false for getIteration(), fix counts, sep IOIs
Version 2.0 6/09/2005 Vance Haemmerle: Include handling of "partial" loads like fsw 1.4
Version 3.0 8/12/2005 Vance Haemmerle: Some bug fixes
IssParameterSet
,
IssIoiHeader
,
IssIeb
,
IssPef
,
IssMacro
Nested Class Summary | |
class |
IssSasf.Loop
The Loop class is an inner class to allow Loops to be treated as objects |
Constructor Summary | |
IssSasf()
|
Method Summary | |
boolean |
checkTelem(Vector params,
Vector isLoop,
int telem)
Return maximum Telemetry rate value for given macro |
boolean |
checkTelem(Vector nacParams,
Vector nacIsLoop,
Vector wacParams,
Vector wacIsLoop,
int telem)
Return maximum Telemetry rate value for given macro |
void |
cleanUp(StringBuffer upload)
Clean Marks from upload script |
void |
decrementLineNumber()
Decrement the line counter variable. |
void |
doComments()
Generate the EGSE script comments and put into script StringBuffer. |
int |
findMinTelemetryRate(IssMacro macro,
String camera)
Return maximum Telemetry rate value for given macro |
int |
getErrorCount()
Returns the number of errors detected. |
StringBuffer |
getIoiHeader(IssIoiHeader header)
Return IOI file text |
int |
getLineNumber()
Returns the value of the current line. |
String |
getMark(StringBuffer upload,
String mark)
Get comment from upload script |
IssTrigger |
getTelemetryRateTrigger(int trigger)
Return minimum Telemetry rate value for given trigger from PEF. |
int |
getWarningCount()
Returns the number of warnings detected. |
void |
incrementLineNumber()
Increment the line counter variable. |
void |
ioiWrite(IssMacro macro,
String camera)
Write out separate NAC/WAC IOI |
void |
lineError()
Print an error message. |
void |
lineError(String msg)
Print an error message. |
void |
lineWarning()
Print a warning message. |
void |
lineWarning(String msg)
Print a warning message. |
static void |
main(String[] Args)
Main Method. |
StringBuffer |
nonSepUpload(IssIeb ieb)
Create the EGSE script for a non-separated upload |
void |
sepIoiMerge(StringBuffer nacUpload,
StringBuffer wacUpload)
Create the IOIs for a separated upload, recalculate Order Number |
void |
sepIoiWrite(IssMacro macro)
Write out separate NAC/WAC IOIs |
StringBuffer |
sepUpload(IssIeb ieb,
String camera)
Create the EGSE script for a separated upload |
void |
setEgseFilename(String filename)
Set the output filename for the EGSE file. |
void |
setEgseWacFilename(String filename)
Set the output filename for the wac EGSE file. |
void |
setIoiFilename(String filename)
Set the output filename for the Ioi file. |
void |
setSasfFilename(String filename)
Set the Sasf input filename |
void |
setSeparation(boolean separation)
Set the NAC/WAC separation feature |
void |
setUploadId(int id)
Set the uploadId |
void |
setWacUploadId(int id)
Set the wacUploadId |
void |
subsMark(StringBuffer nacUpload,
StringBuffer wacUpload)
Replace Marks from upload script |
void |
write()
Writes an EGSE script(s) and IOI file(s) representation of this IssSasf. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IssSasf()
Method Detail |
public void setSasfFilename(String filename)
public void setIoiFilename(String filename)
filename
- The output Ioi filename.public void setEgseFilename(String filename)
filename
- The output EGSE filename.public void setEgseWacFilename(String filename)
filename
- The output wac EGSE filename.public void setSeparation(boolean separation)
separation
- Boolean, true if separate NAC/WAC output is desiredpublic void setUploadId(int id)
id
- The upload ID, valid range is 1-65535public void setWacUploadId(int id)
id
- The WAC upload ID, valid range is 1-65535public void write()
public int getLineNumber()
public StringBuffer nonSepUpload(IssIeb ieb)
public StringBuffer sepUpload(IssIeb ieb, String camera)
public void sepIoiMerge(StringBuffer nacUpload, StringBuffer wacUpload)
public void sepIoiWrite(IssMacro macro)
public void ioiWrite(IssMacro macro, String camera)
public IssTrigger getTelemetryRateTrigger(int trigger)
trigger
- Trigger numberpublic int findMinTelemetryRate(IssMacro macro, String camera)
macro
- IssMacro objectcamera
- NAC, WAC or BOTHpublic boolean checkTelem(Vector params, Vector isLoop, int telem)
params
- Vector of parameter sets/loopsisLoop
- Vector of booleans telling if vector entry is a looptelem
- Telemetry ratepublic boolean checkTelem(Vector nacParams, Vector nacIsLoop, Vector wacParams, Vector wacIsLoop, int telem)
nacParams
- Vector of NAC parameter sets/loopsnacIsLoop
- Vector of booleans telling if NAC vector entry is a loopwacParams
- Vector of WAC parameter sets/loopswacIsLoop
- Vector of booleans telling if WAC vector entry is a looptelem
- Telemetry ratepublic StringBuffer getIoiHeader(IssIoiHeader header)
public String getMark(StringBuffer upload, String mark)
public void subsMark(StringBuffer nacUpload, StringBuffer wacUpload)
public void cleanUp(StringBuffer upload)
public void incrementLineNumber()
public void decrementLineNumber()
public void lineError(String msg)
msg
- The error message to be printed to stdout.public int getErrorCount()
public int getWarningCount()
public void lineError()
public void lineWarning()
public void lineWarning(String msg)
msg
- The warning message to be printed to stdout.public void doComments()
public static void main(String[] Args)
IssSasf sasfFile [-script] [-script] [-ioi] [-log logfile] [filename.pef] [-telem rate] [-usecalc] [-debug]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |