@Test public void testGetEnergies() { IAtom sourceAtom = new Atom("C"); IAtom targetAtom = new Atom("C"); Order bondOrder = Order.SINGLE; BondEnergies instance = new BondEnergies(); Integer expResult = 346; Integer result = instance.getEnergies(sourceAtom, targetAtom, bondOrder); Assert.assertEquals(expResult, result); }
public synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder) { String sourceAtomSymbol = null; if (!(sourceAtom instanceof IQueryAtom)) { sourceAtomSymbol = sourceAtom.getSymbol(); } else { return 0; } String targetAtomSymbol = targetAtom.getSymbol(); return getEnergies(sourceAtomSymbol, targetAtomSymbol, bondOrder); }
BondEnergies { public synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder) { String sourceAtomSymbol = null; if (!(sourceAtom instanceof IQueryAtom)) { sourceAtomSymbol = sourceAtom.getSymbol(); } else { return 0; } String targetAtomSymbol = targetAtom.getSymbol(); return getEnergies(sourceAtomSymbol, targetAtomSymbol, bondOrder); } }
BondEnergies { public synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder) { String sourceAtomSymbol = null; if (!(sourceAtom instanceof IQueryAtom)) { sourceAtomSymbol = sourceAtom.getSymbol(); } else { return 0; } String targetAtomSymbol = targetAtom.getSymbol(); return getEnergies(sourceAtomSymbol, targetAtomSymbol, bondOrder); } protected  BondEnergies(); }
BondEnergies { public synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder) { String sourceAtomSymbol = null; if (!(sourceAtom instanceof IQueryAtom)) { sourceAtomSymbol = sourceAtom.getSymbol(); } else { return 0; } String targetAtomSymbol = targetAtom.getSymbol(); return getEnergies(sourceAtomSymbol, targetAtomSymbol, bondOrder); } protected  BondEnergies(); synchronized static BondEnergies getInstance(); synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder); synchronized int getEnergies(String sourceAtom, String targetAtom, Order bondOrder); synchronized int getEnergies(IBond bond); }
BondEnergies { public synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder) { String sourceAtomSymbol = null; if (!(sourceAtom instanceof IQueryAtom)) { sourceAtomSymbol = sourceAtom.getSymbol(); } else { return 0; } String targetAtomSymbol = targetAtom.getSymbol(); return getEnergies(sourceAtomSymbol, targetAtomSymbol, bondOrder); } protected  BondEnergies(); synchronized static BondEnergies getInstance(); synchronized int getEnergies(IAtom sourceAtom, IAtom targetAtom, Order bondOrder); synchronized int getEnergies(String sourceAtom, String targetAtom, Order bondOrder); synchronized int getEnergies(IBond bond);  }