edu.udo.cs.ie.cowbots.bdi.desgen
Class DefaultMotive
java.lang.Object
edu.udo.cs.ie.cowbots.bdi.desgen.DefaultMotive
- All Implemented Interfaces:
- IMotive
public class DefaultMotive
- extends java.lang.Object
- implements IMotive
Default implementation of a cowbots motive.
Constructor Summary |
DefaultMotive(java.lang.String motiveName,
java.lang.String generateELP,
java.lang.String updateDesireELP,
java.lang.String mitigateDesireELP,
java.lang.String rawUniqueName)
|
Method Summary |
java.util.List<CDesire> |
generateDesire(IEpistemicState bel)
Generates new desires based on the agents current
beliefs, despite of the current agents motives because
existing motives will not be replaced. |
java.lang.String |
getUniqueName()
Returns the unique name of the motive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uniqueName
private java.lang.String uniqueName
generateELP
private java.lang.String generateELP
updateDesireELP
private java.lang.String updateDesireELP
mitigateDesireELP
private java.lang.String mitigateDesireELP
rawUniqueName
private java.lang.String rawUniqueName
INSTANCE_PLACEHOLDER
private final java.lang.String INSTANCE_PLACEHOLDER
- See Also:
- Constant Field Values
INSTANCE_PLACEHOLDER2
private final java.lang.String INSTANCE_PLACEHOLDER2
- See Also:
- Constant Field Values
DefaultMotive
public DefaultMotive(java.lang.String motiveName,
java.lang.String generateELP,
java.lang.String updateDesireELP,
java.lang.String mitigateDesireELP,
java.lang.String rawUniqueName)
generateDesire
public java.util.List<CDesire> generateDesire(IEpistemicState bel)
- Description copied from interface:
IMotive
- Generates new desires based on the agents current
beliefs, despite of the current agents motives because
existing motives will not be replaced.
- Specified by:
generateDesire
in interface IMotive
- Returns:
- A set of new desires
getUniqueName
public java.lang.String getUniqueName()
- Description copied from interface:
IMotive
- Returns the unique name of the motive.
- Specified by:
getUniqueName
in interface IMotive
- Returns:
- The motivs unique name