public void addToReactionEngine(int mediumID, ReactionEngine reactionEngine) { Debug.Log("module promoter: "+_promoterName); PromoterProprieties proprieties = getProprieties(); Debug.Log("proprieties="+proprieties.ToString()); IReaction reaction = Promoter.buildPromoterFromProps(proprieties); Debug.Log("reaction="+reaction); reactionEngine.addReactionToMedium(mediumID, reaction); }
private void addToReactionEngine(Device device) { Logger.Log("Equipment::addToReactionEngine reactions from device " + device.getInternalName() + " (" + device.ToString() + ")", Logger.Level.TRACE); LinkedList <IReaction> reactions = device.getReactions(); Logger.Log("Equipment::addToReactionEngine reactions=" + Logger.ToString <IReaction>(reactions) + " from " + device, Logger.Level.INFO); foreach (IReaction reaction in reactions) { Logger.Log("Equipment::addToReactionEngine adding reaction=" + reaction, Logger.Level.TRACE); _reactionEngine.addReactionToMedium(_celliaMediumID, reaction); } }