new MapStepCostFunction(romaniaMap));
Search search = new AStarSearch(new TreeSearch(),
new StraightLineDistanceHeuristicFunction(
SimplifiedRoadMapOfPartOfRomania.BUCHAREST, romaniaMap));
SearchAgent agent = new SearchAgent(problem, search);
Assert.assertEquals(
"[Action[name==moveTo, location==Sibiu], Action[name==moveTo, location==RimnicuVilcea], Action[name==moveTo, location==Pitesti], Action[name==moveTo, location==Bucharest]]",
agent.getActions().toString());
Assert.assertEquals(4, agent.getActions().size());
Assert.assertEquals("5",
agent.getInstrumentation().getProperty("nodesExpanded"));
Assert.assertEquals("10",
agent.getInstrumentation().getProperty("queueSize"));
Assert.assertEquals("11",
agent.getInstrumentation().getProperty("maxQueueSize"));
}