public class DoInitializeZone extends Object
Constructor and Description |
---|
DoInitializeZone(Collection<apltk.interpreter.data.LogicBelief> beliefs,
Collection<apltk.interpreter.data.LogicGoal> goals) |
Modifier and Type | Method and Description |
---|---|
int |
countEnemiesInZone(LinkedList<String> myZone,
LinkedList<String> enemyVertices) |
eis.iilang.Action |
doIt(SubsumptionAgent agent) |
int |
getborderSize(LinkedList<String> myZone) |
int |
getZoneValue(LinkedList<String> myZone,
LinkedList<apltk.interpreter.data.LogicBelief> probedVertices) |
public DoInitializeZone(Collection<apltk.interpreter.data.LogicBelief> beliefs, Collection<apltk.interpreter.data.LogicGoal> goals)
current
- beliefs and goals, copy of the SubsumptionAgentprocessAction
public eis.iilang.Action doIt(SubsumptionAgent agent)
public int countEnemiesInZone(LinkedList<String> myZone, LinkedList<String> enemyVertices)
zone
- in compressed format,
list of the positions of known enemiesDoInitializeZone
public int getZoneValue(LinkedList<String> myZone, LinkedList<apltk.interpreter.data.LogicBelief> probedVertices)
zone
- in compressed format
list of all probed verticesDoInitializeZone
public int getborderSize(LinkedList<String> myZone)
zone
- in compressed formatDoInitializeZone
Copyright © 2013. All Rights Reserved.