本文整理汇总了C++中Transition::getNumOutputs方法的典型用法代码示例。如果您正苦于以下问题:C++ Transition::getNumOutputs方法的具体用法?C++ Transition::getNumOutputs怎么用?C++ Transition::getNumOutputs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transition
的用法示例。
在下文中一共展示了Transition::getNumOutputs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: string
END_TEST
START_TEST (test_QualExtension_read_L3V1V1_defaultNS)
{
string filename = string(TestDataDirectory) + "qual-example1-defaultNS.xml";
SBMLDocument *document = readSBMLFromFile(filename.c_str());
fail_unless(document->getPackageName() == "core");
Model *model = document->getModel();
fail_unless(model != NULL);
fail_unless(model->getPackageName() == "core");
// get the Qualitative species
QualModelPlugin* mplugin = static_cast<QualModelPlugin*>(model->getPlugin("qual"));
fail_unless(mplugin != NULL);
fail_unless(mplugin->getNumQualitativeSpecies() == 1);
fail_unless(mplugin->getListOfQualitativeSpecies()->getPackageName() == "qual");
fail_unless(mplugin->getNumTransitions() == 1);
fail_unless(mplugin->getListOfTransitions()->getPackageName() == "qual");
QualitativeSpecies* qs = mplugin->getQualitativeSpecies(0);
fail_unless(qs->getPackageName() == "qual");
fail_unless(qs->getId() == "s1");
fail_unless(qs->getName() == "sss");
fail_unless(qs->getMetaId() == "_ddd");
fail_unless(qs->getCompartment() == "c");
fail_unless(qs->getConstant() == false);
fail_unless(qs->getInitialLevel() == 1);
fail_unless(qs->getMaxLevel() == 4);
Transition* t = mplugin->getTransition(0);
fail_unless(t->getPackageName() == "qual");
fail_unless(t->getId() == "d");
fail_unless(t->getNumInputs() == 1);
fail_unless(t->getNumOutputs() == 1);
fail_unless(t->getNumFunctionTerms() == 1);
fail_unless(t->isSetDefaultTerm() == true);
Input *i = t->getInput(0);
fail_unless(i->getPackageName() == "qual");
fail_unless(i->getId() == "RD");
fail_unless(i->getName() == "aa" );
fail_unless(i->getQualitativeSpecies() == "s1");
fail_unless(i->getTransitionEffect() == INPUT_TRANSITION_EFFECT_NONE );
fail_unless(i->getSign() == INPUT_SIGN_NEGATIVE);
fail_unless(i->getThresholdLevel() == 2);
Output *o = t->getOutput(0);
fail_unless(o->getPackageName() == "qual");
fail_unless(o->getId() == "wd");
fail_unless(o->getName() == "asa" );
fail_unless(o->getQualitativeSpecies() == "s1");
fail_unless(o->getTransitionEffect() == OUTPUT_TRANSITION_EFFECT_PRODUCTION );
fail_unless(o->getOutputLevel() == 2);
FunctionTerm* ft1 = t->getFunctionTerm(0);
fail_unless(ft1->getPackageName() == "qual");
fail_unless(ft1->getResultLevel() == 1);
fail_unless(ft1->getMath() != NULL);
DefaultTerm* dt = t->getDefaultTerm();
fail_unless(dt->getPackageName() == "qual");
fail_unless(dt->getResultLevel() == 2);
delete document;
}