|
|||||||||
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.CatalogTreeManager | +--net.aerith.misao.database.MagnitudeDBManager
The MagnitudeDBManager
represents a database manager
of the magnitude data.
The database is classified by the star name.
Field Summary | |
protected FileManager |
file_manager
The file manager. |
protected FileSystem |
file_system
The file system of the database. |
Fields inherited from class net.aerith.misao.database.CatalogTreeManager |
EXCLUDE_SUBFOLDERS,
INCLUDE_SUBFOLDERS |
Fields inherited from class net.aerith.misao.util.OperationObservable |
observer_list |
Constructor Summary | |
MagnitudeDBManager(FileSystem file_system,
FileManager file_manager)
Constructs a MagnitudeDBManager in the
specified file system. |
Method Summary | |
void |
addElement(CatalogStar star,
XmlMagRecord record)
Adds the magnitude record. |
protected Folder |
createDBFolder(CatalogStar star)
Creates the database folder. |
XmlMagRecord |
deleteElement(CatalogStar star,
XmlMagRecord record)
Deletes the magnitude record. |
protected java.util.Vector |
getCatalogSubfolders(java.util.Vector folder_list)
Gets the sub folders in the specified path. |
java.lang.String |
getDBFolder()
Gets the top folder of the database. |
XmlMagRecord[] |
getElements(CatalogStar star)
Gets the magnitude records of the specified star. |
protected XmlMagRecord[] |
getElements(Folder db_folder)
Gets the magnitude records in the specified folder. |
protected java.util.Hashtable |
getHierarchy(int method)
Gets the folder hierarchy of the database. |
protected java.util.Vector |
getStars(java.util.Vector folder_list)
Gets the stars in the specified path. |
java.util.Vector |
seekVariable(Folder folder,
VariabilityChecker checker)
Browses the specified folder in the magnitude database recurrsively and seeks the variable stars. |
java.util.Vector |
seekVariable(VariabilityChecker checker)
Browses whole of the magnitude database and seeks the variable stars. |
void |
setFileManager(FileManager file_manager)
Sets a file manager. |
private void |
setHierarchy(java.util.Hashtable hash,
Folder folder,
int level)
Sets the folder hierarchy of the magnitude database recurrsively. |
Methods inherited from class net.aerith.misao.database.CatalogTreeManager |
getCatalogHierarchy,
getCatalogSubfolders,
getStars |
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 FileManager file_manager
Constructor Detail |
public MagnitudeDBManager(FileSystem file_system, FileManager file_manager)
MagnitudeDBManager
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.public java.lang.String getDBFolder()
public void addElement(CatalogStar star, XmlMagRecord record) throws java.io.IOException
star
- the catalog star.record
- the magnitude record.public XmlMagRecord deleteElement(CatalogStar star, XmlMagRecord record) throws java.io.IOException
star
- the catalog star.record
- the magnitude record.public XmlMagRecord[] getElements(CatalogStar star) throws java.io.IOException
star
- the catalog star.protected XmlMagRecord[] getElements(Folder db_folder) throws java.io.IOException
db_folder
- the database folder.protected Folder createDBFolder(CatalogStar star) throws java.io.IOException
star
- the catalog star.public java.util.Vector seekVariable(VariabilityChecker checker) throws java.io.IOException
checker
- the checker of the variability.public java.util.Vector seekVariable(Folder folder, VariabilityChecker checker) throws java.io.IOException
folder
- the folder to seek.checker
- the checker of the variability.protected java.util.Hashtable getHierarchy(int method) throws java.io.IOException
method
- the method.private void setHierarchy(java.util.Hashtable hash, Folder folder, int level)
hash
- the hash table to set the hierarchy.folder
- the folder.level
- the acceptable nest level.protected java.util.Vector getCatalogSubfolders(java.util.Vector folder_list) throws java.io.IOException
folder_list
- the list of folders.protected java.util.Vector getStars(java.util.Vector folder_list) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
folder_list
- the list of folders.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |