jInfer

cz.cuni.mff.ksi.jinfer.functionalDependencies.modelGenerator
Class WeightsProcessor

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.functionalDependencies.modelGenerator.WeightsProcessor
All Implemented Interfaces:
Processor<Tweight>

public class WeightsProcessor
extends Object
implements Processor<Tweight>

Implementation of Processor providing logic for weights retrieval from weights files.


Constructor Summary
WeightsProcessor()
           
 
Method Summary
 String getExtension()
          Which extension can this processor process.
 FolderType getFolder()
          Which folder does this processor operate on.
 Class<?> getResultType()
          Get Class of the type this processor returns by process method within List.
 List<Tweight> process(InputStream inputStream)
          Returns the List of type defined for this processor which represents the input.
 boolean processUndefined()
          Whether this processor can process also different extensions than that specified in Processor.getExtension().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightsProcessor

public WeightsProcessor()
Method Detail

getFolder

public FolderType getFolder()
Description copied from interface: Processor
Which folder does this processor operate on.

Specified by:
getFolder in interface Processor<Tweight>
Returns:
Folder on which this processor operates.

getExtension

public String getExtension()
Description copied from interface: Processor
Which extension can this processor process.

Specified by:
getExtension in interface Processor<Tweight>
Returns:
File extension this processor can process.

processUndefined

public boolean processUndefined()
Description copied from interface: Processor
Whether this processor can process also different extensions than that specified in Processor.getExtension().

Specified by:
processUndefined in interface Processor<Tweight>
Returns:
True if this processor can process files with extensions different from what Processor.getExtension() reports. False otherwise.

process

public List<Tweight> process(InputStream inputStream)
                      throws InterruptedException
Description copied from interface: Processor
Returns the List of type defined for this processor which represents the input.

Specified by:
process in interface Processor<Tweight>
Parameters:
inputStream - Input of any arbitrary type.
Returns:
Rules contained within. Empty list if there are no rules or an error occurs.
Throws:
InterruptedException - When user interrupts the processing operation at any moment.

getResultType

public Class<?> getResultType()
Description copied from interface: Processor
Get Class of the type this processor returns by process method within List.

Specified by:
getResultType in interface Processor<Tweight>
Returns:
Class of the type this processor returns by process method within List.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011