org.jaitools.numeric
Class ProcessorFactory

java.lang.Object
  extended by org.jaitools.Factory
      extended by org.jaitools.numeric.ProcessorFactory

public class ProcessorFactory
extends Factory

A (very) simple factory class used by StreamingSampleStats to create Processors which handle the calculation of various statistics based on values in a data stream.

Since:
1.0
Version:
$Id$
Author:
Michael Bedward
See Also:
Processor, StreamingSampleStats

Constructor Summary
ProcessorFactory()
           
 
Method Summary
 Processor getForStatistic(Statistic stat)
          Return a new instance of a Processor that claims to support the given Statistic.
 
Methods inherited from class org.jaitools.Factory
addSpi, getSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorFactory

public ProcessorFactory()
Method Detail

getForStatistic

public Processor getForStatistic(Statistic stat)
Return a new instance of a Processor that claims to support the given Statistic.

Parameters:
stat - the statistic
Returns:
a new instance of the first Processor class found that supports stat; or null if no class was found


Copyright © 2009-2013. All Rights Reserved.