use of org.vcell.util.document.BioModelChildSummary.ApplicationInfo in project vcell by virtualcell.
the class NFSimMathGenerationHashVisitor method filterBioModel.
public boolean filterBioModel(BioModelInfo bioModelInfo) {
//
// check for applicability of the model
//
// does this model have either
// 1) a nonspatial stochastic application which can be copied as a rule-based model
// 2) a rulebased application
//
boolean bHasNonspatialStochastic = false;
boolean bHasRulebased = false;
for (ApplicationInfo appInfo : bioModelInfo.getBioModelChildSummary().getApplicationInfo()) {
if (appInfo.type == MathType.Stochastic && appInfo.dimensions == 0) {
bHasNonspatialStochastic = true;
}
if (appInfo.type == MathType.RuleBased) {
bHasRulebased = true;
}
}
// skip
if (bioModelInfo.getVersion().getVersionKey().equals(new KeyValue("93037435"))) {
return false;
}
// candidate models
if (bHasNonspatialStochastic || bHasRulebased) {
// }
return true;
}
return false;
}
Aggregations