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

Package class diagram package DesireComponent
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.bdi.desgen.DesireComponent
Direct Known Subclasses:
FastCowbotDesireComponent

public class DesireComponent
extends java.lang.Object

Controller class for generating new desires. Uses a static set of motives to update the agents desirestate.


Nested Class Summary
protected static class DesireComponent.ReadState
          Enum used for reading the motive files.
 
Field Summary
protected  IDesireState desireState
           
protected  IMotiveSet motiveSet
           
 
Constructor Summary
DesireComponent()
          Empty constructor for DesireComponent.
DesireComponent(IMotiveSet motiveSet)
          Constructor for DesireComponent which allows to specify the agents set of motives.
DesireComponent(Settings stts)
          Constructor for DesireComponent, which loads the agents set of motives from a path provided in the settings.
 
Method Summary
 IDesireState getDesireState()
          Provides access to the agents current desirestate.
protected  IMotiveSet loadMotivesFromDirectory(java.io.File dir)
          Reades all *.motive files in the given directory to initialize the agents motives
 IDesireState updateDesireState(IEpistemicState bel)
          Updates the agents desirestate based on provided beliefs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

motiveSet

protected IMotiveSet motiveSet

desireState

protected IDesireState desireState
Constructor Detail

DesireComponent

public DesireComponent()
Empty constructor for DesireComponent.


DesireComponent

public DesireComponent(IMotiveSet motiveSet)
Constructor for DesireComponent which allows to specify the agents set of motives.

Parameters:
motiveSet -

DesireComponent

public DesireComponent(Settings stts)
Constructor for DesireComponent, which loads the agents set of motives from a path provided in the settings.

Parameters:
stts - Settings from mas2j file
Method Detail

getDesireState

public IDesireState getDesireState()
Provides access to the agents current desirestate.

Returns:
Current agents desirestate

updateDesireState

public IDesireState updateDesireState(IEpistemicState bel)
Updates the agents desirestate based on provided beliefs.

Parameters:
Current - agents beliefs to update desirestate
Returns:
The updated desirestate

loadMotivesFromDirectory

protected IMotiveSet loadMotivesFromDirectory(java.io.File dir)
Reades all *.motive files in the given directory to initialize the agents motives

Parameters:
dir -