Inheritance: IReaction
Example #1
0
    /* !
     * \brief Checks that two reactions have the same ATPProducer field values.
     * \param reaction The reaction that will be compared to 'this'.
     */
    protected override bool PartialEquals(IReaction reaction)
    {
        ATPProducer producer = reaction as ATPProducer;

        return((producer != null) &&
               base.PartialEquals(reaction) &&
               (_production == producer._production));
    }
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);
    }
Example #3
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 #4
0
 //! Copy Constructor
 public ATPProducer(ATPProducer r) : base(r)
 {
     _production = r._production;
 }
Example #5
0
 //! Copy Constructor
 public ATPProducer(ATPProducer r) : base(r)
 {
   _production = r._production;
 }