public class FitsNameGenerator extends Object
getAbortFits(java.lang.String), the getSNFits(java.lang.String)
or the getDefaultFits(java.lang.String) method is called, one of the three
extensions, ABORT, SN, or REGULAR is appended
to this name.DATEFORMAT follows.DATECOUNTSEPARATOR is appended.NUMBERFORMAT.EXTENSION.| Modifier and Type | Field and Description |
|---|---|
private static String |
ABORT
The extension to the name marking an aborted integration.
|
private static int |
count
The running number.
|
private static char |
DATECOUNTSEPARATOR
The separator char between the date and the running number.
|
private static DateFormat |
DATEFORMAT
The date formatter.
|
private static String |
EXTENSION
The fits file extension.
|
private static String |
lastdate
The last date used.
|
private static NumberFormat |
NUMBERFORMAT
The running number formatter.
|
private static String |
REGULAR
The extension to the name marking a regular integration.
|
private static String |
SN
The extension to the name marking an aborted integration.
|
| Constructor and Description |
|---|
FitsNameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getAbortFits(String name)
Returns a file name formatted according to an aborted integration.
|
static File |
getDefaultFits(String name)
Returns a file name formatted according to a standard integration.
|
private static File |
getFits(String name,
String how,
boolean advance)
Returns a formated fits file.
|
static File |
getSNFits(String name)
Returns a file name formatted according to an integration ended due to
S/N reached.
|
private static final String ABORT
private static final String SN
private static final String REGULAR
private static final DateFormat DATEFORMAT
private static final NumberFormat NUMBERFORMAT
private static final char DATECOUNTSEPARATOR
private static final String EXTENSION
private static String lastdate
private static int count
public static final File getAbortFits(String name)
public static final File getDefaultFits(String name)
public static final File getSNFits(String name)