public interface ToolsModelsInterface
| Modifier and Type | Method and Description |
|---|---|
void |
addModelListener(ModelListener listener)
Add a listener to the model.
|
boolean |
doOperation(java.lang.String serieName,
java.lang.String serie2Name,
double xMin,
double xMax,
double sampling,
Operation operation)
Create a new serie by doing an operation between two series (ADD, SUBTRACT or DIVIDE).
|
boolean |
doOperation(java.lang.String serieName,
java.lang.String serieName2,
Operation operation)
Create a new serie by doing an operation between two series (ADD, SUBTRACT or DIVIDE).
|
boolean |
doOperationWithAValue(java.lang.String serieName,
double value,
Operation operation)
Create a new serie by doing an operation between a serie and a double value.
|
boolean |
doOperationWithOneSpectrum(java.lang.String serieName,
Operation operation)
Create a new serie by doing an operation with only a serie.
|
boolean |
doOperationWithTwoSpectra(java.lang.String serieName,
java.lang.String serie2Name,
Operation operation)
Create a new serie by doing an operation with two series.
|
boolean |
doOperationWithTwoSpectra(java.lang.String serieName,
java.lang.String serie2Name,
Operation operation,
double xMin,
double xMax,
double sampling)
Create a new serie by doing an operation with two series.
|
boolean |
doResampleAdvanced(java.lang.String serieName,
double sampling,
double initialSample,
double finalSample)
Create a new serie by doing an advanced resampling.
|
boolean |
doSmoothBox(java.lang.String serieName,
int boxSize)
Create a new serie by doing a Smooth Box operation.
|
boolean |
doTmbTaChange(java.lang.String serieName,
Operation operation,
java.util.List<java.lang.Double> efficiencyList,
java.util.List<java.lang.Double> frequencyList)
Create a new serie by doing a change with tmb/ta.
|
Operation |
getActionSelected() |
boolean |
getAdvancedSmoothHanningState() |
boolean |
getAdvancedSubtractState() |
java.util.List<java.lang.String> |
getAllCurveOfType(TypeFrequency type) |
java.util.List<java.lang.String> |
getCurveAllName() |
java.util.List<java.lang.String> |
getCurveOneName() |
java.util.List<java.lang.String> |
getCurveTwoName() |
java.lang.String |
getSelectedSpectrumAll() |
java.lang.String |
getSelectedSpectrumAllSecond() |
java.lang.String |
getSelectedSpectrumOne() |
java.lang.String |
getSelectedSpectrumRest() |
java.lang.String |
getSelectedSpectrumSky() |
java.lang.String |
getSelectedSpectrumTwo() |
TelescopeModel |
getTelescopeModel() |
ViewType |
getViewType()
Return the ViewType.
|
XAxisCassis |
getXAxisCassis()
Return the current XAxisCassis.
|
boolean |
isAdvancedParametersTwoSpectrumAllowed() |
boolean |
isAdvancedSmoothHanningAllowed() |
void |
removeModelListener(ModelListener listener)
Remove a listener.
|
void |
setActionSelected(Operation actionSelected)
Change the selected action.
|
void |
setAdvancedSmoothHanningState(boolean newState)
Change the state of the advanced Smooth Hanning panel.
|
void |
setAdvancedSubtractState(boolean newState)
Change the state of the advanced subtract panel.
|
void |
setSelectedSpectrumAll(java.lang.String selectedSpectrumAll)
Change only on model the selected spectrum "all".
|
void |
setSelectedSpectrumAllSecond(java.lang.String selectedSpectrumAllSecond)
Change only on model the second selected spectrum "all".
|
void |
setSelectedSpectrumOne(java.lang.String selectedSpectrumOne)
Change only on model the selected spectrum one.
|
void |
setSelectedSpectrumRest(java.lang.String selectedSpectrumRest)
Change only on model the selected spectrum "rest"
|
void |
setSelectedSpectrumSky(java.lang.String selectedSpectrumSky)
Change only on model the selected spectrum "sky".
|
void |
setSelectedSpectrumTwo(java.lang.String selectedSpectrumTwo)
Change only on model the selected spectrum two.
|
boolean |
smoothHanning(java.lang.String serieName,
int iterationNumber)
Do a Smooth Hanning on a serie.
|
java.util.List<java.lang.String> getCurveOneName()
java.util.List<java.lang.String> getCurveTwoName()
java.util.List<java.lang.String> getCurveAllName()
java.util.List<java.lang.String> getAllCurveOfType(TypeFrequency type)
type - The Type of the curve.boolean doOperation(java.lang.String serieName,
java.lang.String serieName2,
Operation operation)
serieName - The name of the first serie. (This is the serie whose data will be subtracted in case of SUBTRACT operation.)serieName2 - The name of the second serie. (This is the serie used to subtract in case of SUBTRACT operation.)operation - The operation to do. It must be Operation.ADD, Operation.SUBTRACT or Operation.DIVIDE.boolean doOperationWithAValue(java.lang.String serieName,
double value,
Operation operation)
serieName - The name of the serie.value - The double value.operation - The operation to do. It must be Operation.ADD_CONSTANT,
Operation.MULTIPLY_CONSTANT, Operation.RESAMPLE_AUTOMATIC, Operation.FREQUENCY_FRAME,
Operation.VLSR, Operation.SKY_TO_REST or Operation.SMOOTH_GAUSS.Operation getActionSelected()
void setActionSelected(Operation actionSelected)
actionSelected - The new selected action.boolean smoothHanning(java.lang.String serieName,
int iterationNumber)
serieName - The name of the serie on which we want to do a Smooth Haning.iterationNumber - The number of iterations.boolean isAdvancedParametersTwoSpectrumAllowed()
boolean isAdvancedSmoothHanningAllowed()
boolean getAdvancedSubtractState()
boolean getAdvancedSmoothHanningState()
void setAdvancedSmoothHanningState(boolean newState)
newState - The new state.void setAdvancedSubtractState(boolean newState)
newState - The new state.boolean doOperation(java.lang.String serieName,
java.lang.String serie2Name,
double xMin,
double xMax,
double sampling,
Operation operation)
serieName - The name of the first serie. (This is the serie whose data will be subtracted in case of SUBTRACT operation.)serie2Name - The name of the second serie. (This is the serie used to subtract in case of SUBTRACT operation.)xMin - The value of the minimum x point in the xAxis unit of the series.xMax - The value of the maximum x point in the xAxis unit of the series.sampling - The sampling used for the created XYSpectrumSeries in the xAxis unit of the series.operation - The operation to do. It must be Operation.ADD, Operation.SUBTRACT or Operation.DIVIDE.boolean doOperationWithTwoSpectra(java.lang.String serieName,
java.lang.String serie2Name,
Operation operation)
serieName - The name of the first serie.serie2Name - The name of the second serie.operation - The operation to do. It must be Operation.AVERAGE_SPECTRA
or Operation.RESAMPLE_GRID for now.boolean doOperationWithTwoSpectra(java.lang.String serieName,
java.lang.String serie2Name,
Operation operation,
double xMin,
double xMax,
double sampling)
serieName - The name of the first serie.serie2Name - The name of the second serie.operation - The operation to do. It must be Operation.AVERAGE_SPECTRA
or Operation.RESAMPLE_GRID for now.xMin - The value of the minimum x point in the xAxis unit of the series.xMax - The value of the maximum x point in the xAxis unit of the series.sampling - The sampling used for the created XYSpectrumSeries
in the xAxis unit of the series.boolean doOperationWithOneSpectrum(java.lang.String serieName,
Operation operation)
serieName - The name of the serie.operation - The operation to do. It must be Operation.REST_TO_SKY,
Operation.AIR_TO_VACUUM or Operation.VACUUM_TO_AIR.java.lang.String getSelectedSpectrumOne()
void setSelectedSpectrumOne(java.lang.String selectedSpectrumOne)
selectedSpectrumOne - The name of the selected spectrum one.java.lang.String getSelectedSpectrumTwo()
void setSelectedSpectrumTwo(java.lang.String selectedSpectrumTwo)
selectedSpectrumTwo - The name of the selected spectrum two.java.lang.String getSelectedSpectrumAll()
void setSelectedSpectrumAll(java.lang.String selectedSpectrumAll)
selectedSpectrumAll - The name of the selected spectrum "all.java.lang.String getSelectedSpectrumAllSecond()
void setSelectedSpectrumAllSecond(java.lang.String selectedSpectrumAllSecond)
selectedSpectrumAllSecond - The name of the second selected spectrum "all.java.lang.String getSelectedSpectrumRest()
void setSelectedSpectrumRest(java.lang.String selectedSpectrumRest)
selectedSpectrumRest - The name of the rest selected spectrum.java.lang.String getSelectedSpectrumSky()
void setSelectedSpectrumSky(java.lang.String selectedSpectrumSky)
selectedSpectrumSky - The name of the sky selected spectrum.TelescopeModel getTelescopeModel()
boolean doTmbTaChange(java.lang.String serieName,
Operation operation,
java.util.List<java.lang.Double> efficiencyList,
java.util.List<java.lang.Double> frequencyList)
serieName - The name of the serie used for the operation.operation - The operation to do. It must be Operation.TA_TO_TMB or Operation.TMB_TO_TA.efficiencyList - The efficiency list of the telescope.frequencyList - The frequency list of the telescope.boolean doSmoothBox(java.lang.String serieName,
int boxSize)
serieName - The name of the serie used for the operation.boxSize - The box size used for the operation.ViewType getViewType()
XAxisCassis getXAxisCassis()
boolean doResampleAdvanced(java.lang.String serieName,
double sampling,
double initialSample,
double finalSample)
serieName - The name of the serie used for the operation.sampling - The sampling used for the created XYSpectrumSeries
in the xAxis unit of the serie.initialSample - The initial sample in the xAxis unit of the serie.finalSample - The final sample in the xAxis unit of the serie.void addModelListener(ModelListener listener)
listener - The listener.void removeModelListener(ModelListener listener)
listener - The listener to remove.