org.jscience.chemistry
Class Bond

java.lang.Object
  extended by org.jscience.chemistry.Bond

public class Bond
extends java.lang.Object

The Bond class defines the invisible link that exists between two Atoms of the same Molecule


Field Summary
static int DOUBLE
          DOCUMENT ME!
static int QUADRUPLE
          DOCUMENT ME!
static int QUINTUPLE
          DOCUMENT ME!
static int SEXTUPLE
          DOCUMENT ME!
static int SIMPLE
          DOCUMENT ME!
static int TRIPLE
          DOCUMENT ME!
 
Constructor Summary
Bond(Atom a, Atom b)
          Creates a new Bond object.
Bond(Atom a, Atom b, int kind)
          Creates a new Bond object.
 
Method Summary
 double computeCovalentLength()
          DOCUMENT ME!
 double computeLength()
          DOCUMENT ME!
 Atom getAtom1()
          DOCUMENT ME!
 Atom getAtom2()
          DOCUMENT ME!
 java.util.Set getAtoms()
          DOCUMENT ME!
 double getDipoleMoment()
          DOCUMENT ME!
 double getEnergy()
          DOCUMENT ME!
 int getKind()
          DOCUMENT ME!
 double getLength()
          DOCUMENT ME!
 void setDipoleMoment(double moment)
          DOCUMENT ME!
 void setEnergy(double energy)
          DOCUMENT ME!
 void setKind(int kind)
          DOCUMENT ME!
 void setLength(double length)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE

public static final int SIMPLE
DOCUMENT ME!

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
DOCUMENT ME!

See Also:
Constant Field Values

TRIPLE

public static final int TRIPLE
DOCUMENT ME!

See Also:
Constant Field Values

QUADRUPLE

public static final int QUADRUPLE
DOCUMENT ME!

See Also:
Constant Field Values

QUINTUPLE

public static final int QUINTUPLE
DOCUMENT ME!

See Also:
Constant Field Values

SEXTUPLE

public static final int SEXTUPLE
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Bond

public Bond(Atom a,
            Atom b)
Creates a new Bond object.

Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!

Bond

public Bond(Atom a,
            Atom b,
            int kind)
Creates a new Bond object.

Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
kind - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getAtoms

public java.util.Set getAtoms()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAtom1

public Atom getAtom1()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAtom2

public Atom getAtom2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

computeCovalentLength

public double computeCovalentLength()
DOCUMENT ME!

Returns:
DOCUMENT ME!

computeLength

public double computeLength()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getLength

public double getLength()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLength

public void setLength(double length)
DOCUMENT ME!

Parameters:
length - DOCUMENT ME!

getKind

public int getKind()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setKind

public void setKind(int kind)
DOCUMENT ME!

Parameters:
kind - DOCUMENT ME!

getEnergy

public double getEnergy()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setEnergy

public void setEnergy(double energy)
DOCUMENT ME!

Parameters:
energy - DOCUMENT ME!

getDipoleMoment

public double getDipoleMoment()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDipoleMoment

public void setDipoleMoment(double moment)
DOCUMENT ME!

Parameters:
moment - DOCUMENT ME!