edu.udo.cs.ie.cowbots.bdi.brf.operators
Class ExpansionOperator

Package class diagram package ExpansionOperator
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.bdi.brf.operators.ExpansionOperator
All Implemented Interfaces:
IKnowledgeOperator

public class ExpansionOperator
extends java.lang.Object
implements IKnowledgeOperator

a knowledge operator that adds new information objects by expansion.


Field Summary
private  java.util.List<InformationObject> beliefBaseSequence
           
 
Constructor Summary
ExpansionOperator()
           
 
Method Summary
 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.
 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 base)
          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 belbase)
          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

beliefBaseSequence

private java.util.List<InformationObject> beliefBaseSequence
Constructor Detail

ExpansionOperator

public ExpansionOperator()
Method Detail

update

public boolean update(java.util.List<InformationObject> updates,
                      BeliefBase belbase)
Description copied from interface: IKnowledgeOperator
this method integrates information objects into the belief base.

Specified by:
update in interface IKnowledgeOperator
Parameters:
updates - new information objects
belbase - operator's belief base
Returns:
true if something changed (false otherwise).

init

public void init(org.w3c.dom.Element config)
Description copied from interface: IKnowledgeOperator
default initialization routine, will be called by the revision engine with a configuration description in xml

Specified by:
init in interface IKnowledgeOperator
Parameters:
config - XML Element describing operator setup

deleteFacts

public void deleteFacts(java.util.Set<ELPLiteral> toDel)
Description copied from interface: IKnowledgeOperator
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.

Specified by:
deleteFacts in interface IKnowledgeOperator
Parameters:
toDel - set of (head) literals to purge from the belief base

processBeliefSet

public void processBeliefSet(BeliefSet bs,
                             BeliefBase base)
Description copied from interface: IKnowledgeOperator
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.

Specified by:
processBeliefSet in interface IKnowledgeOperator

getStateProgram

public ELP getStateProgram()
Description copied from interface: IKnowledgeOperator
method that returns an extended logical programm (or null) that is concatenated to the belief state, therefore bypassing any belief state construction.

Specified by:
getStateProgram in interface IKnowledgeOperator
Returns:
null or elp to add to the belief state

reset

public void reset()
Description copied from interface: IKnowledgeOperator
resets the knowledge operator, putting it back into a neutral state.

Specified by:
reset in interface IKnowledgeOperator