showMol
Class MoleculeLoader

java.lang.Object
  extended by showMol.MoleculeLoader

public class MoleculeLoader
extends java.lang.Object

MoleculeLoader imports molecular structure information from a text file.

Version:
1.0
Author:
David N. Blauch

Constructor Summary
MoleculeLoader()
          Default constructor performs no action.
MoleculeLoader(java.net.URL url, int filetype, int flags)
           
 
Method Summary
static void createBonds(java.util.Vector<Atom> a, java.util.Vector<Bond> b, java.util.Vector<Wire> w)
          Creates Bonds for the a set of atoms based upon proximity.
 Atom[] getAtoms()
          Provides an array containing the Atom objects for this molecule.
 java.util.Vector<Atom> getAtomVector()
          Provides a Vector containing the Atom objects
 Bond[] getBonds()
          Provides an array containing the Bond objects for this molecule.
 Wire[] getWires()
          Provides an array containing the Wire objects for this molecule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoleculeLoader

public MoleculeLoader()
Default constructor performs no action.


MoleculeLoader

public MoleculeLoader(java.net.URL url,
                      int filetype,
                      int flags)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

createBonds

public static void createBonds(java.util.Vector<Atom> a,
                               java.util.Vector<Bond> b,
                               java.util.Vector<Wire> w)
Creates Bonds for the a set of atoms based upon proximity.

Parameters:
a - Vector containing collection of Atom objects
b - Empty Vector for containing Bond objects
w - Vector containing collection of Wire objects, must be consistent with a

getAtoms

public Atom[] getAtoms()
Provides an array containing the Atom objects for this molecule.

Returns:
array of Atom objects

getAtomVector

public java.util.Vector<Atom> getAtomVector()
Provides a Vector containing the Atom objects

Returns:
Vector of Atom objects

getBonds

public Bond[] getBonds()
Provides an array containing the Bond objects for this molecule.

Returns:
array of Bond objects

getWires

public Wire[] getWires()
Provides an array containing the Wire objects for this molecule.

Returns:
array of Wire objects