Package cz.vutbr.fit.layout.patterns
Class TextChunkConnectionProvider
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.impl.BaseArtifactService
-
- cz.vutbr.fit.layout.patterns.ConnectionSetArtifactService
-
- cz.vutbr.fit.layout.patterns.TextChunkConnectionProvider
-
- All Implemented Interfaces:
ArtifactService
,ParametrizedOperation
,Service
public class TextChunkConnectionProvider extends ConnectionSetArtifactService
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description TextChunkConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Parameter>
defineParams()
Creates the parameter definition for this operation.Collection<AreaConnection>
extractConnections(ChunkSet input, Page page)
String
getCategory()
A category that allows to group similar services.org.eclipse.rdf4j.model.IRI
getConsumes()
The artifact type consumed.String
getDescription()
Obtains a longer description of the service.String
getId()
Obtains a unique ID of the serviceString
getName()
Obtains a descriptive name of the service that may be presented to the user.org.eclipse.rdf4j.model.IRI
getProduces()
The artifact type produced.Artifact
process(Artifact input)
Consumes an input artifact and produces an output artifact.-
Methods inherited from class cz.vutbr.fit.layout.patterns.ConnectionSetArtifactService
saveConnections
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseArtifactService
toString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
setServiceManager
-
-
-
-
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
-
defineParams
public List<Parameter> defineParams()
Description copied from class:BaseParametrizedOperation
Creates the parameter definition for this operation.- Overrides:
defineParams
in classBaseParametrizedOperation
- Returns:
- The list of parameters.
-
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).
-
getCategory
public String getCategory()
Description copied from interface:Service
A category that allows to group similar services.- Specified by:
getCategory
in interfaceService
- Overrides:
getCategory
in classBaseArtifactService
- Returns:
- Category name or
null
when no category is assigned.
-
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 ornull
when nothing is consumed- Returns:
- the output artifact
null
when nothing is produced - Throws:
ServiceException
-
extractConnections
public Collection<AreaConnection> extractConnections(ChunkSet input, Page page)
-
-