Class CasMultiplier_ImplBase

  • All Implemented Interfaces:
    AnalysisComponent

    public abstract class CasMultiplier_ImplBase
    extends AnalysisComponent_ImplBase
    Base class to be extended by CAS Multipliers that use the CAS interface. A CAS Multiplier can produce multiple output CASes while processing an input CAS. See AnalysisComponent for a description of how the framework calls the methods on this interface.
    • Constructor Detail

      • CasMultiplier_ImplBase

        public CasMultiplier_ImplBase()
    • Method Detail

      • getCasInstancesRequired

        public int getCasInstancesRequired()
        Returns the maximum number of CAS instances that this CAS Multiplier expects to use at the same time. Returns a default value of 1, which will be sufficient for most CAS Multipliers. Only if there is a clear need should this be overridden to return something greater than 1.
        Returns:
        the number of CAS instances required by this AnalysisComponent.
      • getEmptyCAS

        protected final CAS getEmptyCAS()
        Gets an empty CAS that this CAS Multiplier can then populate.
        Returns:
        an empty CAS