edu.udo.cs.ie.cowbots.internalActions.scout
Class getRelevantFence

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

public class getRelevantFence
extends DefaultInternalAction

Class to calculate the next fence the group needs to pass


Constructor Summary
getRelevantFence()
           
 
Method Summary
private  java.awt.Point calculateFenceCoordinates(int x, int y, java.lang.String z)
          Utility function, used to calculate the coordinates of the next cell valued "fence", starting from the agents fenceopenwaypoint following the wp's "ToDirection" (the whole fence is then constructed by dlv)
 java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

getRelevantFence

public getRelevantFence()
Method Detail

execute

public java.lang.Object execute(TransitionSystem ts,
                                Unifier un,
                                Term[] args)
                         throws java.lang.Exception
Throws:
java.lang.Exception

calculateFenceCoordinates

private java.awt.Point calculateFenceCoordinates(int x,
                                                 int y,
                                                 java.lang.String z)
Utility function, used to calculate the coordinates of the next cell valued "fence", starting from the agents fenceopenwaypoint following the wp's "ToDirection" (the whole fence is then constructed by dlv)

Parameters:
x - the wp's X-coordinate
y - the wp's Y-coordinate
z - the wp's "ToDirection"
Returns:
Point encoding the coordinates