mas.agents0815.doIt
Class DoGotoNearestUnprobedVertex
java.lang.Object
mas.agents0815.doIt.DoGotoNearestUnprobedVertex
public class DoGotoNearestUnprobedVertex
- extends java.lang.Object
Constructor Summary |
DoGotoNearestUnprobedVertex(java.util.Collection<apltk.interpreter.data.LogicBelief> b,
java.util.Collection<apltk.interpreter.data.LogicGoal> g)
|
Method Summary |
java.util.Collection<apltk.interpreter.data.LogicGoal> |
doIt()
find all unprobed and known vertices, find a route to the nearest of
those and returns the first step towards it |
java.util.Collection<apltk.interpreter.data.LogicBelief> |
getBeliefs()
|
java.util.Collection<apltk.interpreter.data.LogicGoal> |
getGoals()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoGotoNearestUnprobedVertex
public DoGotoNearestUnprobedVertex(java.util.Collection<apltk.interpreter.data.LogicBelief> b,
java.util.Collection<apltk.interpreter.data.LogicGoal> g)
getBeliefs
public java.util.Collection<apltk.interpreter.data.LogicBelief> getBeliefs()
getGoals
public java.util.Collection<apltk.interpreter.data.LogicGoal> getGoals()
doIt
public java.util.Collection<apltk.interpreter.data.LogicGoal> doIt()
- find all unprobed and known vertices, find a route to the nearest of
those and returns the first step towards it
- Parameters:
beliefs
- and goals
- Returns:
- the first step towards the nearest unprobed vertex
- See Also:
processAction
Copyright © 2011. All Rights Reserved.