ATPProducer.setProduction C# (CSharp) Method

setProduction() public method

public setProduction ( float v ) : void
v float
return void
  public void setProduction(float v) { _production = v; }
  public float getProduction() { return _production; }

Usage Example

Example #1
0
    /*!
     * \brief This function initialize the production of ATP.
     * \details It create a reaction of type ATPProducer
     */
    private void initATPProduction()
    {
        ATPProducer reaction = new ATPProducer();

        reaction.setProduction(_energyProductionRate);
        reaction.setName("ATP Production");
        if (_reactions == null)
        {
            setReactions(new LinkedList <IReaction>());
        }
        addReaction(reaction);
    }
All Usage Examples Of ATPProducer::setProduction