edu.udo.cs.ie.cowbots.internalActions.scout
Class getRelevantFence
java.lang.Object
DefaultInternalAction
edu.udo.cs.ie.cowbots.internalActions.scout.getRelevantFence
public class getRelevantFence
- extends DefaultInternalAction
Class to calculate the next fence the group needs to pass
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 |
getRelevantFence
public getRelevantFence()
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-coordinatey
- the wp's Y-coordinatez
- the wp's "ToDirection"
- Returns:
- Point encoding the coordinates