|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.analysis.SCHIntersection
public class SCHIntersection
Constructor Summary | |
---|---|
SCHIntersection(Timeline timelineHandler,
java.lang.Object object,
int truthDegree,
SemanticRole role,
java.util.Vector<SCHIntersection> args,
NarrativeID storyID,
NounName associatedName)
Constructor for making a "seed" intersection |
|
SCHIntersection(Timeline timelineHandler,
java.lang.Object object,
java.util.Vector<SCHIntersection> args,
SCHIntersection source1,
SCHIntersection source2,
java.lang.StringBuffer notes)
Constructor for making an intersection derived from other intersections |
Method Summary | |
---|---|
void |
absorbContributorsOfDuplicate(SCHIntersection intersection)
|
void |
addContributor(java.lang.Object contributingObject,
ContributorID contributor,
NarrativeID storyID)
|
void |
addModifier(SCHIntersection modifier)
|
void |
appendNote(java.lang.String note)
|
int |
compareTo(java.lang.Object other)
|
boolean |
coversSameStory(SCHIntersection other)
|
SCHIntersection |
getArgOfRole(SemanticRole role)
|
java.util.Vector<SCHIntersection> |
getArgs()
|
double |
getAverageRelativePosition()
|
java.util.TreeSet<Contributor> |
getContributors()
|
java.util.Iterator<NarrativeID> |
getCoveredStories()
|
NarrativeID |
getFirstCoveredStory()
|
GenericScheherID |
getFrameType()
|
int |
getMaxFrameSize()
Get the number of possible arguments this intersection might have, which is the largest number of arguments of any contributing predicate. |
java.util.Vector<SCHIntersection> |
getModifiers()
|
java.lang.Object |
getObject()
|
int |
getOrdinalState()
|
double |
getPairwiseScore()
|
SemanticRole |
getRole()
|
double |
getScore()
|
SCHIntersection |
getSource1()
|
SCHIntersection |
getSource2()
|
int |
getStoryPosition()
|
int |
getTruthDegree()
|
boolean |
involvesContributor(AssignedPredicate target1,
NarrativeID story)
|
boolean |
involvesSources(SCHIntersection child1,
SCHIntersection child2)
|
boolean |
isDuplicateOf(SCHIntersection other)
|
boolean |
isNull()
|
SCHIntersection |
makeCopy()
|
java.lang.Object |
makeMeanObject()
|
int |
numContributors()
|
int |
numCoveredStories()
|
void |
overrideNotes(java.lang.StringBuffer newNotes)
|
void |
overrideParents(SCHIntersection newSource1,
SCHIntersection newSource2)
|
java.lang.StringBuffer |
render()
|
java.lang.StringBuffer |
render(boolean includeAncillaries)
|
java.lang.StringBuffer |
render(Verbalizer verbalizer,
StoryInterpreter story,
Style style,
PlannerRepository planners)
|
boolean |
representsName(NameAssociation name)
Return whether this intersection represents a named entity in one of the represented stories. |
SCHIntersection |
reSeed()
Make a copy of the SCHIntersection that does not have any connection to real narratives; used for mean objects (abstractions) |
void |
setAverageRelativePosition(double averageRelativePosition)
|
void |
setOrdinalState(int ordinalState)
|
void |
setParaphraseMapping(ScheherIDWithType key,
ScheherIDWithType replacement)
Used when predicates are normalized, causing the type to no longer be a supertype of the contributor, making hop calculation impossible. |
void |
setScore(double score)
|
void |
setStoryPosition(int position)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCHIntersection(Timeline timelineHandler, java.lang.Object object, int truthDegree, SemanticRole role, java.util.Vector<SCHIntersection> args, NarrativeID storyID, NounName associatedName) throws Scheherexception
Scheherexception
public SCHIntersection(Timeline timelineHandler, java.lang.Object object, java.util.Vector<SCHIntersection> args, SCHIntersection source1, SCHIntersection source2, java.lang.StringBuffer notes) throws Scheherexception
Scheherexception
Method Detail |
---|
public int getTruthDegree() throws Scheherexception
Scheherexception
public boolean coversSameStory(SCHIntersection other) throws Scheherexception
Scheherexception
public NarrativeID getFirstCoveredStory()
public java.util.Iterator<NarrativeID> getCoveredStories()
public int numCoveredStories()
public SemanticRole getRole() throws Scheherexception
Scheherexception
public void absorbContributorsOfDuplicate(SCHIntersection intersection) throws Scheherexception
Scheherexception
public boolean isDuplicateOf(SCHIntersection other) throws Scheherexception
Scheherexception
public void addContributor(java.lang.Object contributingObject, ContributorID contributor, NarrativeID storyID) throws Scheherexception
Scheherexception
public void addModifier(SCHIntersection modifier) throws Scheherexception
Scheherexception
public int numContributors()
public java.util.TreeSet<Contributor> getContributors()
public java.util.Vector<SCHIntersection> getModifiers()
public java.util.Vector<SCHIntersection> getArgs() throws Scheherexception
Scheherexception
public boolean involvesSources(SCHIntersection child1, SCHIntersection child2)
public boolean involvesContributor(AssignedPredicate target1, NarrativeID story) throws Scheherexception
Scheherexception
public int getOrdinalState()
public void setOrdinalState(int ordinalState)
public int getStoryPosition()
public void setStoryPosition(int position)
public double getPairwiseScore() throws Scheherexception
Scheherexception
public int getMaxFrameSize() throws Scheherexception
Scheherexception
public java.lang.Object getObject()
public java.lang.StringBuffer render(Verbalizer verbalizer, StoryInterpreter story, Style style, PlannerRepository planners) throws Scheherexception
Scheherexception
public java.lang.StringBuffer render() throws Scheherexception
Scheherexception
public java.lang.StringBuffer render(boolean includeAncillaries) throws Scheherexception
Scheherexception
public double getScore()
public void setScore(double score)
public double getAverageRelativePosition()
public void setAverageRelativePosition(double averageRelativePosition)
public int compareTo(java.lang.Object other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public java.lang.Object makeMeanObject() throws Scheherexception
Scheherexception
public GenericScheherID getFrameType() throws Scheherexception
Scheherexception
public SCHIntersection reSeed() throws Scheherexception
Scheherexception
public SCHIntersection makeCopy() throws Scheherexception
Scheherexception
public void setParaphraseMapping(ScheherIDWithType key, ScheherIDWithType replacement) throws Scheherexception
Scheherexception
public void appendNote(java.lang.String note)
public boolean isNull()
public void overrideParents(SCHIntersection newSource1, SCHIntersection newSource2)
public void overrideNotes(java.lang.StringBuffer newNotes) throws Scheherexception
Scheherexception
public SCHIntersection getArgOfRole(SemanticRole role) throws Scheherexception
Scheherexception
public SCHIntersection getSource1()
public SCHIntersection getSource2()
public boolean representsName(NameAssociation name) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |