edu.udo.cs.ie.cowbots.bdi.delib
Class DeliberationComponent

Package class diagram package DeliberationComponent
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.bdi.delib.DeliberationComponent

public class DeliberationComponent
extends java.lang.Object


Field Summary
private  desire internalActionDesire
           
private  double k
           
private  CDesire lastGoal
           
protected  java.util.logging.Logger logger
           
 
Constructor Summary
DeliberationComponent(java.lang.String agName)
          Empty constructor for DeliberationComponent.
 
Method Summary
 Option choose(java.util.List<Option> options)
          called by CowbotAgent by selectOption method Returnes one Option (Plan) from all available Plans, that were unified with current Trigger.
 double getK()
           
 CDesire getLastGoal()
           
 Event reconsider(java.util.Queue<Event> events, IDesireState desireState, TransitionSystem ts)
          More compact approach by Michael.
 void reconsiderMessage(IEpistemicState es, TransitionSystem ts, java.lang.String agName)
          this method handles received, but yet unprocessed messages.
 Intention select(java.util.Queue<Intention> intentions)
          Picks the intention for the current goal from a Queue of intentions.
 void setK(double k)
           
 void setLastGoal(CDesire lastGoal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastGoal

private CDesire lastGoal

k

private double k

internalActionDesire

private desire internalActionDesire

logger

protected java.util.logging.Logger logger
Constructor Detail

DeliberationComponent

public DeliberationComponent(java.lang.String agName)
Empty constructor for DeliberationComponent.

Method Detail

getLastGoal

public CDesire getLastGoal()
Returns:
the lastGoal

setLastGoal

public void setLastGoal(CDesire lastGoal)
Parameters:
lastGoal - the lastGoal to set

getK

public double getK()
Returns:
the k

setK

public void setK(double k)
Parameters:
k - the k to set

reconsider

public Event reconsider(java.util.Queue<Event> events,
                        IDesireState desireState,
                        TransitionSystem ts)
More compact approach by Michael. No need for Goalstate. Chooses one Desire from the current Desirestate as Goal. If goal changes should occurs(agent pursues other goal than goal chosen from the desirestate ) it decides, whether this change will or will not occurs. Called by CowbotAgent by selectEvent method

Parameters:
events - Agent's event Queue with triggers
desireState - is the current Agent's Desirestate
ts -

reconsiderMessage

public void reconsiderMessage(IEpistemicState es,
                              TransitionSystem ts,
                              java.lang.String agName)
this method handles received, but yet unprocessed messages. it allows the deliberation component to react to other agent's requests and belief or disbelief them.

Parameters:
es -
ts -

choose

public Option choose(java.util.List<Option> options)
called by CowbotAgent by selectOption method Returnes one Option (Plan) from all available Plans, that were unified with current Trigger.


select

public Intention select(java.util.Queue<Intention> intentions)
Picks the intention for the current goal from a Queue of intentions. Removes other intentions from the Queue

Parameters:
intentions - the current List of Intentions the Agent has
Returns:
Intention for the current Goal