edu.udo.cs.ie.cowbots.internalActions.experimental2
Class exCreateWaypoints
java.lang.Object
DefaultInternalAction
edu.udo.cs.ie.cowbots.internalActions.experimental2.exCreateWaypoints
public class exCreateWaypoints
- extends DefaultInternalAction
Method Summary |
protected Literal |
createLiteralWithPredicate(java.lang.String pre,
int stepNo,
int vX,
int vY,
java.lang.String lastDirection,
java.lang.String direction)
Creates Waypoint of type pre, adds prefix k |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Generates the Waypoints for the ex2 Agents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exCreateWaypoints
public exCreateWaypoints()
execute
public java.lang.Object execute(TransitionSystem ts,
Unifier un,
Term[] args)
throws java.lang.Exception
- Generates the Waypoints for the ex2 Agents. Due to some strategy changes,
there is no need to add other waypoints than the startpoint to the
agents beliefs.
- Throws:
java.lang.Exception
createLiteralWithPredicate
protected Literal createLiteralWithPredicate(java.lang.String pre,
int stepNo,
int vX,
int vY,
java.lang.String lastDirection,
java.lang.String direction)
- Creates Waypoint of type pre, adds prefix k
- Parameters:
pre
- stepNo
- vX
- vY
- lastDirection
- direction
-
- Returns: