Search in sources :

Example 1 with ComputationStatuses

use of de.prob.model.brules.ComputationStatuses in project prob2 by bendisposto.

the class RulesMachineTest method testRulesMachineExample.

@Test
public void testRulesMachineExample() {
    RulesMachineRun rulesMachineRun = startRulesMachineRun(dir + "RulesMachineExample.rmch");
    assertEquals(false, rulesMachineRun.hasError());
    State finalState = rulesMachineRun.getExecuteRun().getExecuteModelCommand().getFinalState();
    ComputationStatuses compResult = new ComputationStatuses(rulesMachineRun.getRulesProject(), finalState);
    assertEquals(ComputationStatus.EXECUTED, compResult.getResult("COMP_comp1"));
}
Also used : RulesMachineRun(de.prob.model.brules.RulesMachineRun) State(de.prob.statespace.State) ComputationStatuses(de.prob.model.brules.ComputationStatuses) Test(org.junit.Test)

Aggregations

ComputationStatuses (de.prob.model.brules.ComputationStatuses)1 RulesMachineRun (de.prob.model.brules.RulesMachineRun)1 State (de.prob.statespace.State)1 Test (org.junit.Test)1