@Test(groups = "1s", timeOut=60000) public void testGetLastDecision() throws Exception { Assert.assertEquals(dp.getLastDecision(), RootDecision.ROOT); IntDecision d1 = dp.makeIntDecision(vars[0], DecisionOperatorFactory.makeIntEq(), 4); dp.pushDecision(d1); Assert.assertEquals(dp.getLastDecision(), d1); IntDecision d2 = dp.makeIntDecision(vars[1], DecisionOperatorFactory.makeIntEq(), 4); dp.pushDecision(d2); Assert.assertEquals(dp.getLastDecision(), d2); IntDecision d3 = dp.makeIntDecision(vars[2], DecisionOperatorFactory.makeIntEq(), 4); dp.pushDecision(d3); Assert.assertEquals(dp.getLastDecision(), d3); }
public Decision getLastDecision() { int size = decisions.size(); return decisions.get(size - 1); }
DecisionPath extends DecisionMaker implements Serializable { public Decision getLastDecision() { int size = decisions.size(); return decisions.get(size - 1); } }
DecisionPath extends DecisionMaker implements Serializable { public Decision getLastDecision() { int size = decisions.size(); return decisions.get(size - 1); } DecisionPath(IEnvironment environment); }
DecisionPath extends DecisionMaker implements Serializable { public Decision getLastDecision() { int size = decisions.size(); return decisions.get(size - 1); } DecisionPath(IEnvironment environment); void buildNext(); void apply(); void pushDecision(Decision decision); void synchronize(); void synchronize(boolean free); Decision getLastDecision(); int size(); Decision getDecision(int i); void transferInto(Collection<Decision> aList, boolean includeRootDecision); String lastDecisionToString(); @Override String toString(); }
DecisionPath extends DecisionMaker implements Serializable { public Decision getLastDecision() { int size = decisions.size(); return decisions.get(size - 1); } DecisionPath(IEnvironment environment); void buildNext(); void apply(); void pushDecision(Decision decision); void synchronize(); void synchronize(boolean free); Decision getLastDecision(); int size(); Decision getDecision(int i); void transferInto(Collection<Decision> aList, boolean includeRootDecision); String lastDecisionToString(); @Override String toString();  }