use of org.vcell.model.rbm.RuleAnalysis.MolecularTypeEntry in project vcell by virtualcell.
the class ParticipantSignatureShapePanel method hasNoMatch.
public RuleAnalysisChanged hasNoMatch(String key, MolecularTypePattern molecularTypePattern) {
ReactionRule reactionRule = reactionRuleMap.get(key);
if (reactionRule == null) {
return RuleAnalysisChanged.ANALYSISFAILED;
}
ModelRuleEntry modelRuleEntry = modelRuleEntryMap.get(key);
RuleAnalysisReport report = reportMap.get(key);
if (modelRuleEntry == null || report == null) {
System.out.println("modelRuleEntry == null || report == null, NOT GOOD!");
// refreshRuleAnalysis();
}
if (!bRuleAnalysisFailed && report != null) {
MolecularTypeEntry molecularTypeEntry = modelRuleEntry.findMolecularTypeEntry(molecularTypePattern);
if (report.hasNoMatch(molecularTypeEntry)) {
return RuleAnalysisChanged.CHANGED;
} else {
return RuleAnalysisChanged.UNCHANGED;
}
} else {
return RuleAnalysisChanged.ANALYSISFAILED;
}
}
Aggregations