cds.simbad
Class MicroSimbad

java.lang.Object
  extended bycds.simbad.MicroSimbad

public class MicroSimbad
extends java.lang.Object

Class building a 'micro' Simbad database for software testing. It suppresses any need for an actual database, whatever DBMS is used.

A MicroSimbad object reads data (objects and references) from parfiles and stores them in arrays and indexes them in hashtables.

Version:
1.0 5 Jun 2002
Author:
Marc Wenger/CDS

Field Summary
(package private)  java.util.Hashtable bibcodes
           
(package private)  java.util.Hashtable idents
           
(package private)  java.util.ArrayList objectList
           
(package private)  java.util.ArrayList refList
           
 
Constructor Summary
MicroSimbad(java.io.InputStream objfile, java.io.InputStream reffile)
          MicroSimbad constructor
 
Method Summary
 java.lang.Object query(java.lang.String request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectList

java.util.ArrayList objectList

refList

java.util.ArrayList refList

idents

java.util.Hashtable idents

bibcodes

java.util.Hashtable bibcodes
Constructor Detail

MicroSimbad

public MicroSimbad(java.io.InputStream objfile,
                   java.io.InputStream reffile)
MicroSimbad constructor

Parameters:
objfile - object filename (parfile)
reffile - reference filename (parfile)
Method Detail

query

public java.lang.Object query(java.lang.String request)