edu.udo.cs.ie.cowbots.internalActions.experimental2
Class exIsValidScoutDestination
java.lang.Object
DefaultInternalAction
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
|
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 |
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
exIsValidScoutDestination
public exIsValidScoutDestination()
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