vs.characteragent
Class ActorDeliberativeLayer

java.lang.Object
  extended by vs.characteragent.BehaviourLayer
      extended by vs.characteragent.DeliberativeLayer
          extended by vs.characteragent.ActorDeliberativeLayer
All Implemented Interfaces:
IExplainable

public class ActorDeliberativeLayer
extends DeliberativeLayer


Constructor Summary
ActorDeliberativeLayer(ICharacterAgent agent)
          Constructor
 
Method Summary
 boolean acceptGoalSuggestion(GoalSchema gs)
          Adds a goal suggestion to the director process.
 void cope()
          Deliberative coping: - adjust plan currently under consideration
 JustifiableGoalSchema getActiveJustifiableGoal()
          Returns the goal that is currently actively being justified.
 java.util.Set<JustifiableGoalSchema> getJustifiableGoals()
          Returns the goals that the layer wants to justify
 StoryAction selectAction()
          Implementation of selectAction() for deliberative layer: plan-based.
 
Methods inherited from class vs.characteragent.DeliberativeLayer
appraise, getActiveGoal, getGoals, getPlanner, selectActiveGoal
 
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

ActorDeliberativeLayer

public ActorDeliberativeLayer(ICharacterAgent agent)
Constructor

Parameters:
agent - owner of this layer
Method Detail

cope

public void cope()
Description copied from class: DeliberativeLayer
Deliberative coping: - adjust plan currently under consideration

Overrides:
cope in class DeliberativeLayer

acceptGoalSuggestion

public boolean acceptGoalSuggestion(GoalSchema gs)
Adds a goal suggestion to the director process. The director will try to "use" the goal.

Parameters:
gs - goal schema that was suggested
Returns:
whether the suggestion could be added

getJustifiableGoals

public java.util.Set<JustifiableGoalSchema> getJustifiableGoals()
Returns the goals that the layer wants to justify

Returns:
a set of goals that can be justified

getActiveJustifiableGoal

public JustifiableGoalSchema getActiveJustifiableGoal()
Returns the goal that is currently actively being justified.

Returns:
the active goal to be justified

selectAction

public StoryAction selectAction()
Description copied from class: DeliberativeLayer
Implementation of selectAction() for deliberative layer: plan-based. selectAction works on the current plan of the agent, established through the deliberative coping process

Overrides:
selectAction in class DeliberativeLayer
Returns:
one of the executable actions.