/*! \brief Add a new reaction to the medium \param reaction The reaction to add. */ public void addReaction(IReaction reaction) { if (reaction != null) { reaction.setMedium(this); reaction.enableEnergy = _enableEnergy; _reactions.AddLast(reaction); } else Debug.Log("Cannot add this reaction because null was given"); }
/*! * \brief Add a new reaction to the medium * \param reaction The reaction to add. */ public void addReaction(IReaction reaction) { //Logger.Log("Medium::addReaction to medium#"+_numberId+" with "+reaction, Logger.Level.DEBUG); if (reaction != null) { reaction.setMedium(this); reaction.enableEnergy = _enableEnergy; _reactions.AddLast(reaction); //Logger.Log("Medium::addReaction _reactions="+Logger.ToString<IReaction>(_reactions), Logger.Level.DEBUG); } else { Logger.Log("Medium::addReaction Cannot add this reaction because null was given", Logger.Level.WARN); } }
/*! \brief Add a new reaction to the medium \param reaction The reaction to add. */ public void addReaction(IReaction reaction) { //Logger.Log("Medium::addReaction to medium#"+_numberId+" with "+reaction, Logger.Level.DEBUG); if (reaction != null) { reaction.setMedium(this); reaction.enableEnergy = _enableEnergy; _reactions.AddLast(reaction); //Logger.Log("Medium::addReaction _reactions="+Logger.ToString<IReaction>(_reactions), Logger.Level.DEBUG); } else Logger.Log("Medium::addReaction Cannot add this reaction because null was given", Logger.Level.WARN); }