de.goerntkai.scot.app.misc
Class BlockFactory

java.lang.Object
  extended byde.goerntkai.scot.app.misc.BlockFactory

public abstract class BlockFactory
extends java.lang.Object

A SCoTBlock should better be instantiated by the factory, because the factory knows what kind of SCoTBlock fits best.

Version:
$Id: BlockFactory.java,v 1.7 2005/05/19 20:19:36 GoerntKai Exp $
Author:
Kai Görnt

Constructor Summary
BlockFactory()
           
 
Method Summary
static SCoTBlock createBlock(java.lang.String line, Configuration aConfiguration)
          Creates the proper kind of SCoTBlock for the line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFactory

public BlockFactory()
Method Detail

createBlock

public static SCoTBlock createBlock(java.lang.String line,
                                    Configuration aConfiguration)
                             throws java.io.FileNotFoundException,
                                    SCoTException

Creates the proper kind of SCoTBlock for the line.

Parameters:
line - the line that is to be transformed to a SCoTBlock
aConfiguration - the configuration via command line and property files
Returns:
the SCoTBlock made from the given line
Throws:
java.io.FileNotFoundException
SCoTException


© 2004 by Kai Görnt