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

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

public class exCreateWaypoints
extends DefaultInternalAction


Constructor Summary
exCreateWaypoints()
           
 
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
 

Constructor Detail

exCreateWaypoints

public exCreateWaypoints()
Method Detail

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: