|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.bdi.desgen.DesireComponent
public class DesireComponent
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 |
---|
protected IMotiveSet motiveSet
protected IDesireState desireState
Constructor Detail |
---|
public DesireComponent()
public DesireComponent(IMotiveSet motiveSet)
motiveSet
- public DesireComponent(Settings stts)
stts
- Settings from mas2j fileMethod Detail |
---|
public IDesireState getDesireState()
public IDesireState updateDesireState(IEpistemicState bel)
Current
- agents beliefs to update desirestate
protected IMotiveSet loadMotivesFromDirectory(java.io.File dir)
dir
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |