public class CapabilityLanguageFlowController extends CasFlowController_ImplBase
| Constructor and Description |
|---|
CapabilityLanguageFlowController() |
| Modifier and Type | Method and Description |
|---|---|
Flow |
computeFlow(CAS aCAS)
This method must be overriden by subclasses.
|
protected Map<String,List<AnalysisSequenceCapabilityNode>> |
computeFlowTable(Capability[] aCapabilities)
method computeFlowTable create the flow table for faster processing.
|
protected List<AnalysisSequenceCapabilityNode> |
computeSequence(String language,
Capability[] aCapabilities)
method computeSequence creates a capabilityLanguageAnalysisSequence for the given language
|
static FlowControllerDescription |
getDescription() |
Map<String,ResultSpecification> |
getLastResultSpecForComponent() |
void |
initialize(FlowControllerContext aContext)
Performs any startup tasks required by this component.
|
computeFlow, getRequiredCasInterface, typeSystemInitaddAnalysisEngines, batchProcessComplete, collectionProcessComplete, destroy, getContext, reconfigure, removeAnalysisEnginespublic void initialize(FlowControllerContext aContext) throws ResourceInitializationException
FlowController
The framework supplies this FlowController with a reference to the
FlowControllerContext that it will use, for example to access configuration settings or
resources. This FlowController should store a reference to this Context for later use.
initialize in interface FlowControllerinitialize in class FlowController_ImplBaseaContext - Provides access to services and resources managed by the framework. This includes
configuration parameters, logging, and access to external resources. Also provides the
FlowController with the metadata of all of the AnalysisEngines that are possible
targets for routing CASes.ResourceInitializationException - if the FlowController cannot initialize successfully.public Flow computeFlow(CAS aCAS) throws AnalysisEngineProcessException
CasFlowController_ImplBaseCAS and returns a Flow
object that is responsible for routing this particular CAS through the components of this
Aggregate. The Flow object should be given a handle to the CAS, so that it can
use information in the CAS to make routing decisions.
FlowController implementations will typically define their own class that implements
Flow by extending from the base class CasFlow_ImplBase. This method would then
just instantiate the flow object, call its setCas method to provide a handle to
the CAS, and return the flow object.
computeFlow in class CasFlowController_ImplBaseaCAS - the CAS to be routedaCASAnalysisEngineProcessException - if a problem occurs during processingFlowController.computeFlow(AbstractCas)protected Map<String,List<AnalysisSequenceCapabilityNode>> computeFlowTable(Capability[] aCapabilities)
aCapabilities - aggregate engine capabilitiesprotected List<AnalysisSequenceCapabilityNode> computeSequence(String language, Capability[] aCapabilities)
language - current languageaCapabilities - output capabilities of the aggregate enginepublic static FlowControllerDescription getDescription()
public Map<String,ResultSpecification> getLastResultSpecForComponent()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.