public interface Bond extends Serializable
Modifier and Type | Method and Description |
---|---|
Atom |
getAtomA()
Gets atom 'A' of this bond.
|
Atom |
getAtomB()
Gets atom 'B' of this bond.
|
int |
getBondOrder()
Gets the bond order of this bond.
|
double |
getLength()
Gets the distance between the two atoms of this bond.
|
Atom |
getOther(Atom exclude)
A utility method to get the other atom in a bond, given one of its atoms.
|
Atom getAtomA()
getAtomB()
Atom getAtomB()
getAtomA()
Atom getOther(Atom exclude)
atom == bond.getAtomA() ? bond.getAtomB() : bond.getAtomA()
.
Note: Comparison of atoms in this method is done with
==
, not equals
.
exclude
- the atom of the bond to not returnIllegalArgumentException
- if the passed atom is not in this bondint getBondOrder()
double getLength()
This distance is calculated by Calc.getDistance(Atom, Atom)
, but
this method will suppress the empty threat of a
StructureException
that method makes.
Copyright © 2000–2019 BioJava. All rights reserved.