story.scheherazade.verbalizer
Class PlannerRepository

java.lang.Object
  extended by story.scheherazade.verbalizer.PlannerRepository

public class PlannerRepository
extends java.lang.Object

This class stores SymbolPlanners of various types. It can also reconstruct a repository from plain text.


Constructor Summary
PlannerRepository()
           
 
Method Summary
 void addActionPlanner(ActionPlanner planner)
           
 void addConditionPlanner(ConditionPlanner planner)
           
 void addModifierPlanner(ModifierPlanner planner)
           
 void addNounPlanner(NounPlanner planner)
           
 void auditCompleteness(StoryInterpreter story)
          Audits the repository to make sure that it contains all the planners it could need in dealing with a particular story.
 ActionPlanner getActionPlanner(ActionType type)
           
 ConditionPlanner getConditionPlanner(ConditionType type)
           
 ModifierPlanner getModifierPlanner(ModifierType type)
           
 NounPlanner getNounPlanner(NounType noun)
           
 SymbolPlanner getPlanner(GenericScheherID ID)
           
 boolean hasActionPlanner(ActionType type)
           
 boolean hasConditionPlanner(ConditionType type)
           
 boolean hasModifierPlanner(ModifierType type)
           
 boolean hasNounPlanner(NounType noun)
           
 boolean hasPlanner(GenericScheherID ID)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlannerRepository

public PlannerRepository()
                  throws Scheherexception
Throws:
Scheherexception
Method Detail

auditCompleteness

public void auditCompleteness(StoryInterpreter story)
                       throws Scheherexception
Audits the repository to make sure that it contains all the planners it could need in dealing with a particular story.

Throws:
Scheherexception

hasPlanner

public boolean hasPlanner(GenericScheherID ID)
                   throws Scheherexception
Throws:
Scheherexception

getPlanner

public SymbolPlanner getPlanner(GenericScheherID ID)
                         throws Scheherexception
Throws:
Scheherexception

addNounPlanner

public void addNounPlanner(NounPlanner planner)
                    throws Scheherexception
Throws:
Scheherexception

getNounPlanner

public NounPlanner getNounPlanner(NounType noun)
                           throws Scheherexception
Throws:
Scheherexception

hasNounPlanner

public boolean hasNounPlanner(NounType noun)
                       throws Scheherexception
Throws:
Scheherexception

addActionPlanner

public void addActionPlanner(ActionPlanner planner)

getActionPlanner

public ActionPlanner getActionPlanner(ActionType type)
                               throws Scheherexception
Throws:
Scheherexception

hasActionPlanner

public boolean hasActionPlanner(ActionType type)
                         throws Scheherexception
Throws:
Scheherexception

addConditionPlanner

public void addConditionPlanner(ConditionPlanner planner)

getConditionPlanner

public ConditionPlanner getConditionPlanner(ConditionType type)
                                     throws Scheherexception
Throws:
Scheherexception

hasConditionPlanner

public boolean hasConditionPlanner(ConditionType type)
                            throws Scheherexception
Throws:
Scheherexception

addModifierPlanner

public void addModifierPlanner(ModifierPlanner planner)

getModifierPlanner

public ModifierPlanner getModifierPlanner(ModifierType type)
                                   throws Scheherexception
Throws:
Scheherexception

hasModifierPlanner

public boolean hasModifierPlanner(ModifierType type)
                           throws Scheherexception
Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.