|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvs.characteragent.BehaviourLayer
vs.characteragent.DeliberativeLayer
public class DeliberativeLayer
Deliberative process of the character agent. Uses goals and planning for its appraisal, coping and action selection. A part of goal management is handled by Prolog, because it uses a lot of unification and selection that Java cannot really handle well. The decision which goals can be adopted is handled by Prolog (keeps the goals as entities in Java, for display / debug); Java asks Prolog which goals can be adopted, and lets Prolog know which goals ARE adopted.
Constructor Summary | |
---|---|
DeliberativeLayer(ICharacterAgent agent)
Constructor |
Method Summary | |
---|---|
void |
appraise()
Deliberative appraisal: - Adopt new goals and select active goal (FearNot! |
void |
cope()
Deliberative coping: - adjust plan currently under consideration |
AdoptedGoalSchema |
getActiveGoal()
Retrieves the goal that the agent is currently pursuing |
java.util.Set<AdoptedGoalSchema> |
getGoals()
Retrieves all goals that the agent has adopted |
PoPlanner |
getPlanner()
Retrieves the planner currently "in focus" (i.e., the planner of the active goal) |
StoryAction |
selectAction()
Implementation of selectAction() for deliberative layer: plan-based. |
AdoptedGoalSchema |
selectActiveGoal()
Selects the goal that should currently be active, according to some heuristic. |
Methods inherited from class vs.characteragent.BehaviourLayer |
---|
explainCausalities, explainElements, getAgent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeliberativeLayer(ICharacterAgent agent)
agent
- the character agent in the story (e.g. ps:leChuck)Method Detail |
---|
public AdoptedGoalSchema getActiveGoal()
public java.util.Set<AdoptedGoalSchema> getGoals()
public PoPlanner getPlanner()
public void appraise()
appraise
in class BehaviourLayer
public void cope()
cope
in class BehaviourLayer
public StoryAction selectAction()
selectAction
in class BehaviourLayer
public AdoptedGoalSchema selectActiveGoal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |