示例#1
0
文件: Reader.cs 项目: dorchard/mucell
        public void ModifierSpeciesReferenceElement(Hashtable attrs)
        {
            String speciesId;
            Species species;

            try
            {
                speciesId = (String)attrs["species"];
                species = (Species)this.model.findObject(speciesId);

                Reaction reaction = (Reaction)elementStack.Peek();
                ModifierSpeciesReference modifierRef = new ModifierSpeciesReference(species);
                reaction.Modifiers.Add(modifierRef);
            }
            catch (Exception e)
            {
                Console.WriteLine("modifierSpeciesReference element missing required attribute 'species'");
                throw (e);
            }
        }
示例#2
0
 public ModifierLinkCommand(ModifierSpeciesReference modifierReference, Reaction reaction, bool adding)
 {
     this.modifierReference = modifierReference;
     this.reaction = reaction;
     this.adding = adding;
 }