vs.characteragent
Class AdoptedGoalSchema

java.lang.Object
  extended by vs.characteragent.AdoptedGoalSchema

public class AdoptedGoalSchema
extends java.lang.Object

Wrapper for GoalSchema when it is adopted by the Character agent: it gets a planner

Author:
swartjes

Constructor Summary
AdoptedGoalSchema(GoalSchema gs, java.lang.String characterURI)
          Creates a new AdoptedGoalSchema
 
Method Summary
 GoalSchema getGoalSchema()
          Returns the goal schema
 PoPlanner getPlanner()
          Returns the partial order planner associated with this goal
 boolean getSuggested()
          Retrieve whether this goal was suggested by plot agent
 float getUrgency()
          Return the urgency of the goal (i.e. how immediate should it be executed)
 void setSuggested(boolean suggested)
          Set whether this goal was suggested by plot agent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdoptedGoalSchema

public AdoptedGoalSchema(GoalSchema gs,
                         java.lang.String characterURI)
Creates a new AdoptedGoalSchema

Parameters:
gs - the goal schema
Method Detail

getGoalSchema

public GoalSchema getGoalSchema()
Returns the goal schema

Returns:
the goal schema

getPlanner

public PoPlanner getPlanner()
Returns the partial order planner associated with this goal

Returns:
the planner for this goal

getUrgency

public float getUrgency()
Return the urgency of the goal (i.e. how immediate should it be executed)

Returns:
urgency (between 0 and 1)

setSuggested

public void setSuggested(boolean suggested)
Set whether this goal was suggested by plot agent

Parameters:
suggested - whether this was the case

getSuggested

public boolean getSuggested()
Retrieve whether this goal was suggested by plot agent

Returns:
whether this goal was suggested by plot agent