@TestClass(value="org.openscience.cdk.smsd.helper.BondEnergyTest") public class BondEnergy extends Object
Constructor and Description |
---|
BondEnergy(String symbol1,
String symbol2,
IBond.Order order,
int energy)
Creates a new bond energy for the given elements and
bond order.
|
Modifier and Type | Method and Description |
---|---|
IBond.Order |
getBondOrder()
Returns the bond order for this bond type energy.
|
int |
getEnergy()
Returns the energy for this bond type.
|
String |
getSymbolFirstAtom()
Returns the element symbol of the first atom.
|
String |
getSymbolSecondAtom()
Returns the element symbol of the second atom.
|
boolean |
matches(IBond bond) |
@TestMethod(value="BondEnergyTest") public BondEnergy(String symbol1, String symbol2, IBond.Order order, int energy)
symbol1
- element symbol for the first atomsymbol2
- element symbol for the second atomorder
- bond orderenergy
- energy for this bond type@TestMethod(value="testGetSymbolFirstAtom") public String getSymbolFirstAtom()
String
@TestMethod(value="testGetSymbolSecondAtom") public String getSymbolSecondAtom()
String
@TestMethod(value="testGetBondOrder") public IBond.Order getBondOrder()
IBond.Order
@TestMethod(value="testGetEnergy") public int getEnergy()
public boolean matches(IBond bond)