|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.jape.DefaultActionContext
public class DefaultActionContext
Default implementation for an action context.
Note: A JAPE RHS should only ever use the methods defined in
the ActionContext interface, the additional methods implemented here
are for use by the Transducer only.
Field Summary | |
---|---|
protected Controller |
controller
|
protected Corpus |
corpus
|
protected boolean |
endPhaseSupported
|
protected boolean |
phaseEnded
|
protected ProcessingResource |
pr
|
protected FeatureMap |
prfeatures
|
protected String |
prname
|
Constructor Summary | |
---|---|
DefaultActionContext()
|
Method Summary | |
---|---|
boolean |
endPhase()
Request the current JAPE phase to be ended as soon as possible. |
Controller |
getController()
|
Corpus |
getCorpus()
Provide access to the corpus a JAPE processing resource is running on. |
FeatureMap |
getPRFeatures()
Provide access to the feature map associated with the JAPE processing resource. |
String |
getPRName()
Provide access to the name of the current transducer PR. |
boolean |
isPhaseEnded()
|
boolean |
isPREnabled()
Returns true if the PR this transducer is running in has a chance to be run at all in its controller. |
void |
setController(Controller c)
|
void |
setCorpus(Corpus corpus)
|
void |
setPhaseEnded(boolean isended)
|
void |
setPR(ProcessingResource pr)
|
void |
setPRFeatures(FeatureMap features)
|
void |
setPRName(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Corpus corpus
protected FeatureMap prfeatures
protected String prname
protected Controller controller
protected boolean endPhaseSupported
protected boolean phaseEnded
protected ProcessingResource pr
Constructor Detail |
---|
public DefaultActionContext()
Method Detail |
---|
public void setCorpus(Corpus corpus)
public void setPRFeatures(FeatureMap features)
public void setPRName(String name)
public void setPR(ProcessingResource pr)
public Corpus getCorpus()
ActionContext
getCorpus
in interface ActionContext
public FeatureMap getPRFeatures()
ActionContext
getPRFeatures
in interface ActionContext
public String getPRName()
ActionContext
getPRName
in interface ActionContext
public void setController(Controller c)
public Controller getController()
getController
in interface ActionContext
public boolean endPhase()
ActionContext
endPhase
in interface ActionContext
public boolean isPhaseEnded()
public void setPhaseEnded(boolean isended)
public boolean isPREnabled()
ActionContext
isPREnabled
in interface ActionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |