Reaction extends ChemObject implements Serializable, IReaction, Cloneable { public Reaction() { this.reactants = getBuilder().newInstance(IAtomContainerSet.class); this.products = getBuilder().newInstance(IAtomContainerSet.class); this.agents = getBuilder().newInstance(IAtomContainerSet.class); this.map = new Mapping[growArraySize]; mappingCount = 0; reactionDirection = IReaction.Direction.FORWARD; } Reaction(); @Override int getReactantCount(); @Override int getProductCount(); @Override IAtomContainerSet getReactants(); @Override void setReactants(IAtomContainerSet setOfMolecules); @Override IAtomContainerSet getProducts(); @Override void setProducts(IAtomContainerSet setOfMolecules); @Override IAtomContainerSet getAgents(); @Override Iterable<IMapping> mappings(); @Override void addReactant(IAtomContainer reactant); @Override void addAgent(IAtomContainer agent); @Override void addReactant(IAtomContainer reactant, Double coefficient); @Override void addProduct(IAtomContainer product); @Override void addProduct(IAtomContainer product, Double coefficient); @Override Double getReactantCoefficient(IAtomContainer reactant); @Override Double getProductCoefficient(IAtomContainer product); @Override boolean setReactantCoefficient(IAtomContainer reactant, Double coefficient); @Override boolean setProductCoefficient(IAtomContainer product, Double coefficient); @Override Double[] getReactantCoefficients(); @Override Double[] getProductCoefficients(); @Override boolean setReactantCoefficients(Double[] coefficients); @Override boolean setProductCoefficients(Double[] coefficients); @Override void setDirection(IReaction.Direction direction); @Override IReaction.Direction getDirection(); @Override void addMapping(IMapping mapping); @Override void removeMapping(int pos); @Override IMapping getMapping(int pos); @Override int getMappingCount(); @Override String toString(); @Override Object clone();  }
@Test public void testReaction() { IReaction polymer = new Reaction(); Assert.assertTrue(polymer instanceof Reaction); }
@Test public void testReaction() { IReaction reaction = new Reaction(); Assert.assertNotNull(reaction); Assert.assertEquals(0, reaction.getReactantCount()); Assert.assertEquals(0, reaction.getProductCount()); Assert.assertEquals(IReaction.Direction.FORWARD, reaction.getDirection()); }