Search in sources :

Example 1 with MolecularTypeEntry

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;
    }
}
Also used : RuleAnalysisReport(org.vcell.model.rbm.RuleAnalysisReport) ModelRuleEntry(cbit.vcell.model.ModelRuleFactory.ModelRuleEntry) ReactionRule(cbit.vcell.model.ReactionRule) MolecularTypeEntry(org.vcell.model.rbm.RuleAnalysis.MolecularTypeEntry)

Aggregations

ModelRuleEntry (cbit.vcell.model.ModelRuleFactory.ModelRuleEntry)1 ReactionRule (cbit.vcell.model.ReactionRule)1 MolecularTypeEntry (org.vcell.model.rbm.RuleAnalysis.MolecularTypeEntry)1 RuleAnalysisReport (org.vcell.model.rbm.RuleAnalysisReport)1