|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.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 FeatureMap |
prfeatures
|
| Constructor Summary | |
|---|---|
DefaultActionContext()
|
|
| Method Summary | |
|---|---|
boolean |
endPhase()
Request the current JAPE phase to be ended as soon as possible. |
Controller |
getController()
Provide access to the controller running the PR this action context lives in. |
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. |
boolean |
isPhaseEnded()
|
void |
setController(Controller c)
|
void |
setCorpus(Corpus corpus)
|
void |
setPhaseEnded(boolean isended)
|
void |
setPRFeatures(FeatureMap features)
|
| 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 Controller controller
protected boolean endPhaseSupported
protected boolean phaseEnded
| Constructor Detail |
|---|
public DefaultActionContext()
| Method Detail |
|---|
public void setCorpus(Corpus corpus)
public void setPRFeatures(FeatureMap features)
public Corpus getCorpus()
ActionContext
getCorpus in interface ActionContextpublic FeatureMap getPRFeatures()
ActionContext
getPRFeatures in interface ActionContextpublic void setController(Controller c)
public Controller getController()
ActionContext
getController in interface ActionContextpublic boolean endPhase()
ActionContext
endPhase in interface ActionContextpublic boolean isPhaseEnded()
public void setPhaseEnded(boolean isended)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||