edu.udo.cs.ie.cowbots.internalActions.scout
Class checkScoutArea

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

public class checkScoutArea
extends DefaultInternalAction

Class for calculating the distance between the own desired scoutDestination and all scoutOptions and -Destinations of other Agents


Field Summary
(package private)  java.util.List<ELPLiteral> agentNumbers
           
(package private)  BeliefSet bSet
           
(package private)  ICowbot cowbot
           
(package private)  int delta
           
(package private)  java.lang.String myName
           
(package private)  java.awt.Point pointToCheck
           
(package private)  boolean possible
           
(package private)  java.util.List<ELPLiteral> scoutDestinations
           
(package private)  java.util.List<ELPLiteral> scoutOptions
           
 
Constructor Summary
checkScoutArea()
           
 
Method Summary
private  boolean checkConflicts()
          Utility function for calculating whether the scoutDestination is valid.
 java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args)
           
private  void getScoutInfos()
          Utility function to retrieve relevant beliefs
private  void print(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointToCheck

java.awt.Point pointToCheck

scoutDestinations

java.util.List<ELPLiteral> scoutDestinations

scoutOptions

java.util.List<ELPLiteral> scoutOptions

agentNumbers

java.util.List<ELPLiteral> agentNumbers

myName

java.lang.String myName

delta

int delta

cowbot

ICowbot cowbot

bSet

BeliefSet bSet

possible

boolean possible
Constructor Detail

checkScoutArea

public checkScoutArea()
Method Detail

execute

public java.lang.Object execute(TransitionSystem ts,
                                Unifier un,
                                Term[] args)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getScoutInfos

private void getScoutInfos()
Utility function to retrieve relevant beliefs


checkConflicts

private boolean checkConflicts()
Utility function for calculating whether the scoutDestination is valid. Compares the distance to other scoutOptions and scoutDestinations with delta.

Returns:
result-boolean, true, if there are no conflicts, false else

print

private void print(java.lang.String s)