/* ! * \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)); }
/*! * \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); }
/*! \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); }
//! Copy Constructor public ATPProducer(ATPProducer r) : base(r) { _production = r._production; }