getNumModifiers() 공개 메소드

public getNumModifiers ( ) : long
리턴 long
예제 #1
0
        /// <summary>
        ///     Imports the SBML Modifiers to MoBi Modifiers.
        /// </summary>
        private void CreateModifiers(Reaction sbmlReaction, IReactionBuilder reactionBuilder, string reactionCompartment, Model model)
        {
            for (long i = 0; i < sbmlReaction.getNumModifiers(); i++)
            {
                var modifier = sbmlReaction.getModifier(i);
                if (ModifierInDifferentCompartment(reactionCompartment, modifier, model))
                {
                    continue;
                }

                var modifierMolecule = _sbmlInformation.GetMoleculeBySBMLId(modifier.getSpecies());
                if (modifierMolecule != null)
                {
                    reactionBuilder.AddModifier(modifierMolecule.Name);
                }
            }
        }