|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.OperationObservable | +--net.aerith.misao.database.GlobalDBManager
The GlobalDBManager
represents a manager of all the
databases of the PIXY System. The database consists of the image
information database, the catalog database and the magnitude
database.
Field Summary | |
protected CatalogDBManager |
catalog_manager
The catalog database. |
protected FileManager |
file_manager
The file manager. |
protected FileSystem |
file_system
The file system of the database. |
protected InformationDBManager |
info_manager
The image information database. |
protected MagnitudeDBManager |
mag_manager
The magnitude database. |
protected MonitorSet |
monitor_set
The set of monitors. |
protected boolean |
raw_database
True in the case of raw database of detected stars. |
protected boolean |
update_reported_mag
True when to update already reported magnitude. |
Fields inherited from class net.aerith.misao.util.OperationObservable |
observer_list |
Constructor Summary | |
GlobalDBManager()
Constructs a GlobalDBManager in the system
default folder. |
|
GlobalDBManager(FileSystem file_system)
Constructs a GlobalDBManager in the specified
file system. |
Method Summary | |
void |
addInformation(java.io.File xml_file,
XmlInformation info)
Adds only the information element in the XML report document into the database. |
void |
addMagnitude(XmlReport report,
java.util.Vector catalog_list)
Adds the magnitude data in the specified XML report document into the magnitude database. |
void |
addMonitor(Monitor monitor)
Adds a monitor. |
void |
addReport(java.io.File xml_file,
XmlReport report)
Adds the XML report document. |
void |
deleteMagnitude(XmlReport report,
java.util.Vector catalog_list)
Deletes the magnitude data in the specified XML report document from the magnitude database. |
void |
discard()
Discards the database. |
void |
enableReportedMagnitudeUpdate(boolean flag)
Enables/disables to update already reported magnitude. |
CatalogDBManager |
getCatalogDBManager()
Gets the catalog database manager. |
InformationDBManager |
getInformationDBManager()
Gets the image information database manager. |
MagnitudeDBManager |
getMagnitudeDBManager()
Gets the magnitude database manager. |
void |
setFileManager(FileManager file_manager)
Sets a file manager. |
void |
setRawDatabase(boolean flag)
Sets the flag to indicate whether to be a raw database of detected stars. |
private void |
updateMagnitude(XmlReport report,
java.util.Vector catalog_list,
boolean add_flag)
Updates the magnitude data in the specified XML report document in the magnitude database. |
Methods inherited from class net.aerith.misao.util.OperationObservable |
addObserver,
deleteObserver,
notifyEnd,
notifyFailed,
notifyStart,
notifySucceeded,
notifyWarned |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected FileSystem file_system
protected InformationDBManager info_manager
protected CatalogDBManager catalog_manager
protected MagnitudeDBManager mag_manager
protected FileManager file_manager
protected MonitorSet monitor_set
protected boolean update_reported_mag
protected boolean raw_database
Constructor Detail |
public GlobalDBManager() throws java.io.IOException
GlobalDBManager
in the system
default folder.public GlobalDBManager(FileSystem file_system) throws java.io.IOException
GlobalDBManager
in the specified
file system.file_system
- the file system to create the database.Method Detail |
public void setFileManager(FileManager file_manager)
file_manager
- the file manager.public void addMonitor(Monitor monitor)
monitor
- the monitor.public void enableReportedMagnitudeUpdate(boolean flag)
flag
- true when to update already reported magnitude.public void setRawDatabase(boolean flag)
flag
- true in the case of raw database of detected stars.public void discard() throws java.io.IOException
public InformationDBManager getInformationDBManager()
public CatalogDBManager getCatalogDBManager()
public MagnitudeDBManager getMagnitudeDBManager()
public void addReport(java.io.File xml_file, XmlReport report) throws java.io.IOException, DocumentIncompleteException, DuplicatedException
xml_file
- the XML file of the specified report document.report
- the XML document.public void addInformation(java.io.File xml_file, XmlInformation info) throws java.io.IOException, DocumentIncompleteException, DuplicatedException
xml_file
- the XML file of the specified report document.info
- the XML information element.public void addMagnitude(XmlReport report, java.util.Vector catalog_list) throws java.io.IOException, DocumentIncompleteException
report
- the XML document.catalog_list
- the list of catalog names to add the
magnitude into the database.public void deleteMagnitude(XmlReport report, java.util.Vector catalog_list) throws java.io.IOException, DocumentIncompleteException
report
- the XML document.catalog_list
- the list of catalog names to delete the
magnitude from the database.private void updateMagnitude(XmlReport report, java.util.Vector catalog_list, boolean add_flag) throws java.io.IOException, DocumentIncompleteException
report
- the XML document.catalog_list
- the list of catalog names to update the
magnitude in the database.add_flag
- true when to add the magnitude data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |