jaitools.numeric
Class ProcessorFactory

java.lang.Object
  extended by jaitools.Factory
      extended by 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: ProcessorFactory.java 1383 2011-02-10 11:22:29Z michael.bedward $
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 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-2011. All Rights Reserved.