|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.internalActions.experimental2.exMapOperator
public class exMapOperator
a specialized operator for handling map updates. most parts of the map are empty or don't change at all, like obstacles. an inference would reject multiple those cell over and over, so it might be better to handle these things at the belief base level. this is the contest optimized version, it performs most updates by itself instead of relying on dlv.
Field Summary | |
---|---|
(package private) java.util.List<java.awt.Point> |
agentPositions
|
(package private) java.util.List<InformationObject> |
bels
|
(package private) boolean |
contestMode
|
(package private) java.util.HashMap<java.lang.String,ELPLiteral> |
cowPositions
|
(package private) java.util.Set<java.lang.String> |
fenceCoords
|
(package private) GridMap |
map
|
(package private) java.util.List<ELPLiteral> |
newExplorations
|
(package private) java.util.Set<java.lang.String> |
switchCoords
|
Constructor Summary | |
---|---|
exMapOperator()
|
Method Summary | |
---|---|
void |
assignMap(GridMap map)
initialization routine, any operator has to accept the map instance provided as the first parameter |
void |
deleteFacts(java.util.Set<ELPLiteral> toDel)
method that might ist called by the revision engine for facts occuring in the reject set of an inference operator. each knowledge operator is free to process or ignore the call. |
java.util.List<ELPLiteral> |
getExploredCells()
returns the explorations an agent made at the current turn. respecting the massim scenario, an operator implementing this interface is expected to provide any cow seen the current turn, too. |
GridMap |
getGridMap()
returns the gridmap associated with the knowledge operator implementing this interface |
ELP |
getStateProgram()
method that returns an extended logical programm (or null) that is concatenated to the belief state, therefore bypassing any belief state construction. |
void |
init(org.w3c.dom.Element config)
default initialization routine, will be called by the revision engine with a configuration description in xml |
void |
processBeliefSet(BeliefSet bs,
BeliefBase bb)
method that is called after the revision (asp call and answer set clearance) to add/delete beliefs to the belief set. the behavior depends on the implemented knowledge operator semantics. |
void |
reset()
resets the knowledge operator, putting it back into a neutral state. |
boolean |
update(java.util.List<InformationObject> updates,
BeliefBase bb)
this method integrates information objects into the belief base. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
GridMap map
java.util.List<ELPLiteral> newExplorations
java.util.List<InformationObject> bels
java.util.Set<java.lang.String> fenceCoords
java.util.Set<java.lang.String> switchCoords
boolean contestMode
java.util.List<java.awt.Point> agentPositions
java.util.HashMap<java.lang.String,ELPLiteral> cowPositions
Constructor Detail |
---|
public exMapOperator()
Method Detail |
---|
public void init(org.w3c.dom.Element config)
IKnowledgeOperator
init
in interface IKnowledgeOperator
config
- XML Element describing operator setuppublic boolean update(java.util.List<InformationObject> updates, BeliefBase bb)
IKnowledgeOperator
update
in interface IKnowledgeOperator
updates
- new information objectsbb
- operator's belief base
public void assignMap(GridMap map)
MapOperator
assignMap
in interface MapOperator
map
- environment instancepublic void deleteFacts(java.util.Set<ELPLiteral> toDel)
IKnowledgeOperator
deleteFacts
in interface IKnowledgeOperator
toDel
- set of (head) literals to purge from the belief basepublic java.util.List<ELPLiteral> getExploredCells()
MapOperator
getExploredCells
in interface MapOperator
public void processBeliefSet(BeliefSet bs, BeliefBase bb)
IKnowledgeOperator
processBeliefSet
in interface IKnowledgeOperator
public ELP getStateProgram()
IKnowledgeOperator
getStateProgram
in interface IKnowledgeOperator
public GridMap getGridMap()
MapOperator
getGridMap
in interface MapOperator
public void reset()
IKnowledgeOperator
reset
in interface IKnowledgeOperator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |