edu.udo.cs.ie.cowbots.internalActions.experimental2
Class exNewWayfinder

Package class diagram package exNewWayfinder
java.lang.Object
  extended by DefaultInternalAction
      extended by edu.udo.cs.ie.cowbots.internalActions.experimental2.exNewWayfinder

public class exNewWayfinder
extends DefaultInternalAction


Field Summary
(package private) static java.lang.String[] dirs
           
 
Constructor Summary
exNewWayfinder()
           
 
Method Summary
 java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args)
          New wayfinder, using the new DistanceMap instead of a*, which either had to many bugs or was simply inappropriate.
private  java.lang.String getMove(java.awt.Point from, java.awt.Point to)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirs

static java.lang.String[] dirs
Constructor Detail

exNewWayfinder

public exNewWayfinder()
Method Detail

execute

public java.lang.Object execute(TransitionSystem ts,
                                Unifier un,
                                Term[] args)
                         throws java.lang.Exception
New wayfinder, using the new DistanceMap instead of a*, which either had to many bugs or was simply inappropriate. Returns the next step to the provided target. If the target is reached a skip command is returned, if it's impossible to reach, it returns a random action (turned out that this is better than do nothing)

Throws:
java.lang.Exception

getMove

private java.lang.String getMove(java.awt.Point from,
                                 java.awt.Point to)