Class OperatorWrapperProvider

  • All Implemented Interfaces:
    ArtifactService, ParametrizedOperation, Service

    public class OperatorWrapperProvider
    extends BaseArtifactService
    An area tree provider that wraps a single area tree operator. It consumes an area tree applies the given operator with params and produces another area tree.
    Author:
    burgetr
    • Constructor Detail

      • OperatorWrapperProvider

        public OperatorWrapperProvider​(AreaTreeOperator operator)
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Service
        Obtains a unique ID of the service
      • getName

        public String getName()
        Description copied from interface: Service
        Obtains a descriptive name of the service that may be presented to the user.
        Returns:
        the operator name
      • getDescription

        public String getDescription()
        Description copied from interface: Service
        Obtains a longer description of the service.
        Returns:
        the description
      • getConsumes

        public org.eclipse.rdf4j.model.IRI getConsumes()
        Description copied from interface: ArtifactService
        The artifact type consumed.
        Returns:
        the artifact type IRI or null when nothing is consumed (source only).
      • getProduces

        public org.eclipse.rdf4j.model.IRI getProduces()
        Description copied from interface: ArtifactService
        The artifact type produced.
        Returns:
        the artifact type IRI or null when nothing is produced (consumer only).
      • process

        public Artifact process​(Artifact input)
                         throws ServiceException
        Description copied from interface: ArtifactService
        Consumes an input artifact and produces an output artifact.
        Parameters:
        input - The input artifact or null when nothing is consumed
        Returns:
        the output artifact null when nothing is produced
        Throws:
        ServiceException