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);
    }
Example #2
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);
 }