setMedium() public method

public setMedium ( Medium, med ) : void
med Medium,
return void
Example #1
0
 /*!
 \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");
 }
Example #2
0
 /*!
  * \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);
     }
 }
Example #3
0
  /*!
    \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);

  }