story.scheherazade.analysis
Class PredicateSorter

java.lang.Object
  extended by story.scheherazade.analysis.PredicateSorter

public class PredicateSorter
extends java.lang.Object

Encapsulates a set of predicates that are sorted by onset time (action or condition beginning).


Constructor Summary
PredicateSorter(NarrativeID title, StoryInterpreter storyInterpreter, Verbalizer verbalizer, PlannerRepository planners)
           
 
Method Summary
 void add(AssignedPredicate pred)
           
 AssignedPredicate getPredicate(int i)
           
 java.lang.String getRendering(int i)
           
 NarrativeID getTitle()
           
 java.lang.String getVerbalization(int i)
           
 java.util.Iterator<AssignedPredicate> iterator()
           
 double relativePosition(AssignedPredicate predicate)
           
 int size()
           
 java.util.Vector<AssignedPredicate> toPredicateList()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateSorter

public PredicateSorter(NarrativeID title,
                       StoryInterpreter storyInterpreter,
                       Verbalizer verbalizer,
                       PlannerRepository planners)
Method Detail

add

public void add(AssignedPredicate pred)
         throws Scheherexception
Throws:
Scheherexception

iterator

public java.util.Iterator<AssignedPredicate> iterator()

toPredicateList

public java.util.Vector<AssignedPredicate> toPredicateList()

getPredicate

public AssignedPredicate getPredicate(int i)
                               throws Scheherexception
Throws:
Scheherexception

getVerbalization

public java.lang.String getVerbalization(int i)
                                  throws Scheherexception
Throws:
Scheherexception

getRendering

public java.lang.String getRendering(int i)
                              throws Scheherexception
Throws:
Scheherexception

size

public int size()

relativePosition

public double relativePosition(AssignedPredicate predicate)
                        throws Scheherexception
Throws:
Scheherexception

getTitle

public NarrativeID getTitle()


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