public class History
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ucar.unidata.data.adt.IRHistoryRecord[] |
HistoryFile |
static int |
HistoryFileRecords |
static ucar.unidata.data.adt.IRHistoryRecord |
IRCurrentRecord |
| Constructor and Description |
|---|
History() |
| Modifier and Type | Method and Description |
|---|---|
static int |
CommentHistoryRecords(java.lang.String CommentString)
Insert comment in history file at specifified date/time.
|
static int[] |
DeleteHistoryRecords(boolean RunFullAnalysis,
java.lang.String HistoryFileName)
Delete record(s) in a history file.
|
static int |
HistoryNumberOfRecords() |
static void |
InitCurrent(boolean InitialFlagTF) |
static int[] |
InsertHistoryRecord(boolean RunFullAnalysis,
java.lang.String HistoryFileName)
Insert or overwrite a record in a history file.
|
static java.lang.String |
ListHistory(int OutputStyle,
int OutputFormatTypeID,
java.lang.String ATCFFileSourceIDString,
java.lang.String ATCFStormIDString)
List the ASCII history file between given date/times.
|
void |
ReadHistoryFile(java.lang.String filename) |
static int |
WriteHistoryFile(java.lang.String HistoryFileName)
Write HistoryRecordPtr structure to ASCII history file.
|
public static int HistoryFileRecords
public static ucar.unidata.data.adt.IRHistoryRecord[] HistoryFile
public static ucar.unidata.data.adt.IRHistoryRecord IRCurrentRecord
public static int HistoryNumberOfRecords()
public static java.lang.String ListHistory(int OutputStyle,
int OutputFormatTypeID,
java.lang.String ATCFFileSourceIDString,
java.lang.String ATCFStormIDString)
OutputStyle - Output one record (-1) or entire file (0).OutputFormatTypeID - 0=ATCF, -1=History List.ATCFFileSourceIDString - ATCF file source identifier.ATCFStormIDString - ATCF storm identifier.public static int[] InsertHistoryRecord(boolean RunFullAnalysis,
java.lang.String HistoryFileName)
RunFullAnalysis - Full analysis toggle.HistoryFileName - File to modify.public static int[] DeleteHistoryRecords(boolean RunFullAnalysis,
java.lang.String HistoryFileName)
Routine will modify structure HistoryRecordPtr, which will then be rewritten to ASCII history file in another subroutine.
RunFullAnalysis - Full analysis toggle.HistoryFileName - File to modify.public static int CommentHistoryRecords(java.lang.String CommentString)
CommentString - Character string field to be inserted.-1, there was an error finding record, if >= 0
, number of modified records.public static int WriteHistoryFile(java.lang.String HistoryFileName)
throws java.io.IOException
HistoryFileName - File to write.>= 0, the value represents the number of records
written. If -2, there was an error reading
HistoryFileName. If -3, there was an error
writing HistoryFileName. Finally, if -5, there
was an error closing HistoryFileName.java.io.IOException - if there was a problem writing to HistoryFileName.public static void InitCurrent(boolean InitialFlagTF)
public void ReadHistoryFile(java.lang.String filename)
throws java.io.IOException
java.io.IOException