public class RotationalDataModel extends DataModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BAD_FLUX_EVENT |
static java.lang.String |
BAD_FREQUENCY_TELESCOPE_EVENT |
static java.lang.String |
BAD_FWHM_EVENT |
static java.lang.String |
BAD_TELESCOPE_EVENT |
static java.lang.String |
NOT_ENOUGH_POINT_EVENT |
static java.lang.String |
NOTHING_TO_DISPLAY_EVENT |
static java.lang.String |
ROTATIONAL_CALIBRATION_EVENT |
static java.lang.String |
ROTATIONAL_NAME_DATA_EVENT |
static java.lang.String |
ROTATIONAL_NEW_DATA |
static java.lang.String |
ROTATIONAL_RMS_EVENT |
| Constructor and Description |
|---|
RotationalDataModel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
correctCalibration(double calibration)
Correct calibration and delta if needed.
|
void |
correctTelescope(java.util.Map<java.lang.String,java.lang.String> mapCorrection)
Do a correction on Telescope (telescope file link not present on
and the correction).
|
RotationalFile |
getData()
Return the data (as a
RotationalFile). |
java.lang.String |
getNameData()
Return the name of the data.
|
void |
loadConfig(java.util.Properties prop) |
void |
loadData(java.io.File file)
Load a file.
|
void |
loadData(java.lang.String path)
Create a Java File from a path or download a file if the provided path is an url the load the file.
|
void |
removePoints(java.util.List<PointInformation> badPoints)
Remove a List of
PointInformation from the data. |
void |
saveConfig(BufferedWriterProperty out) |
void |
setData(RotationalFile rotationalFile)
Set the data.
|
void |
setDataAsOk()
Mark the data as corrected/OK.
|
void |
setNameData(java.lang.String nameData)
Change the name of the data.
|
addModelListener, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String ROTATIONAL_NAME_DATA_EVENT
public static final java.lang.String ROTATIONAL_NEW_DATA
public static final java.lang.String ROTATIONAL_CALIBRATION_EVENT
public static final java.lang.String ROTATIONAL_RMS_EVENT
public static final java.lang.String BAD_FWHM_EVENT
public static final java.lang.String BAD_FLUX_EVENT
public static final java.lang.String BAD_TELESCOPE_EVENT
public static final java.lang.String BAD_FREQUENCY_TELESCOPE_EVENT
public static final java.lang.String NOT_ENOUGH_POINT_EVENT
public static final java.lang.String NOTHING_TO_DISPLAY_EVENT
public void loadData(java.lang.String path)
path - The path or url of the file to loadpublic void loadData(java.io.File file)
file - The file to load.public void setData(RotationalFile rotationalFile)
rotationalFile - The rotational file to set.public RotationalFile getData()
RotationalFile).public java.lang.String getNameData()
public final void setNameData(java.lang.String nameData)
nameData - The name of the data to set.public void saveConfig(BufferedWriterProperty out) throws java.io.IOException
saveConfig in class DataModeljava.io.IOExceptionpublic void loadConfig(java.util.Properties prop)
throws java.io.IOException
loadConfig in class DataModeljava.io.IOExceptionpublic void correctCalibration(double calibration)
calibration - The new calibration.public void removePoints(java.util.List<PointInformation> badPoints)
PointInformation from the data.badPoints - The List of PointInformation to remove.public void correctTelescope(java.util.Map<java.lang.String,java.lang.String> mapCorrection)
mapCorrection - The Map of correction as public void setDataAsOk()