public void changeChemicalEnergies() {
		if (type instanceof Reaction.A2_B2__2AB) {
			int idA = ((Reaction.A2_B2__2AB) type).getIDA();
			int idB = ((Reaction.A2_B2__2AB) type).getIDB();
			synchronized (bonds.getSynchronizationLock()) {
				for (Iterator it = bonds.iterator(); it.hasNext();) {
					rBond = (RadialBond) it.next();
					if (rBond.atom1.getID() == idA && rBond.atom2.getID() == idA) {
						rBond.setChemicalEnergy(type.getParameter(Reaction.A2_B2__2AB.VAA).doubleValue());
					}
					else if (rBond.atom1.getID() == idB && rBond.atom2.getID() == idB) {
						rBond.setChemicalEnergy(type.getParameter(Reaction.A2_B2__2AB.VBB).doubleValue());
					}
					else if ((rBond.atom1.getID() == idA && rBond.atom2.getID() == idB)
							|| (rBond.atom1.getID() == idB && rBond.atom2.getID() == idA)) {
						rBond.setChemicalEnergy(type.getParameter(Reaction.A2_B2__2AB.VAB).doubleValue());
					}
				}
			}
		}
	}