|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.misc.GenericScheherID
story.scheherazade.misc.TimelineID
public class TimelineID
Extension of GenericScheherID that semantically represents the ID of a Timeline.
Field Summary | |
---|---|
static TimelineID |
INTERP
|
static TimelineID |
REALITY
|
static TimelineID |
UNIVERSAL
|
Constructor Summary | |
---|---|
TimelineID(java.lang.String name)
|
|
TimelineID(TimelineID ID,
TimelineID superTimelineID,
long creationTime)
Constructor for including supertimeline metadata. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
long |
getCreationTime()
|
GenericScheherID |
getType()
Get the GenericScheherID's type (or supertype, if it's already a type). |
WordNetOffset |
getWordNetOffset()
Get the GenericScheherID's WordNet synset offset |
boolean |
knownInScopeOf(TimelineID possibleAncestor)
Return true if super-timeline metadata is set and this timelien is in the scope of (a descendant of) some other timeline. |
static TimelineID |
makeTimelineID(java.lang.String name)
Convenient function that returns a TimelineID for a certain string, either by constructing a new one or returning the static field(s) for reserved IDs. |
java.lang.StringBuffer |
render()
Render the ID in a StringBuffer. |
Methods inherited from class story.scheherazade.misc.GenericScheherID |
---|
equals, getIDType, isEveryType, isGenericType, isGroupType, isUniversalType, toRawString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface story.scheherazade.misc.ScheherIDWithType |
---|
isUniversalType |
Field Detail |
---|
public static final TimelineID UNIVERSAL
public static final TimelineID REALITY
public static final TimelineID INTERP
Constructor Detail |
---|
public TimelineID(java.lang.String name) throws Scheherexception
Scheherexception
public TimelineID(TimelineID ID, TimelineID superTimelineID, long creationTime) throws Scheherexception
Scheherexception
Method Detail |
---|
public static TimelineID makeTimelineID(java.lang.String name) throws Scheherexception
Scheherexception
public long getCreationTime()
public int compareTo(java.lang.Object other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
compareTo
in class GenericScheherID
java.lang.ClassCastException
public java.lang.StringBuffer render() throws Scheherexception
GenericScheherID
render
in interface RenderableObject
render
in class GenericScheherID
Scheherexception
public GenericScheherID getType() throws Scheherexception
ScheherIDWithType
getType
in interface ScheherIDWithType
Scheherexception
public boolean knownInScopeOf(TimelineID possibleAncestor) throws Scheherexception
Scheherexception
public WordNetOffset getWordNetOffset()
ScheherIDWithType
getWordNetOffset
in interface ScheherIDWithType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |