Esempio n. 1
0
        public void ReactionElement(Hashtable attrs)
        {
            Reaction reaction = new Reaction(this.model, attrs);
            Boolean fast = false;
            Boolean reversible = true;

            if (attrs.Contains("fast"))
            fast = Boolean.Parse((String)attrs["fast"]);
            if (attrs.Contains("reversible"))
            reversible = Boolean.Parse((String)attrs["reversible"]);

            reaction.AddProperties(fast, reversible);
            this.model.listOfReactions.Add(reaction);

            elementStack.Push(reaction);
        }