|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.database.InformationDBManager
The InformationDBManager
represents a database manager
of the image information.
The database consists of three parts with different classification policies. One is classified by XML file path. Another one is by image date. And the other one is by the limiting magnitude, the field of view, and the R.A. and Decl. of the image center.
Field Summary | |
protected FileManager |
file_manager
The file manager. |
protected FileSystem |
file_system
The file system of the database. |
Constructor Summary | |
InformationDBManager(FileSystem file_system,
FileManager file_manager)
Constructs an InformationDBManager in the
specified file system. |
Method Summary | |
void |
addElement(java.io.File xml_file,
XmlInformation info)
Adds the image information. |
protected Folder |
createDateOrientedDBFolder(JulianDay jd)
Creates the database folder classified by the image date. |
protected Folder |
createFieldOrientedDBFolder(double limit_mag,
double field_radius,
Coor center_coor)
Creates the database folder classified by the field. |
protected Folder |
createPathOrientedDBFolder(java.lang.String xml_path)
Creates the database folder classified by the XML file path. |
XmlInformation |
deleteElement(java.lang.String xml_path)
Deletes the image information. |
InformationDBAccessor |
getAccessor()
Gets the sequential accessor to all the XML image information element in the database. |
InformationDBAccessor |
getAccessor(CelestialDivisionMap map,
double brightest_limiting_mag,
double faintest_limiting_mag)
Gets the sequential accessor to the XML image information element which overlaps the specified map. |
InformationDBAccessor |
getAccessor(Coor coor,
double brightest_limiting_mag,
double faintest_limiting_mag)
Gets the sequential accessor to the XML image information element which covers the specified R.A. |
protected XmlDBAccessor |
getAccessor(java.lang.String base_folder,
java.util.Vector folder_list)
Gets the sequential accessor to the XML image information elements in the specified folder hierarchy. |
InformationDBAccessor |
getAccessor(java.util.Vector info_list,
double brightest_limiting_mag,
double faintest_limiting_mag)
Gets the sequential accessor to the XML image information element which overlaps on any images in the specified list. |
XmlDBAccessor |
getDateOrientedAccessor(java.util.Vector folder_list)
Gets the sequential accessor to the XML image information elements in the specified folder hierarchy in the date oriented database. |
protected java.lang.String |
getDateOrientedDBFolder()
Gets the top folder of the database classified by the image date. |
java.util.Vector |
getDateOrientedFolders(java.util.Vector folder_list)
Gets the sub folders under the specified folder hierarchy in the date oriented database. |
XmlInformation |
getElement(java.lang.String xml_path)
Gets the image information of the specified XML file path. |
protected java.lang.String |
getFieldOrientedDBFolder()
Gets the top folder of the database classified by the field. |
protected java.util.Vector |
getFolders(java.lang.String base_folder,
java.util.Vector folder_list)
Gets the sub folders under the specified folder hierarchy. |
java.lang.String |
getPath(java.io.File file)
Gets the relative path of the XML file. |
XmlDBAccessor |
getPathOrientedAccessor(java.util.Vector folder_list)
Gets the sequential accessor to the XML image information elements in the specified folder hierarchy in the path oriented database. |
protected java.lang.String |
getPathOrientedDBFolder()
Gets the top folder of the database classified by the XML file path. |
java.util.Vector |
getPathOrientedFolders(java.util.Vector folder_list)
Gets the sub folders under the specified folder hierarchy in the path oriented database. |
void |
setFileManager(FileManager file_manager)
Sets a file manager. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected FileSystem file_system
protected FileManager file_manager
Constructor Detail |
public InformationDBManager(FileSystem file_system, FileManager file_manager)
InformationDBManager
in the
specified file system.file_system
- the file system to create the database.file_manager
- the file manager.Method Detail |
public void setFileManager(FileManager file_manager)
file_manager
- the file manager.protected java.lang.String getPathOrientedDBFolder()
protected java.lang.String getDateOrientedDBFolder()
protected java.lang.String getFieldOrientedDBFolder()
public java.lang.String getPath(java.io.File file)
file
- the XML file.public void addElement(java.io.File xml_file, XmlInformation info) throws java.io.IOException, DocumentIncompleteException, DuplicatedException
xml_file
- the XML file which contains the specified
information.info
- the image information to add to the database.public XmlInformation deleteElement(java.lang.String xml_path) throws java.io.IOException
xml_path
- the XML file path.public XmlInformation getElement(java.lang.String xml_path) throws java.io.IOException
xml_path
- the XML file path.protected Folder createPathOrientedDBFolder(java.lang.String xml_path) throws java.io.IOException
xml_path
- the path of the XML file.protected Folder createDateOrientedDBFolder(JulianDay jd) throws java.io.IOException
jd
- the image data.protected Folder createFieldOrientedDBFolder(double limit_mag, double field_radius, Coor center_coor) throws java.io.IOException
limit_mag
- the limiting magnitude.field_radius
- the field radius in degree.center_coor
- the R.A. and Decl. of the center.public java.util.Vector getDateOrientedFolders(java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.public java.util.Vector getPathOrientedFolders(java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.protected java.util.Vector getFolders(java.lang.String base_folder, java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.public XmlDBAccessor getDateOrientedAccessor(java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.public XmlDBAccessor getPathOrientedAccessor(java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.protected XmlDBAccessor getAccessor(java.lang.String base_folder, java.util.Vector folder_list) throws java.io.IOException
folder_list
- the folder hierarchy.public InformationDBAccessor getAccessor()
public InformationDBAccessor getAccessor(Coor coor, double brightest_limiting_mag, double faintest_limiting_mag)
coor
- the R.A. and Decl.brightest_limiting_mag
- the brighter limit of the
limiting magnitude.faintest_limiting_mag
- the fainter limit of the limiting
magnitude.public InformationDBAccessor getAccessor(java.util.Vector info_list, double brightest_limiting_mag, double faintest_limiting_mag)
info_list
- the list of image information
elements.brightest_limiting_mag
- the brighter limit of the
limiting magnitude.faintest_limiting_mag
- the fainter limit of the limiting
magnitude.public InformationDBAccessor getAccessor(CelestialDivisionMap map, double brightest_limiting_mag, double faintest_limiting_mag)
map
- the celestial map.
elements.brightest_limiting_mag
- the brighter limit of the
limiting magnitude.faintest_limiting_mag
- the fainter limit of the limiting
magnitude.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |