net.aerith.misao.database
Class CatalogDBAccessor

java.lang.Object
  |
  +--net.aerith.misao.database.CatalogDBAccessor

public class CatalogDBAccessor
extends java.lang.Object

The CatalogDBAccessor represents a sequential accessor to the catalog star records within the specified circular area in the catalog database.


Field Summary
protected  CelestialDivisionMapDBAccessor accessor
          The sequential accessor.
protected  XmlDBRecord next_record
          The next record.
 
Constructor Summary
CatalogDBAccessor(FileSystem file_system, Folder db_folder, CelestialDivisionMap map)
          Constructs a CatalogDBAccessor.
 
Method Summary
 CatalogStar getFirstElement()
          Gets the first star object.
 CatalogStar getNextElement()
          Gets the next star object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

accessor

protected CelestialDivisionMapDBAccessor accessor
The sequential accessor.

next_record

protected XmlDBRecord next_record
The next record.
Constructor Detail

CatalogDBAccessor

public CatalogDBAccessor(FileSystem file_system,
                         Folder db_folder,
                         CelestialDivisionMap map)
Constructs a CatalogDBAccessor.
Parameters:
file_system - the file system of the database.
db_folder - the folder.
map - the celestial division map.
Method Detail

getFirstElement

public CatalogStar getFirstElement()
                            throws java.io.IOException
Gets the first star object.
Returns:
the first star object.
Throws:
java.io.IOException - if I/O error occurs.

getNextElement

public CatalogStar getNextElement()
                           throws java.io.IOException
Gets the next star object.
Returns:
the next star object.
Throws:
java.io.IOException - if I/O error occurs.