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

Package class diagram package DefaultMotive
java.lang.Object
  extended by 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.


Field Summary
private  java.lang.String generateELP
           
private  java.lang.String INSTANCE_PLACEHOLDER
           
private  java.lang.String INSTANCE_PLACEHOLDER2
           
private  java.lang.String mitigateDesireELP
           
private  java.lang.String rawUniqueName
           
private  java.lang.String uniqueName
           
private  java.lang.String updateDesireELP
           
 
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
 

Field Detail

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
Constructor Detail

DefaultMotive

public DefaultMotive(java.lang.String motiveName,
                     java.lang.String generateELP,
                     java.lang.String updateDesireELP,
                     java.lang.String mitigateDesireELP,
                     java.lang.String rawUniqueName)
Method Detail

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