ReactionEngine { public ReactionEngine() { try { IReactionProcess reaction = (IReactionProcess) this; EntryReact entry = initiateDictionary("reaction-processes", (IReactionProcess) reaction); initiateParameterMap2(entry); reaction.setParameterList(getParameterList()); if (entry.getMechanism() != null && !entry.getMechanism().isEmpty()) extractMechanism(entry); } catch (Exception e) { e.printStackTrace(); } } ReactionEngine(); void setParameterList(List<IParameterReact> params); List<IParameterReact> getParameterList(); IParameterReact getParameterClass(Class<?> paramClass); public HashMap<String, Object> paramsMap; public IReactionMechanism mechanism; public List<IParameterReact> paramsMap2; }
@Test public void testReactionEngine() throws Exception { ReactionEngine engine = new AdductionProtonLPReaction(); Assert.assertNotNull(engine); }