edu.udo.cs.ie.cowbots.bdi.desgen
Class CowbotDesire
java.lang.Object
edu.udo.cs.ie.cowbots.bdi.desgen.CDesire
edu.udo.cs.ie.cowbots.bdi.desgen.DefaultDesire
edu.udo.cs.ie.cowbots.bdi.desgen.CowbotDesire
- All Implemented Interfaces:
- java.lang.Comparable<CDesire>
public class CowbotDesire
- extends DefaultDesire
Constructor Summary |
CowbotDesire(Literal uniqueName,
int i)
|
CowbotDesire(Literal uniqueName,
int i,
java.lang.String updateELP,
java.lang.String mitigateELP)
|
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 |
stringUpdateELP
protected java.lang.String stringUpdateELP
stringMitigateELP
protected java.lang.String stringMitigateELP
cowRadius
static final int cowRadius
- See Also:
- Constant Field Values
CowbotDesire
public CowbotDesire(Literal uniqueName,
int i)
CowbotDesire
public CowbotDesire(Literal uniqueName,
int i,
java.lang.String updateELP,
java.lang.String mitigateELP)
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)