Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes
WIMSchem.CatalogLoader Class Reference
Collaboration diagram for WIMSchem.CatalogLoader:
Collaboration graph

List of all members.

Public Member Functions

 CatalogLoader (CatalogWindow Wnd, FileInputStream IStr)
void run ()
void Zap ()
int Count ()
Molecule Get (int N)

Package Attributes

CatalogWindow wnd
FileInputStream istr
boolean zap = false
ArrayList< Long > filepos = new ArrayList<Long>()
Object mutex = new Object()

Detailed Description

Definition at line 239 of file

Constructor & Destructor Documentation

WIMSchem.CatalogLoader.CatalogLoader ( CatalogWindow  Wnd,
FileInputStream  IStr 
) [inline]

Definition at line 247 of file


Member Function Documentation

int WIMSchem.CatalogLoader.Count ( ) [inline]

Definition at line 284 of file

{synchronized(mutex) {return filepos.size();}}

Here is the caller graph for this function:

Molecule WIMSchem.CatalogLoader.Get ( int  N) [inline]

Definition at line 285 of file

           synchronized(mutex) {return MoleculeStream.FetchFromPosition(istr,filepos.get(N).longValue());}
       catch (IOException e) {return null;}

Here is the call graph for this function:

Here is the caller graph for this function:

void ( ) [inline]

Definition at line 253 of file

           long pos=0,nextpos;
           while (!zap)
              synchronized (mutex) {nextpos=MoleculeStream.FindNextPosition(istr,pos);}
              if (nextpos<0) break;

              // inform the main window that is has work to do!
              EventQueue.invokeLater(new Runnable()
                  public void run()
       catch (IOException e) 
           JOptionPane.showMessageDialog(null,e.toString(),"Catalog Load Failed",JOptionPane.ERROR_MESSAGE);

Here is the call graph for this function:

void WIMSchem.CatalogLoader.Zap ( ) [inline]

Definition at line 283 of file


Here is the caller graph for this function:

Member Data Documentation

ArrayList<Long> WIMSchem.CatalogLoader.filepos = new ArrayList<Long>() [package]

Definition at line 244 of file

FileInputStream WIMSchem.CatalogLoader.istr [package]

Definition at line 242 of file

Object WIMSchem.CatalogLoader.mutex = new Object() [package]

Definition at line 245 of file

Definition at line 241 of file

Definition at line 243 of file

The documentation for this class was generated from the following file: