|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.nom.nomwrite.impl.NOMWriteCorpus
public class NOMWriteCorpus
NOMCorpus is the top-level class & represents a multi-rooted directed graph: the NOM structure. The constructor must pass a pre-loaded NMetaData structure which is used in many of the methods.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nite.nom.nomwrite.NOMCorpus |
|---|
UNTIMED |
| Constructor Summary | |
|---|---|
NOMWriteCorpus(NiteMetaData meta)
Construct a NOM corpus ready to load / edit data. |
|
NOMWriteCorpus(NiteMetaData meta,
java.io.PrintStream log)
Construct a NOM corpus ready to load / edit data. |
|
| Method Summary | |
|---|---|
void |
addDerivedAttribute(java.lang.String oldatt,
java.lang.String newatt,
double offset)
add a derived attribute to all the relevant elements in the entire corpus. |
void |
addDurations(java.lang.String attname)
add derived 'duration' attributes to all the timed elements in the corpus. |
void |
clearData()
Deletes all data in the NOM |
void |
clearDataForObservation(NObservation ob)
Removes any currently loaded data relating to the given observation |
void |
clearDataForObservation(java.lang.String ob)
Removes any currently loaded data relating to the named observation |
void |
comment(char[] ch,
int start,
int length)
Store comments (part of the LexicalHandler interface) |
void |
completeLoad()
finish loading *all* files we know about from the corpus: this only makes sense if lazy loading is switched on, otherwise it will do nothing. |
void |
deregisterViewer(NOMView display)
Remove a NOMView from the list of viewers that get notifed of changes. |
boolean |
edited()
returns true if the corpus has unsaved edits |
void |
endCDATA()
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
void |
endDTD()
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
void |
endEntity(java.lang.String name)
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
void |
forceAnnotatorCoding(java.lang.String annotator,
java.lang.String coding)
Force one coding to be loaded for a specific annotator when loadData is called. |
java.lang.String |
generateID(java.lang.String colour)
generates an Identifier that's globally unique - used when creating elements - we use 'colour' in an NXT-specific way: it's precisely the filename the element will be serailized into, without its the '.xml' extension: thus it comprises observation name; '.'; the agent name followed by '.' (if an agent coding); the coding name. |
java.lang.Comparable |
getAttributeComparableValue(java.lang.Object element,
java.lang.String name)
Returns the value of an attribute of an element as Comparable. |
boolean |
getBatchMode()
used internally to indicate when the process is in batch mode i.e. |
java.lang.Comparable |
getCenterComparableValue(java.lang.Object element)
Returns the center of start and end time as a Comparable value. |
java.lang.String |
getCodingFilename(NObservation no,
NCoding co,
NAgent ag)
Return the actual file to which this data should be serialized (including any annotator-specific subdirectory). |
double |
getCorpusDuration()
returns the duration of the corpus (last end time - earliest start time) (or UNTIMED if there is are no timed elements) |
double |
getCorpusEndTime()
returns the latest end time of any element in the corpus (or UNTIMED if there is no timed element) |
double |
getCorpusStartTime()
returns the earliest start time of any element in the corpus (or UNTIMED if there is no timed element) |
java.lang.Comparable |
getDurationComparableValue(java.lang.Object element)
Returns the temporal duration as a Comparable value. |
NOMElement |
getElementByID(java.lang.String id)
Return a NOMWriteElement which has the given element ID: you can either pass an unadorned ID in which case NXT searches for the element in all already-loaded files, or you can specify the 'full' ID like this: colour#id (e.g. |
NOMElement |
getElementByID(java.lang.String colour,
java.lang.String id)
|
java.util.Iterator |
getElements()
Returns an Iterator which visits each element in the NOM exactly once: this version loads any data that has not already been loaded. |
java.util.Iterator |
getElements(java.util.List names)
Returns an Iterator which visits each element with the specified type (= name of element) in the corpora exactly once. |
java.util.List |
getElementsByName(java.lang.String name)
Return a list of NOMWriteElements which have the given element name. |
java.util.Iterator |
getElementsDominatedBy(java.lang.Object rootElement)
Returns an Iterator which visits each element dominated by the specified element in the corpora exactly once. |
java.util.Iterator |
getElementsDominating(java.lang.Object childElement)
Returns an Iterator which visits each element dominating the specified element in the corpora exactly once. |
java.util.Iterator |
getElementsLoaded()
Returns an Iterator which visits each element that has already been loaded into the NOM exactly once: this version does not check whether there is data still to be loaded. |
java.util.Iterator |
getElementsOfSubgraph(java.lang.Object pointingElement)
Returns an Iterator which visits each element of the specified subgraphs in the corpora exactly once. |
java.util.Iterator |
getElementsPointedBy(java.lang.Object startElement)
Returns an Iterator which visits each element which has a pointer from the specified element in the corpora exactly once. |
java.lang.Comparable |
getEndComparableValue(java.lang.Object element)
Returns the start time as a Comparable value. |
java.io.PrintStream |
getErrorStream()
Return the error PrintStream |
java.lang.String |
getHrefAttr()
Link syntax information: get the name of the 'href' attribute |
java.lang.Comparable |
getIdComparableValue(java.lang.Object element)
Returns the ID of an element as a Comparable value. |
java.lang.String |
getLinkAfterID()
Link syntax information: get the String that appears after an ID |
java.lang.String |
getLinkBeforeID()
Link syntax information: get the String that appears before an ID |
java.lang.String |
getLinkFileSeparator()
Link syntax information: get the String that separates a filename from an ID |
java.util.List |
getLoadedObservations()
returns a List of NObservation elements - each one the name of an observation that has been asked to be loaded (how much, if any of the observation data actually loaded depends on lazy loading). |
java.io.PrintStream |
getLogStream()
Return the log PrintStream |
NOMMaker |
getMaker()
This is used by internal corpus-building routines so we make sure we always use the right constructors. |
int |
getMaxDepth(NLayer layer)
Return the deepest nesting of elements in this recursive layer (if the layer is not recursive, returns 1 or 0) |
NMetaData |
getMetaData()
returns the metadata associated with this NOM |
java.lang.String |
getNameOfElement(java.lang.Object element)
Returns the name/type of the specified element. |
java.util.List |
getPointersTo(NOMElement to_element)
Return the reverse index of pointers to the given element |
QueryRewriter |
getQueryRewriter()
Return the query rewriter that should be used (or null if it is not set) |
java.lang.String |
getRangeSeparator()
Link syntax information: get the String that appears between IDs in a range |
java.util.List |
getRootElements()
returns a List of NOMElements: the top level "stream" elements |
NOMElement |
getRootWithColour(java.lang.String colour)
returns the root NOMElement which has the given colour: we use 'colour' in an NXT-specific way: it's precisely the filename the element will be serailized into, without its the '.xml' extension: thus it comprises observation name; '.'; the agent name followed by '.' (if an agent coding); the coding name. |
java.lang.Comparable |
getStartComparableValue(java.lang.Object element)
Returns the start time as a Comparable value. |
java.lang.Comparable |
getText(java.lang.Object element)
Returns the value of the text content as Comparable. |
boolean |
isEditSafe()
Return true if the corpus can be edited safely - for internal use. |
boolean |
isLazyLoading()
Set to true (default) to lazy-load any future calls to load data; false means everything in future load calls is loaded up-front. |
boolean |
isLoadingFromFile()
Returns true if data is currently being loaded from file. |
boolean |
isQueryRewriting()
true means we have enabled the new query rewrite functionality that can increase the speed of your queries. |
boolean |
isValidating()
returns true if the corpus is validating (i.e. |
void |
loadData()
Load all data for the corpus into the NOMCorpus. |
void |
loadData(java.util.List observations,
java.util.List codings)
Load data for a specific set of observations into the NOMCorpus. |
void |
loadData(NObservation observation)
Load data for a single observation into the NOMCorpus. |
void |
loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations)
Load data for the purpose of comparing different coders' data. |
void |
loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations,
java.util.List extra_layers)
Load data for the purpose of comparing different coders' data. |
boolean |
lock(NOMView view)
lock the corpus for edits - this is only necessary if more than one application will be writing to the same NOM simultaneously. |
java.util.Iterator |
NOMWalker()
Provides an iterator which visits each element in the NOM exactly once. |
void |
notifyChange()
Notify all NOMViews that an (unspecified) edit has ocurred |
void |
notifyChange(NOMEdit edit)
Notify all NOMViews that a specific NOMEdit has ocurred |
void |
notifyChange(NOMEdit edit,
NOMView view)
Notify all NOMViews except the one passed as an argument that a NOMEdit has ocurred |
void |
preferAnnotatorCoding(java.lang.String annotator,
java.lang.String coding)
Prefer one coding to be loaded for a specific annotator when loadData is called. |
void |
printStructure()
A method to show the structure of the multi-rooted XML in the NOM |
void |
registerID(java.lang.String id,
java.lang.String colour)
registers an Identifier as having been used and if necessary, notes an Integer in the ID hash for quick generation of IDs. |
void |
registerViewer(NOMView display)
Add a NOMView to the list of viewers that get notifed of changes. |
void |
removePointerIndex(NOMPointer point)
Remove a pointer from our global index (the index is required so we can delete appropriate pointers to elements that are themselves deleted. |
NOMElement |
resolveLink(java.lang.String xlink)
Resolve an individual xlink expression which points to exactly one NOM element. |
NOMElement |
resolveLink(java.lang.String xlink,
int linktype)
Resolve an individual xlink expression which points to exactly one NOM element - the second argument explicitly names the link type involved. |
void |
serializeCorpus()
Serialize all loaded files |
void |
serializeCorpus(java.util.List observations)
Serialize all loaded files for the given list of observations |
void |
serializeCorpusChanged()
Serialize all files which have been changed. |
boolean |
serializeInheritedTimes()
True if we should allow inherited times to be serialized |
boolean |
serializeMaximalRanges()
True if we should serialize ranges |
void |
setDefaultAnnotator(java.lang.String annotator)
Set the preferred annotator for *all* codings that is used on subsequent loadData calls. |
void |
setErrorStream(java.io.PrintStream ps)
Set the error PrintStream |
void |
setForceStreamElementNames(boolean bool)
Set to true to make future serialization calls serialize with stream element names conforming to meta.getStreamElementName(). |
void |
setLazyLoading(boolean bool)
Set to true (default) to lazy-load any future calls to load data; false means everything in future load calls is loaded up-front. |
void |
setLogStream(java.io.PrintStream ps)
Set the log PrintStream |
void |
setQueryRewriter(QueryRewriter writer)
Enable the query rewrite functionality and select a rewriter to use (if the argument is null, query rewriting will not be enabled). |
void |
setQueryRewriting(boolean val)
set to true to enable the new query rewrite functionality that can increase the speed of your queries |
void |
setSchemaLocation(java.lang.String location)
If this method is used with a non-null argument, we make sure the schema instance namespace is output on every stream-like element on serialization along with this as the noNamespaceSchemaLocation |
void |
setSerializeInheritedTimes(boolean bool)
Set to true to make future serialization calls serialize with inherited times on structural elements. |
void |
setSerializeMaximalRanges(boolean bool)
Set to true (default) to make future serialization calls serialize with ranges where possible. |
void |
setValidation(boolean validate)
Set validation for the corpus. |
void |
startCDATA()
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
void |
startEntity(java.lang.String name)
part of the org.xml.sax.ext.LexicalHandler implementation - not for programming use |
boolean |
testContactWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A ends at the time element B starts. |
boolean |
testDominates(java.lang.Object a,
java.lang.Object b)
Returns true if element A dominates element B. |
boolean |
testDominates(java.lang.Object a,
java.lang.Object b,
int distance)
Returns true if element A dominates element B with the specified distance. |
boolean |
testDominatesSubgraph(java.lang.Object a,
java.lang.Object b)
Returns true if there is a pointer from the first element to another element which is dominated by the second element. |
boolean |
testDominatesSubgraph(java.lang.Object a,
java.lang.Object b,
java.lang.String role)
Returns true if there is a pointer with a specified role from the first element to another element which is dominated by the second element. |
boolean |
testHasPointer(java.lang.Object from,
java.lang.Object to)
Returns true if there is a pointer from the first to the second element. |
boolean |
testHasPointer(java.lang.Object from,
java.lang.Object to,
java.lang.String role)
Returns true if there is a pointer from the first to the second element with the specified role. |
boolean |
testIncludes(java.lang.Object a,
java.lang.Object b)
Returns true if element A temporally includes element B. |
boolean |
testIsEqual(java.lang.Object a,
java.lang.Object b)
Returns true if element A is the same element as element B. |
boolean |
testIsInequal(java.lang.Object a,
java.lang.Object b)
Returns true if element A is not the same element as element B. |
boolean |
testLeftAlignedWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A is left aligned with element B. |
boolean |
testOverlapsLeft(java.lang.Object a,
java.lang.Object b)
Returns true if element A overlaps left element B. |
boolean |
testOverlapsWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A overlaps element B. |
boolean |
testPrecedes(java.lang.Object a,
java.lang.Object b)
Returns true if element A precedes element B. |
boolean |
testPrecedesTemporal(java.lang.Object a,
java.lang.Object b)
Returns true if element A temporally precedes element B. |
boolean |
testRightAlignedWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A is right aligned with element B. |
boolean |
testSameDuration(java.lang.Object a,
java.lang.Object b)
Returns true if element A and element B have the same duration. |
boolean |
testSameExtend(java.lang.Object a,
java.lang.Object b)
Returns true if element A and element B have the same duration. |
boolean |
testTimed(java.lang.Object a)
Returns true if the element A is timed. |
boolean |
unlock(NOMView view)
unlock the corpus |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOMWriteCorpus(NiteMetaData meta)
public NOMWriteCorpus(NiteMetaData meta,
java.io.PrintStream log)
| Method Detail |
|---|
public boolean getBatchMode()
getBatchMode in interface NOMCorpuspublic boolean isLoadingFromFile()
isLoadingFromFile in interface NOMCorpus
public void loadData(java.util.List observations,
java.util.List codings)
throws NOMException
loadData in interface NOMCorpusNOMException
public void loadData(NObservation observation)
throws NOMException
loadData in interface NOMCorpusNOMExceptionpublic void setDefaultAnnotator(java.lang.String annotator)
setDefaultAnnotator in interface NOMCorpus
public void forceAnnotatorCoding(java.lang.String annotator,
java.lang.String coding)
throws NOMException
forceAnnotatorCoding in interface NOMCorpusNOMException
public void preferAnnotatorCoding(java.lang.String annotator,
java.lang.String coding)
throws NOMException
preferAnnotatorCoding in interface NOMCorpusNOMException
public void loadData()
throws NOMException
loadData in interface NOMCorpusNOMException
public void loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations)
throws NOMException
loadReliability in interface NOMCorpusNOMException
public void loadReliability(NLayer top,
NLayer top_common,
java.lang.String coder_attribute_name,
java.lang.String path,
java.util.List observations,
java.util.List extra_layers)
throws NOMException
loadReliability in interface NOMCorpusNOMExceptionpublic void clearData()
clearData in interface NOMCorpuspublic void clearDataForObservation(NObservation ob)
clearDataForObservation in interface NOMCorpuspublic void clearDataForObservation(java.lang.String ob)
clearDataForObservation in interface NOMCorpuspublic java.util.List getRootElements()
getRootElements in interface NOMCorpuspublic NOMElement getRootWithColour(java.lang.String colour)
getRootWithColour in interface NOMCorpuspublic java.util.List getElementsByName(java.lang.String name)
getElementsByName in interface NOMCorpus
public NOMElement getElementByID(java.lang.String colour,
java.lang.String id)
getElementByID in interface NOMCorpuspublic NOMElement getElementByID(java.lang.String id)
getElementByID in interface NOMCorpuspublic int getMaxDepth(NLayer layer)
getMaxDepth in interface NOMCorpuspublic boolean isValidating()
isValidating in interface NOMCorpuspublic void setValidation(boolean validate)
setValidation in interface NOMCorpuspublic NMetaData getMetaData()
getMetaData in interface NOMCorpuspublic java.util.List getLoadedObservations()
getLoadedObservations in interface NOMCorpuspublic void setForceStreamElementNames(boolean bool)
setForceStreamElementNames in interface NOMCorpuspublic void setSchemaLocation(java.lang.String location)
setSchemaLocation in interface NOMCorpuspublic void setLazyLoading(boolean bool)
setLazyLoading in interface NOMCorpuspublic void completeLoad()
completeLoad in interface NOMCorpuspublic boolean isLazyLoading()
isLazyLoading in interface NOMCorpuspublic void setSerializeInheritedTimes(boolean bool)
setSerializeInheritedTimes in interface NOMCorpuspublic boolean serializeInheritedTimes()
serializeInheritedTimes in interface NOMCorpuspublic boolean serializeMaximalRanges()
serializeMaximalRanges in interface NOMCorpuspublic void setSerializeMaximalRanges(boolean bool)
setSerializeMaximalRanges in interface NOMCorpuspublic java.lang.String getLinkFileSeparator()
getLinkFileSeparator in interface NOMCorpuspublic java.lang.String getLinkBeforeID()
getLinkBeforeID in interface NOMCorpuspublic java.lang.String getLinkAfterID()
getLinkAfterID in interface NOMCorpuspublic java.lang.String getRangeSeparator()
getRangeSeparator in interface NOMCorpuspublic java.lang.String getHrefAttr()
getHrefAttr in interface NOMCorpuspublic java.util.Iterator NOMWalker()
NOMWalker in interface NOMCorpus
public void serializeCorpus()
throws NOMException
serializeCorpus in interface NOMCorpusNOMException
public void serializeCorpusChanged()
throws NOMException
serializeCorpusChanged in interface NOMCorpusNOMException
public void serializeCorpus(java.util.List observations)
throws NOMException
serializeCorpus in interface NOMCorpusNOMException
public java.lang.String getCodingFilename(NObservation no,
NCoding co,
NAgent ag)
getCodingFilename in interface NOMCorpuspublic NOMElement resolveLink(java.lang.String xlink)
resolveLink in interface NOMCorpus
public NOMElement resolveLink(java.lang.String xlink,
int linktype)
resolveLink in interface NOMCorpus
public void comment(char[] ch,
int start,
int length)
comment in interface org.xml.sax.ext.LexicalHandlerpublic void endCDATA()
endCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void endDTD()
endDTD in interface org.xml.sax.ext.LexicalHandlerpublic void endEntity(java.lang.String name)
endEntity in interface org.xml.sax.ext.LexicalHandlerpublic void startCDATA()
startCDATA in interface org.xml.sax.ext.LexicalHandler
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
startDTD in interface org.xml.sax.ext.LexicalHandlerpublic void startEntity(java.lang.String name)
startEntity in interface org.xml.sax.ext.LexicalHandlerpublic void registerViewer(NOMView display)
registerViewer in interface NOMControlpublic void deregisterViewer(NOMView display)
deregisterViewer in interface NOMControlpublic boolean isEditSafe()
isEditSafe in interface NOMCorpuspublic void notifyChange()
notifyChange in interface NOMControl
public void notifyChange(NOMEdit edit)
throws NOMException
notifyChange in interface NOMControlNOMException
public void notifyChange(NOMEdit edit,
NOMView view)
throws NOMException
notifyChange in interface NOMControlNOMExceptionpublic boolean lock(NOMView view)
lock in interface NOMCorpuspublic boolean unlock(NOMView view)
unlock in interface NOMCorpuspublic boolean edited()
edited in interface NOMCorpuspublic java.util.List getPointersTo(NOMElement to_element)
getPointersTo in interface NOMCorpuspublic void removePointerIndex(NOMPointer point)
removePointerIndex in interface NOMCorpuspublic java.lang.String generateID(java.lang.String colour)
generateID in interface NOMCorpus
public void registerID(java.lang.String id,
java.lang.String colour)
registerID in interface NOMCorpuspublic void printStructure()
public java.util.Iterator getElements()
getElements in interface SearchableCorpuspublic java.util.Iterator getElementsLoaded()
public java.lang.Comparable getText(java.lang.Object element)
getText in interface SearchableCorpuselement - the element containing the text, that will be returned
public java.lang.Comparable getAttributeComparableValue(java.lang.Object element,
java.lang.String name)
getAttributeComparableValue in interface SearchableCorpuselement - the element with the requested attributename - the name of the attribute
public boolean testIsEqual(java.lang.Object a,
java.lang.Object b)
testIsEqual in interface SearchableCorpusa - element Ab - element B
public boolean testIsInequal(java.lang.Object a,
java.lang.Object b)
testIsInequal in interface SearchableCorpusa - element Ab - element B
public boolean testDominates(java.lang.Object a,
java.lang.Object b)
testDominates in interface SearchableCorpusa - element Ab - element B
public boolean testDominates(java.lang.Object a,
java.lang.Object b,
int distance)
testDominates in interface SearchableCorpusa - element Ab - element Bdistance - distance between element A and element B
public boolean testPrecedes(java.lang.Object a,
java.lang.Object b)
testPrecedes in interface SearchableCorpusa - element Ab - element B
public boolean testHasPointer(java.lang.Object from,
java.lang.Object to)
testHasPointer in interface SearchableCorpusfrom - start element of the pointerto - target element of the pointer
public boolean testHasPointer(java.lang.Object from,
java.lang.Object to,
java.lang.String role)
testHasPointer in interface SearchableCorpusfrom - start element of the pointerto - target element of the pointerrole - the role of the pointer
public boolean testDominatesSubgraph(java.lang.Object a,
java.lang.Object b)
testDominatesSubgraph in interface SearchableCorpusfrom - start element of the pointerto - element which dominates target element of the pointer
public boolean testDominatesSubgraph(java.lang.Object a,
java.lang.Object b,
java.lang.String role)
testDominatesSubgraph in interface SearchableCorpusfrom - start element of the pointerto - element which dominates target element of the pointerrole - the role of the pointer
public boolean testSameExtend(java.lang.Object a,
java.lang.Object b)
SearchableCorpus
testSameExtend in interface SearchableCorpusa - element Ab - element B
public boolean testTimed(java.lang.Object a)
testTimed in interface SearchableCorpusa - element A
public boolean testOverlapsLeft(java.lang.Object a,
java.lang.Object b)
testOverlapsLeft in interface SearchableCorpusa - element Ab - element B
public boolean testLeftAlignedWith(java.lang.Object a,
java.lang.Object b)
testLeftAlignedWith in interface SearchableCorpusa - element Ab - element B
public boolean testRightAlignedWith(java.lang.Object a,
java.lang.Object b)
testRightAlignedWith in interface SearchableCorpusa - element Ab - element B
public boolean testIncludes(java.lang.Object a,
java.lang.Object b)
testIncludes in interface SearchableCorpusa - element Ab - element B
public boolean testSameDuration(java.lang.Object a,
java.lang.Object b)
a - element Ab - element B
public boolean testOverlapsWith(java.lang.Object a,
java.lang.Object b)
testOverlapsWith in interface SearchableCorpusa - element Ab - element B
public boolean testContactWith(java.lang.Object a,
java.lang.Object b)
testContactWith in interface SearchableCorpusa - element Ab - element B
public boolean testPrecedesTemporal(java.lang.Object a,
java.lang.Object b)
testPrecedesTemporal in interface SearchableCorpusa - element Ab - element B
public java.lang.String getNameOfElement(java.lang.Object element)
getNameOfElement in interface SearchableCorpuselement - the element with the name, that will be returned
public java.lang.Comparable getStartComparableValue(java.lang.Object element)
getStartComparableValue in interface SearchableCorpuselemen - the element with the start time, that will be returned
public java.lang.Comparable getEndComparableValue(java.lang.Object element)
getEndComparableValue in interface SearchableCorpuselemen - the element with the start time, that will be returned
public java.lang.Comparable getDurationComparableValue(java.lang.Object element)
getDurationComparableValue in interface SearchableCorpuselemen - the element with the temporal duration, that will be returned
public java.lang.Comparable getCenterComparableValue(java.lang.Object element)
getCenterComparableValue in interface SearchableCorpuselemen - the element with the center of start and end time, that will
be returned
public java.lang.Comparable getIdComparableValue(java.lang.Object element)
getIdComparableValue in interface SearchableCorpuselement - the element with the ID, that will be returned
public java.util.Iterator getElementsDominatedBy(java.lang.Object rootElement)
getElementsDominatedBy in interface SearchableCorpusrootElement - the element which should dominate the requested
elements
public java.util.Iterator getElementsDominating(java.lang.Object childElement)
getElementsDominating in interface SearchableCorpuschildElement - the element whisch should be dominated by the requested
elements
public java.util.Iterator getElementsPointedBy(java.lang.Object startElement)
getElementsPointedBy in interface SearchableCorpusstartElement - the element where a pointer pointing to the requested
elements starts
public java.util.Iterator getElements(java.util.List names)
getElements in interface SearchableCorpustypes - list of types
public java.util.Iterator getElementsOfSubgraph(java.lang.Object pointingElement)
getElementsOfSubgraph in interface SearchableCorpuspointingElement - the element pointing to the subgraphs
public double getCorpusStartTime()
getCorpusStartTime in interface NOMCorpuspublic double getCorpusEndTime()
getCorpusEndTime in interface NOMCorpuspublic double getCorpusDuration()
getCorpusDuration in interface NOMCorpuspublic java.io.PrintStream getLogStream()
public void setLogStream(java.io.PrintStream ps)
public java.io.PrintStream getErrorStream()
public void setErrorStream(java.io.PrintStream ps)
public void addDerivedAttribute(java.lang.String oldatt,
java.lang.String newatt,
double offset)
public void addDurations(java.lang.String attname)
public NOMMaker getMaker()
getMaker in interface NOMCorpuspublic void setQueryRewriting(boolean val)
setQueryRewriting in interface SearchableCorpuspublic boolean isQueryRewriting()
isQueryRewriting in interface SearchableCorpuspublic void setQueryRewriter(QueryRewriter writer)
setQueryRewriter in interface SearchableCorpuspublic QueryRewriter getQueryRewriter()
getQueryRewriter in interface SearchableCorpus
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||