|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ofai.gate.jape.Transducer
public abstract class Transducer
Represents a single or multiphase transducer.
Field Summary | |
---|---|
protected boolean |
interrupted
|
protected java.lang.String |
name
Name of this transducer. |
protected gate.creole.ontology.Ontology |
ontology
|
Constructor Summary | |
---|---|
Transducer()
|
Method Summary | |
---|---|
void |
addProgressListener(gate.event.ProgressListener l)
|
void |
addStatusListener(gate.event.StatusListener l)
|
abstract void |
cleanUp()
Clean up (delete action class files, for e.g.). |
abstract void |
finish()
Finish: replace dynamic data structures with Java arrays; called after parsing. |
protected void |
fireProcessFinished()
|
protected void |
fireProgressChanged(int e)
This property affects the Appelt style of rules application. |
protected void |
fireStatusChanged(java.lang.String e)
|
java.net.URL |
getBaseURL()
|
java.lang.String |
getName()
Get the phase name of this transducer |
gate.creole.ontology.Ontology |
getOntology()
Gets the ontology used by this transducer; |
void |
interrupt()
Notifies this PR that it should stop its execution as soon as possible. |
boolean |
isDebugMode()
|
boolean |
isInterrupted()
Checks whether this PR has been interrupted since the lsat time its execute
method was called. |
void |
removeProgressListener(gate.event.ProgressListener l)
|
void |
removeStatusListener(gate.event.StatusListener l)
|
void |
setBaseURL(java.net.URL newBaseURL)
|
void |
setDebugMode(boolean debugMode)
|
void |
setOntology(gate.creole.ontology.Ontology ontology)
Sets the ontology used by this transducer; |
abstract java.lang.String |
toString(java.lang.String pad)
Create a string representation of the object with padding. |
abstract void |
transduce(gate.Document doc,
gate.AnnotationSet inputAS,
gate.AnnotationSet outputAS)
Transduce a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected gate.creole.ontology.Ontology ontology
protected boolean interrupted
Constructor Detail |
---|
public Transducer()
Method Detail |
---|
public java.lang.String getName()
public abstract void transduce(gate.Document doc, gate.AnnotationSet inputAS, gate.AnnotationSet outputAS) throws JapeException, gate.creole.ExecutionException
JapeException
gate.creole.ExecutionException
public abstract void finish()
public abstract void cleanUp()
public abstract java.lang.String toString(java.lang.String pad)
public boolean isInterrupted()
execute
method was called.
public void interrupt()
public void setBaseURL(java.net.URL newBaseURL)
public java.net.URL getBaseURL()
public void removeProgressListener(gate.event.ProgressListener l)
public void addProgressListener(gate.event.ProgressListener l)
public void setDebugMode(boolean debugMode)
public boolean isDebugMode()
protected void fireProgressChanged(int e)
protected void fireProcessFinished()
public void removeStatusListener(gate.event.StatusListener l)
public void addStatusListener(gate.event.StatusListener l)
protected void fireStatusChanged(java.lang.String e)
public gate.creole.ontology.Ontology getOntology()
Ontology
value;public void setOntology(gate.creole.ontology.Ontology ontology)
ontology
- an Ontology
value;
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |