public class WhiteboardFlowController2
extends org.apache.uima.flow.CasFlowController_ImplBase
Limitations: only looks at types, not features. Ignores languagesSupported. Does not handle multiple Sofas or CasMultipliers.
This is an alternative implementation of
WhiteboardFlowController. It is slightly more complex but
should acheive better performance because CAS Type handles are resolved once, during
intitialization, instead of repeatedly resolved at each step of the flow.
| Constructor and Description |
|---|
WhiteboardFlowController2() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.uima.flow.Flow |
computeFlow(org.apache.uima.cas.CAS aCAS) |
void |
initialize(org.apache.uima.flow.FlowControllerContext aContext) |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) |
computeFlow, getRequiredCasInterfacepublic void initialize(org.apache.uima.flow.FlowControllerContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.flow.FlowControllerinitialize in class org.apache.uima.flow.FlowController_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit in class org.apache.uima.flow.CasFlowController_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic org.apache.uima.flow.Flow computeFlow(org.apache.uima.cas.CAS aCAS)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
computeFlow in class org.apache.uima.flow.CasFlowController_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.