|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDefaultInternalAction
edu.udo.cs.ie.cowbots.internalActions.scout.getScoutCandidate
public class getScoutCandidate
This class implements an internal action which computes candidate points for the scout.
Field Summary | |
---|---|
(package private) java.awt.Point |
corralPos
|
(package private) ICowbot |
cowbot
|
(package private) GridMap |
map
|
(package private) java.awt.Point[] |
notWeightedCandidates
|
(package private) int |
numberOfPoints
|
(package private) java.util.List<WeightedPoint> |
weightedCandidate
|
(package private) int |
WorldKnownThreshold
|
Constructor Summary | |
---|---|
getScoutCandidate()
|
Method Summary | |
---|---|
private java.awt.Point |
calculateRandomTarget()
Utility function to get a Point if the Agent's beliefs no longer contain an unexplored cell |
private void |
distToCorral(java.util.List<WeightedPoint> weightedCandidate)
|
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
|
private java.awt.Point[] |
getRandomCandidates(int numberOfPoints,
TransitionSystem ts)
Utility function to get a number of random points for candidates |
private java.util.List<WeightedPoint> |
getWeightedCandidates(java.awt.Point[] p)
Utility function to apply a weight to each point |
private void |
orderCandidates(java.util.List<WeightedPoint> weightedCandidate)
Utility function to sort the targets |
private void |
printCandidte()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
GridMap map
int numberOfPoints
java.awt.Point[] notWeightedCandidates
java.util.List<WeightedPoint> weightedCandidate
ICowbot cowbot
java.awt.Point corralPos
int WorldKnownThreshold
Constructor Detail |
---|
public getScoutCandidate()
Method Detail |
---|
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
java.lang.Exception
private void printCandidte()
private java.awt.Point[] getRandomCandidates(int numberOfPoints, TransitionSystem ts)
numberOfPoints
- the number of points generatedts
- the TransisionSystem
private java.util.List<WeightedPoint> getWeightedCandidates(java.awt.Point[] p)
p
- the array of points
private void distToCorral(java.util.List<WeightedPoint> weightedCandidate)
private void orderCandidates(java.util.List<WeightedPoint> weightedCandidate)
weightedCandidate
- List of all weighted pointsprivate java.awt.Point calculateRandomTarget()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |