Gephi Toolkit Javadoc

org.gephi.io.processor.spi
Interface Processor

All Known Implementing Classes:
AppendProcessor, DefaultProcessor, DynamicProcessor

public interface Processor

Interface that define the way data are unloaded from container and appened to the workspace.

The purpose of processors is to unload data from the import container and push it to the workspace, with various strategy. For instance a processor could either create a new workspace or append data to the current workspace, managing doubles.

Author:
Mathieu Bastian
See Also:
ImportController

Method Summary
 java.lang.String getDisplayName()
          Returns the processor name.
 void process()
          Process data from the container to the workspace.
 void setContainer(ContainerUnloader container)
          Sets the data container.
 void setWorkspace(Workspace workspace)
          Sets the destination workspace for the data in the container.
 

Method Detail

process

void process()
Process data from the container to the workspace. This task is done after an importer pushed data to the container.

See Also:
Importer

setContainer

void setContainer(ContainerUnloader container)
Sets the data container. The processor's job is to get data from the container and append it to the workspace.

Parameters:
container - the container where data are

setWorkspace

void setWorkspace(Workspace workspace)
Sets the destination workspace for the data in the container. If no workspace is provided, the current workspace will be used.

Parameters:
workspace - the workspace where data are to be pushed

getDisplayName

java.lang.String getDisplayName()
Returns the processor name.

Returns:
the processor display name

Gephi Toolkit Javadoc