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

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

public class exIsValidScoutDestination
extends DefaultInternalAction


Field Summary
(package private)  java.util.List<java.lang.String> agHelpers
           
(package private)  java.util.HashMap<java.lang.String,java.lang.Integer> agIndex
           
(package private)  java.util.HashMap<java.lang.Integer,java.lang.String> agInvIndex
           
(package private)  java.util.HashMap<java.lang.String,java.awt.Point> agPositions
           
(package private)  java.util.List<java.lang.String> debugLog
           
(package private)  java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> groups
           
(package private)  java.lang.String myself
           
 
Constructor Summary
exIsValidScoutDestination()
           
 
Method Summary
protected  void buildGroups(BeliefSet bs)
          this method sets up some internal data structure for planning, in this case agent positions and helper lists. the groups list is based on the beliefs of an agent.
 java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args)
          Returns true, if the provided target is still a valid scout destination.
protected  void logSeparator(java.lang.String caption)
          this method adds a separator (line of "-" to an agents debug log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> groups

agPositions

java.util.HashMap<java.lang.String,java.awt.Point> agPositions

agHelpers

java.util.List<java.lang.String> agHelpers

agIndex

java.util.HashMap<java.lang.String,java.lang.Integer> agIndex

agInvIndex

java.util.HashMap<java.lang.Integer,java.lang.String> agInvIndex

myself

java.lang.String myself

debugLog

java.util.List<java.lang.String> debugLog
Constructor Detail

exIsValidScoutDestination

public exIsValidScoutDestination()
Method Detail

execute

public java.lang.Object execute(TransitionSystem ts,
                                Unifier un,
                                Term[] args)
                         throws java.lang.Exception
Returns true, if the provided target is still a valid scout destination. A scout destination becomes invalid if one agent of the team reached the target, or if it turns out that it is impossible to reach.

Throws:
java.lang.Exception

buildGroups

protected void buildGroups(BeliefSet bs)
this method sets up some internal data structure for planning, in this case agent positions and helper lists. the groups list is based on the beliefs of an agent.

Parameters:
bs -

logSeparator

protected void logSeparator(java.lang.String caption)
this method adds a separator (line of "-" to an agents debug log