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