|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.astron.lofar.java.gui.plotter.PlotDataManager
public class PlotDataManager
This singleton class functions as the gateway between the plotter and configured data access and export classes. Its function is to instantiate these classes and make sure that calls are redirected to them. It also loads the plotter_config.properties file and makes it available to other classes.
Method Summary | |
---|---|
void |
exportData(java.lang.Object exportParams,
java.util.HashMap data)
This method exports a Plotter compliant dataset using the parameters provided. |
void |
finalize()
Cleans up the data access/export interfaces and other instance variables |
static PlotDataManager |
getInstance()
Gets the static instance of PlotDataManager. |
static java.util.ResourceBundle |
getPlotterConfigurationFile()
Retrieves the bundle of strings in the plotter_config.properties file. |
java.util.HashMap |
retrieveData(java.lang.Object constraints)
This method makes a Plotter compliant dataset using the constraints provided by the PlotPanel. |
java.util.HashMap |
updateData(java.util.HashMap currentData,
java.lang.Object constraints)
This method updates a Plotter compliant dataset using the current dataset and new constraints provided by the PlotPanel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlotDataManager getInstance()
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.util.HashMap retrieveData(java.lang.Object constraints) throws PlotterException
constraints
- The String array containing constraints for the data
access class
PlotterException
- will be thrown when an Exception occurs
inside the Data Access class, or when the Data Access class itself could not
be properly accessed due to errors in the plotter_config.properties file.public java.util.HashMap updateData(java.util.HashMap currentData, java.lang.Object constraints) throws PlotterException
currentData
- The current datasetconstraints
- The String array containing update constraints for the data
access class
PlotterException
- will be thrown when an Exception occurs
inside the Data Access class, or when the Data Access class itself could not
be properly accessed due to errors in the plotter_config.properties file.public void exportData(java.lang.Object exportParams, java.util.HashMap data) throws PlotterException
exportParams
- An object containing parameters for the data
export class.data
- the data set to be exported
PlotterException
- will be thrown when an Exception occurs
inside the Data Export class, or when the Data Export class itself could not
be properly accessed due to errors in the plotter_config.properties file.public static java.util.ResourceBundle getPlotterConfigurationFile() throws PlotterConfigurationNotFoundException
PlotterConfigurationNotFoundException
- will be thrown if the file could not be located or loaded.PlotConstants
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |