|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.ccd.FitsNameGenerator
public class FitsNameGenerator
A class that generates unique fits-file names. The name is constructed in the following way:
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.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
FitsNameGenerator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public FitsNameGenerator()
| Method Detail |
|---|
public static final File getAbortFits(String name)
public static final File getDefaultFits(String name)
public static final File getSNFits(String name)
private static final File getFits(String name,
String how,
boolean advance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||