本文整理匯總了C#中libsbmlcs.Model.createModifier方法的典型用法代碼示例。如果您正苦於以下問題:C# Model.createModifier方法的具體用法?C# Model.createModifier怎麽用?C# Model.createModifier使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類libsbmlcs.Model
的用法示例。
在下文中一共展示了Model.createModifier方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: test_SpeciesReference_Modifier_ancestor_create_model
public void test_SpeciesReference_Modifier_ancestor_create_model()
{
Model m = new Model(2,4);
Reaction r = m.createReaction();
ModifierSpeciesReference sr = m.createModifier();
ListOf lo = r.getListOfModifiers();
assertTrue( sr.getAncestorOfType(libsbml.SBML_REACTION) == r );
assertTrue( sr.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
assertTrue( sr.getAncestorOfType(libsbml.SBML_MODEL) == m );
assertTrue( sr.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
assertTrue( sr.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
ModifierSpeciesReference obj = r.getModifier(0);
assertTrue( obj.getAncestorOfType(libsbml.SBML_REACTION) == r );
assertTrue( obj.getAncestorOfType(libsbml.SBML_LIST_OF) == lo );
assertTrue( obj.getAncestorOfType(libsbml.SBML_MODEL) == m );
assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null );
assertTrue( obj.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null );
}
示例2: test_SpeciesReference_Modifier_parent_create_model
public void test_SpeciesReference_Modifier_parent_create_model()
{
Model m = new Model(2,4);
Reaction r = m.createReaction();
ModifierSpeciesReference sr = m.createModifier();
ListOf lo = r.getListOfModifiers();
assertTrue( lo == sr.getParentSBMLObject() );
assertTrue( lo == r.getModifier(0).getParentSBMLObject() );
assertTrue( r == lo.getParentSBMLObject() );
}
示例3: test_Model_createModifier
public void test_Model_createModifier()
{
Model m = new Model(2,2);
Reaction p = m.createReaction();
ModifierSpeciesReference sr = m.createModifier();
assertTrue( p.getNumModifiers() == 1 );
assertTrue( (sr).getLevel() == 2 );
assertTrue( (sr).getVersion() == 2 );
m = null;
}