|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.proteinshader.structure.exceptions.BondLengthException
public class BondLengthException
Can be used to report that a Bond is unacceptably short or long.
| Constructor Summary | |
|---|---|
BondLengthException(double calculatedLength,
double expectedLength,
double toleranceFactor,
AtomEnum srcAtomType,
AtomEnum dstAtomType,
int srcAtomSerialNo,
int dstAtomSerialNo)
Sets the default message to "A Bond length was unacceptable". |
|
BondLengthException(String message,
double calculatedLength,
double expectedLength,
double toleranceFactor,
AtomEnum srcAtomType,
AtomEnum dstAtomType,
int srcAtomSerialNo,
int dstAtomSerialNo)
The message given this constructor can be retrieved using getMessage(). |
|
| Method Summary | |
|---|---|
double |
getCalculatedLength()
Returns the calculated Bond length in angstroms. |
int |
getDstAtomSerialNo()
Returns the destination Atom PDB serial number. |
AtomEnum |
getDstAtomType()
Returns the destination Atom type as an AtomEnum. |
double |
getExpectedLength()
Returns the expected Bond length in angstroms. |
int |
getSrcAtomSerialNo()
Returns the source Atom PDB serial number. |
AtomEnum |
getSrcAtomType()
Returns the source Atom type as an AtomEnum. |
double |
getToleranceFactor()
Returns the tolerance factor used to determine that the calulated length was too far from the expected length. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BondLengthException(double calculatedLength,
double expectedLength,
double toleranceFactor,
AtomEnum srcAtomType,
AtomEnum dstAtomType,
int srcAtomSerialNo,
int dstAtomSerialNo)
calculatedLength - the calculated bond length in angstroms.expectedLength - the expected bond length in angstroms.toleranceFactor - the tolerance factor for the length.srcAtomType - the source Atom type.dstAtomType - the destination Atom type.srcAtomSerialNo - the source atom PDB serial number.dstAtomSerialNo - the destination Atom PDB serial number.
public BondLengthException(String message,
double calculatedLength,
double expectedLength,
double toleranceFactor,
AtomEnum srcAtomType,
AtomEnum dstAtomType,
int srcAtomSerialNo,
int dstAtomSerialNo)
message - an error message.calculatedLength - the calculated bonc length in angstroms.expectedLength - the expected bond length in angstroms.toleranceFactor - the tolerance factor for the length.srcAtomType - the source Atom type.dstAtomType - the destination Atom type.srcAtomSerialNo - the source Atom PDB serial number.dstAtomSerialNo - the destination Atom PDB serial number.| Method Detail |
|---|
public double getCalculatedLength()
public double getExpectedLength()
public double getToleranceFactor()
public AtomEnum getSrcAtomType()
public AtomEnum getDstAtomType()
public int getSrcAtomSerialNo()
public int getDstAtomSerialNo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||