story.scheherazade.analysis
Class PredicateSorter
java.lang.Object
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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredicateSorter
public PredicateSorter(NarrativeID title,
StoryInterpreter storyInterpreter,
Verbalizer verbalizer,
PlannerRepository planners)
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.