korat.utils.cv
Class CVFactory

java.lang.Object
  extended by korat.utils.cv.CVFactory
All Implemented Interfaces:
ICVFactory

public class CVFactory
extends Object
implements ICVFactory

Concrete factory for dealing with candidate vector related stuff.

Author:
Aleksandar Milicevic

Field Summary
private static CVFactory factory
           
 
Constructor Summary
protected CVFactory()
           
 
Method Summary
 ICVFinder createCVFinder(String fileName)
           
 ICVReader createCVReader(String fileName)
           
 ICVWriter createCVWriter(String fileName, int numElemsPerCV, int maxElem)
           
static ICVFactory getCVFactory()
          Use this method to get currently configured factory
static CVFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static CVFactory factory
Constructor Detail

CVFactory

protected CVFactory()
Method Detail

getCVFactory

public static ICVFactory getCVFactory()
Use this method to get currently configured factory

Returns:
currently configured factory

getInstance

public static CVFactory getInstance()

createCVFinder

public ICVFinder createCVFinder(String fileName)
                         throws IOException
Specified by:
createCVFinder in interface ICVFactory
Throws:
IOException

createCVReader

public ICVReader createCVReader(String fileName)
                         throws IOException
Specified by:
createCVReader in interface ICVFactory
Throws:
IOException

createCVWriter

public ICVWriter createCVWriter(String fileName,
                                int numElemsPerCV,
                                int maxElem)
                         throws IOException
Specified by:
createCVWriter in interface ICVFactory
Throws:
IOException