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.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
accessor
protected CelestialDivisionMapDBAccessor accessor
- The sequential accessor.
next_record
protected XmlDBRecord next_record
- The next record.
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.
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.