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); } }
public ModifierLinkCommand(ModifierSpeciesReference modifierReference, Reaction reaction, bool adding) { this.modifierReference = modifierReference; this.reaction = reaction; this.adding = adding; }