edu.udo.cs.ie.cowbots.bdi.desgen
Class CowbotDesire

Package class diagram package CowbotDesire
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.bdi.desgen.CDesire
      extended by edu.udo.cs.ie.cowbots.bdi.desgen.DefaultDesire
          extended by edu.udo.cs.ie.cowbots.bdi.desgen.CowbotDesire
All Implemented Interfaces:
java.lang.Comparable<CDesire>

public class CowbotDesire
extends DefaultDesire


Field Summary
(package private) static int cowRadius
           
protected  java.lang.String stringMitigateELP
           
protected  java.lang.String stringUpdateELP
           
 
Fields inherited from class edu.udo.cs.ie.cowbots.bdi.desgen.DefaultDesire
intensity, mitigateELP, uniqueName, updateELP
 
Constructor Summary
CowbotDesire(Literal uniqueName, int i)
           
CowbotDesire(Literal uniqueName, int i, java.lang.String updateELP, java.lang.String mitigateELP)
           
 
Method Summary
protected  java.lang.String additionalLiterals(IEpistemicState bel)
           
 int updateIntensity(IEpistemicState bel)
          Updates the desires intensity based on the current agents beliefs.
 int updateMitigation(IEpistemicState bel)
          Prooves if the associated goal is fulfilled to mitigate the desires intensity.
 
Methods inherited from class edu.udo.cs.ie.cowbots.bdi.desgen.DefaultDesire
compareTo, getIntensity, getNewIntensityWithELP, getUniqueName, toString
 
Methods inherited from class edu.udo.cs.ie.cowbots.bdi.desgen.CDesire
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stringUpdateELP

protected java.lang.String stringUpdateELP

stringMitigateELP

protected java.lang.String stringMitigateELP

cowRadius

static final int cowRadius
See Also:
Constant Field Values
Constructor Detail

CowbotDesire

public CowbotDesire(Literal uniqueName,
                    int i)

CowbotDesire

public CowbotDesire(Literal uniqueName,
                    int i,
                    java.lang.String updateELP,
                    java.lang.String mitigateELP)
Method Detail

updateIntensity

public int updateIntensity(IEpistemicState bel)
Description copied from class: CDesire
Updates the desires intensity based on the current agents beliefs.

Overrides:
updateIntensity in class DefaultDesire
Returns:
Updated desires intensity

updateMitigation

public int updateMitigation(IEpistemicState bel)
Description copied from class: CDesire
Prooves if the associated goal is fulfilled to mitigate the desires intensity. This usually sets intensity to zero to cause deletion of the desire.

Overrides:
updateMitigation in class DefaultDesire
Returns:
Updated desires intensity

additionalLiterals

protected java.lang.String additionalLiterals(IEpistemicState bel)