edu.jhu.ece.iacl.jist.pipeline.graph
Class PipeAlgorithmFactory

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeModuleFactory
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeAlgorithmFactory
All Implemented Interfaces:
java.io.Serializable

public class PipeAlgorithmFactory
extends PipeModuleFactory

Creates algorithm modules from a module definition.

Author:
Blake Lucas (bclucas@jhu.edu)
See Also:
Serialized Form

Nested Class Summary
static class PipeAlgorithmFactory.AlgorithmCell
          Get module cell that represents algorithm.
static class PipeAlgorithmFactory.AlgorithmGroupCell
          Get module cell that represents algorithm group.
static class PipeAlgorithmFactory.AlgorithmGroupNode
          Tree node to represent algorithm.
static class PipeAlgorithmFactory.AlgorithmNode
          Tree node to represent algorithm.
 
Field Summary
protected  java.io.File mapFile
          The map file.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.graph.PipeModuleFactory
c, name, version
 
Constructor Summary
PipeAlgorithmFactory(java.io.File mapFile)
          Constructor.
PipeAlgorithmFactory(java.lang.String name, java.lang.Class c)
          Constructor.
 
Method Summary
 PipeAlgorithmFactory.AlgorithmCell createGraphCell()
          Create graph cell to represent algorithm.
 PipeAlgorithm createPipe()
          Create module to represent algorithm.
 DraggableNode createTreeNode()
          Create tree node to represent algorithm.
 java.io.File getMapFile()
          Get module definition file.
 void rename(java.lang.String label)
          Rename module and save the change to the module definition file.
 void setMapFile(java.io.File f)
          Set module definition file.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.graph.PipeModuleFactory
getModuleClass, getModuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapFile

protected java.io.File mapFile
The map file.

Constructor Detail

PipeAlgorithmFactory

public PipeAlgorithmFactory(java.io.File mapFile)
                     throws java.lang.ClassNotFoundException
Constructor.

Parameters:
mapFile - file that contains module definition
Throws:
java.lang.ClassNotFoundException - the class not found exception

PipeAlgorithmFactory

public PipeAlgorithmFactory(java.lang.String name,
                            java.lang.Class c)
Constructor.

Parameters:
name - name of module
c - algorithm class for module
Method Detail

createGraphCell

public PipeAlgorithmFactory.AlgorithmCell createGraphCell()
Create graph cell to represent algorithm.

Specified by:
createGraphCell in class PipeModuleFactory
Returns:
the algorithm cell

createPipe

public PipeAlgorithm createPipe()
Create module to represent algorithm.

Specified by:
createPipe in class PipeModuleFactory
Returns:
the pipe algorithm

createTreeNode

public DraggableNode createTreeNode()
Create tree node to represent algorithm.

Specified by:
createTreeNode in class PipeModuleFactory
Returns:
the draggable node

getMapFile

public java.io.File getMapFile()
Get module definition file.

Returns:
module file

rename

public void rename(java.lang.String label)
Rename module and save the change to the module definition file.

Parameters:
label - module name

setMapFile

public void setMapFile(java.io.File f)
Set module definition file.

Parameters:
f - module file